/* Cookie Banner Styles */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.cookie-state {
    display: none;
}

.cookie-banner {
    background: white;
    border-top: 3px solid #4A5568;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    padding: 24px;
    display: block;
}

/* Hide banner when user accepts, rejects, or saves preferences */
#cookie-accepted:checked ~ .cookie-banner,
#cookie-rejected:checked ~ .cookie-banner,
#cookie-saved:checked ~ .cookie-banner,
#cookie-accepted-about:checked ~ .cookie-banner,
#cookie-rejected-about:checked ~ .cookie-banner,
#cookie-saved-about:checked ~ .cookie-banner,
#cookie-accepted-privacy:checked ~ .cookie-banner,
#cookie-rejected-privacy:checked ~ .cookie-banner,
#cookie-saved-privacy:checked ~ .cookie-banner,
#cookie-accepted-terms:checked ~ .cookie-banner,
#cookie-rejected-terms:checked ~ .cookie-banner,
#cookie-saved-terms:checked ~ .cookie-banner,
#cookie-accepted-cookie:checked ~ .cookie-banner,
#cookie-rejected-cookie:checked ~ .cookie-banner,
#cookie-saved-cookie:checked ~ .cookie-banner {
    display: none;
}

/* Show customizer when customize is selected */
#cookie-customizing:checked ~ .cookie-banner .cookie-customizer,
#cookie-customizing-about:checked ~ .cookie-banner .cookie-customizer,
#cookie-customizing-privacy:checked ~ .cookie-banner .cookie-customizer,
#cookie-customizing-terms:checked ~ .cookie-banner .cookie-customizer,
#cookie-customizing-cookie:checked ~ .cookie-banner .cookie-customizer {
    display: block;
}

/* Hide main content when customizer is shown */
#cookie-customizing:checked ~ .cookie-banner .cookie-banner-content,
#cookie-customizing-about:checked ~ .cookie-banner .cookie-banner-content,
#cookie-customizing-privacy:checked ~ .cookie-banner .cookie-banner-content,
#cookie-customizing-terms:checked ~ .cookie-banner .cookie-banner-content,
#cookie-customizing-cookie:checked ~ .cookie-banner .cookie-banner-content {
    display: none;
}

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

.cookie-banner-text h3 {
    color: #2D3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-banner-text p {
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 600px;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
}

.cookie-btn-primary {
    background-color: #4A5568;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #2D3748;
}

.cookie-btn-secondary {
    background-color: #E2E8F0;
    color: #4A5568;
}

.cookie-btn-secondary:hover {
    background-color: #CBD5E0;
}

.cookie-btn-outline {
    background-color: transparent;
    color: #4A5568;
    border: 2px solid #4A5568;
}

.cookie-btn-outline:hover {
    background-color: #4A5568;
    color: white;
}

/* Cookie Customizer */
.cookie-customizer {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-customizer-content h4 {
    color: #2D3748;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cookie-option {
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
}

.cookie-option-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.cookie-option-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #4A5568;
}

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

.cookie-option-text {
    flex: 1;
}

.cookie-option-text strong {
    display: block;
    color: #2D3748;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cookie-option-text small {
    color: #718096;
    font-size: 0.75rem;
    line-height: 1.4;
}

.cookie-customizer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-policy-link {
    color: #4A5568;
    text-decoration: underline;
    font-size: 0.875rem;
    margin-left: auto;
}

.cookie-policy-link:hover {
    color: #2D3748;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-banner-text {
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cookie-customizer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-policy-link {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px 12px;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.125rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.875rem;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    .cookie-option {
        padding: 12px;
    }
}