/* Cookie Consent Banner and Modal Styles */

/* Banner */
#cookieConsentBanner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

#cookieConsentBanner.show {
    bottom: 0;
}

#cookieConsentBanner .container {
    max-width: 1200px;
    margin: 0 auto;
}

#cookieConsentBanner h3 {
    margin-top: 0;
    color: #212529;
}

#cookieConsentBanner p {
    margin-bottom: 15px;
    color: #6c757d;
}

#cookieConsentBanner .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#cookieConsentBanner .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cookieConsentBanner .btn-primary, 
.modal-footer .btn-primary {
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
}

#cookieConsentBanner .btn-primary:hover,
.modal-footer .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

#cookieConsentBanner .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

#cookieConsentBanner .btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

#cookieConsentBanner .btn-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

#cookieConsentBanner .btn-outline:hover {
    background-color: #f8f9fa;
}

/* Modal */
#cookieSettingsModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cookieSettingsModal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 20px;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option h4 {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-option p {
    margin-bottom: 10px;
    color: #6c757d;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0d6efd;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #cookieConsentBanner .cookie-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        width: 90%;
        margin: 0 20px;
    }
}
