/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #2563eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.cookie-banner-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

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

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #2563eb;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #1d4ed8;
}

.cookie-btn-reject {
    background-color: #6b7280;
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #4b5563;
}

.cookie-btn-customize {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cookie-btn-customize:hover {
    background-color: #e5e7eb;
}

.cookie-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.cookie-policy-link {
    color: #2563eb;
    text-decoration: underline;
    font-size: 0.875rem;
    font-weight: 500;
}

.cookie-policy-link:hover {
    color: #1d4ed8;
}

/* Cookie Customizer */
.cookie-customizer {
    border-top: 1px solid #e5e7eb;
    background-color: #f8fafc;
}

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

.cookie-customizer-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

.cookie-categories {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cookie-category-header {
    margin-bottom: 0.75rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 24px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #2563eb;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cookie-toggle input:disabled ~ .cookie-category-name {
    color: #6b7280;
}

.cookie-category-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

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

/* Body class when banner is visible */
body.cookie-banner-visible {
    padding-bottom: 120px; /* Adjust based on banner height */
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .cookie-customizer-content {
        padding: 1.5rem;
    }

    .cookie-customizer-actions {
        flex-direction: column;
    }

    .cookie-customizer-actions .cookie-btn {
        width: 100%;
    }

    body.cookie-banner-visible {
        padding-bottom: 200px; /* Adjust for mobile banner height */
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 1rem;
    }

    .cookie-customizer-content {
        padding: 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-toggle {
        gap: 0.75rem;
    }

    .cookie-toggle-slider {
        width: 40px;
        height: 20px;
    }

    .cookie-toggle-slider::before {
        width: 16px;
        height: 16px;
        top: 2px;
        left: 2px;
    }

    .cookie-toggle input:checked + .cookie-toggle-slider::before {
        transform: translateX(20px);
    }
}