/* Cookie Consent Styling */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #002461; /* wwBlue */
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
}

.cookie-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: #333;
    padding: 2rem;
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cookie-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-btn-primary {
    background-color: #FDCC06; /* wwYellow */
    color: #002461; /* wwBlue */
    border: 2px solid #FDCC06;
}

.cookie-btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

.cookie-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-btn-tertiary {
    background-color: #f1f1f1;
    color: #333;
    border: 2px solid #f1f1f1;
}

.cookie-btn-tertiary:hover {
    background-color: #e1e1e1;
    border-color: #e1e1e1;
}

.cookie-settings-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.cookie-settings-toggle input[type="checkbox"] {
    margin-right: 1rem;
}

.cookie-settings-toggle.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom checkbox styling */
.cookie-checkbox {
    position: relative;
    width: 40px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: #c6c6c6;
    outline: none;
    border-radius: 20px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    cursor: pointer;
}

.cookie-checkbox:checked {
    background: #002461;
}

.cookie-checkbox:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    top: 0;
    left: 0;
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.cookie-checkbox:checked:before {
    left: 20px;
}

.cookie-checkbox:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation for banner */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-banner {
    animation: slideUp 0.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cookie-consent-banner {
        padding: 0.75rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
