/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-banner-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.cookie-banner-content p {
    margin-bottom: 1rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.cookie-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.cookie-close:hover,
.cookie-close:focus {
    color: black;
    text-decoration: none;
}

/* Cookie Preferences */
.cookie-preferences {
    margin-top: 1rem;
}

.cookie-preference-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.cookie-preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-preference-header h5 {
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    align-self: flex-end;
}

.toggle-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;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.required-label {
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-banner-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-buttons button {
        margin-bottom: 0.5rem;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}