/* Cookie Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--deep-navy);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: block;
}

.cookie-banner.show {
    transform: translateY(0);
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--sand);
}

.cookie-text a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--sand);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn-primary,
.cookie-buttons .btn-secondary,
.cookie-buttons .btn-tertiary {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-buttons .btn-primary {
    background-color: var(--emerald);
    color: var(--white);
}

.cookie-buttons .btn-primary:hover {
    background-color: #138a52;
}

.cookie-buttons .btn-secondary {
    background-color: transparent;
    color: var(--sand);
    border: 1px solid var(--sand);
}

.cookie-buttons .btn-secondary:hover {
    background-color: var(--sand);
    color: var(--deep-navy);
}

.cookie-buttons .btn-tertiary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-buttons .btn-tertiary:hover {
    background-color: var(--white);
    color: var(--deep-navy);
}

/* Cookie Customization Panel */
.cookie-customization {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-customization.hidden {
    display: none;
}

.cookie-customization h3 {
    margin: 0 0 20px 0;
    color: var(--white);
    font-size: 1.1rem;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    width: 100%;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--emerald);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    background-color: var(--emerald);
    opacity: 0.7;
}

.cookie-info {
    flex: 1;
}

.cookie-info strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cookie-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sand);
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-actions .btn-primary,
.cookie-actions .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-actions .btn-primary {
    background-color: var(--emerald);
    color: var(--white);
}

.cookie-actions .btn-primary:hover {
    background-color: #138a52;
}

.cookie-actions .btn-secondary {
    background-color: transparent;
    color: var(--sand);
    border: 1px solid var(--sand);
}

.cookie-actions .btn-secondary:hover {
    background-color: var(--sand);
    color: var(--deep-navy);
}

/* Responsive Design for Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .cookie-buttons .btn-primary,
    .cookie-buttons .btn-secondary,
    .cookie-buttons .btn-tertiary {
        flex: 1;
        min-width: 100px;
        max-width: 120px;
    }
    
    .cookie-customization {
        margin-top: 15px;
        padding: 15px;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-actions .btn-primary,
    .cookie-actions .btn-secondary {
        flex: 1;
        min-width: 100px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-buttons .btn-primary,
    .cookie-buttons .btn-secondary,
    .cookie-buttons .btn-tertiary {
        width: 100%;
        max-width: none;
    }
    
    .cookie-customization {
        padding: 12px;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-actions .btn-primary,
    .cookie-actions .btn-secondary {
        width: 100%;
        max-width: none;
    }
    
    .toggle-slider {
        width: 44px;
        height: 22px;
    }
    
    .toggle-slider::before {
        width: 18px;
        height: 18px;
    }
    
    .cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
        transform: translateX(22px);
    }
}