/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2C1810;
    color: #FAF9F7;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 12px rgba(44, 24, 16, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-text {
    margin-bottom: 1.5rem;
}

.cookie-text h4 {
    color: #FAF9F7;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #D4A574;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-accept {
    background-color: #8B4513;
    color: white;
}

.cookie-accept:hover {
    background-color: #6D3710;
}

.cookie-reject {
    background-color: transparent;
    color: #D4A574;
    border: 1px solid #D4A574;
}

.cookie-reject:hover {
    background-color: #D4A574;
    color: #2C1810;
}

.cookie-customize {
    background-color: transparent;
    color: #FAF9F7;
    border: 1px solid #FAF9F7;
}

.cookie-customize:hover {
    background-color: #FAF9F7;
    color: #2C1810;
}

.cookie-save {
    background-color: #8B4513;
    color: white;
}

.cookie-save:hover {
    background-color: #6D3710;
}

.cookie-back {
    background-color: transparent;
    color: #D4A574;
    border: 1px solid #D4A574;
}

.cookie-back:hover {
    background-color: #D4A574;
    color: #2C1810;
}

.cookie-link {
    color: #D4A574;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    white-space: nowrap;
}

.cookie-link:hover {
    border-bottom-color: #D4A574;
}

/* Cookie Preferences */
.cookie-preferences {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #5A4A3A;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-category {
    background-color: rgba(212, 165, 116, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.cookie-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    accent-color: #8B4513;
    cursor: pointer;
}

.cookie-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-name {
    color: #FAF9F7;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.cookie-category-desc {
    color: #D4A574;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-left: 2.25rem;
}

.cookie-custom-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        padding: 0 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-custom-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .cookie-link {
        font-size: 0.8rem;
    }
    
    .cookie-category-name {
        font-size: 0.95rem;
    }
    
    .cookie-category-desc {
        font-size: 0.85rem;
        margin-left: 2rem;
    }
}

/* Animation for smooth transitions */
.cookie-preferences {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.cookie-btn:focus,
.cookie-link:focus,
.cookie-label:focus-within {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        border-top: 3px solid #FAF9F7;
    }
    
    .cookie-category {
        border: 2px solid #D4A574;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
    
    .cookie-preferences {
        animation: none;
    }
    
    .cookie-btn {
        transition: none;
    }
}