/**
 * Consent Banner Styles
 */

:root {
    --consent-primary: #1aa39e;
    --consent-bg: #ffffff;
    --consent-text: #07121a;
    --consent-border: rgba(16, 24, 32, 0.1);
}

/* Consent Banner Overlay */
.mistral-consent-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    animation: fadeIn 0.3s ease;
}

/* Default (desktop) */
#mistral-input-container {
  width: 50%;
  margin: auto;
}

/* Tablet and mobile */
@media (max-width: 1024px) {
  #mistral-input-container {
    width: 100%!important;
    margin: 0;
  }
}


/* Consent Banner Container */
.mistral-consent-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--consent-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
}

.mistral-consent-banner-content {
    padding: 32px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.mistral-consent-banner-content h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--consent-text);
    letter-spacing: -0.5px;
}

.mistral-consent-banner-intro {
    margin: 0 0 24px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Consent Sections */
.mistral-consent-sections {
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--consent-border);
    border-radius: 8px;
}

.mistral-consent-section {
    border-bottom: 1px solid var(--consent-border);
    padding: 16px;
}

.mistral-consent-section:last-child {
    border-bottom: none;
}

.mistral-consent-section-header {
    margin-bottom: 12px;
}

.mistral-consent-section-header label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.mistral-consent-section-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--consent-primary);
}

.mistral-consent-section-header strong {
    color: var(--consent-text);
    font-weight: 600;
}

.mistral-consent-section-content {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-left: 28px;
}

.mistral-consent-section-content p {
    margin: 0;
    color: inherit;
}

/* Action Buttons */
.mistral-consent-banner-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--consent-border);
}

.mistral-consent-banner-actions .button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.mistral-consent-banner-actions .button-secondary {
    background: #e5e7eb;
    color: var(--consent-text);
}

.mistral-consent-banner-actions .button-secondary:hover {
    background: #d1d5db;
}

.mistral-consent-banner-actions .button-primary {
    background: var(--consent-primary);
    color: white;
}

.mistral-consent-banner-actions .button-primary:hover {
    background: #158c88;
}

/* Scrollbar styling */
.mistral-consent-sections::-webkit-scrollbar {
    width: 6px;
}

.mistral-consent-sections::-webkit-scrollbar-track {
    background: rgba(16, 24, 32, 0.05);
}

.mistral-consent-sections::-webkit-scrollbar-thumb {
    background: rgba(16, 24, 32, 0.2);
    border-radius: 3px;
}

.mistral-consent-sections::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 24, 32, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
    .mistral-consent-banner {
        width: 95%;
        max-width: none;
        max-height: 90vh;
    }

    .mistral-consent-banner-content {
        padding: 24px;
    }

    .mistral-consent-banner-content h2 {
        font-size: 20px;
    }

    .mistral-consent-banner-actions {
        flex-direction: column-reverse;
    }

    .mistral-consent-banner-actions .button {
        width: 100%;
    }
}
