/**
 * Final Closures — Base 4 AI Chatbot Widget Styling
 * Responsive, accessible, and aligned with Figma palette (#1B4040, #A8973A)
 */

:root {
    --fc-cb-primary: #1B4040;
    --fc-cb-primary-hover: #143030;
    --fc-cb-accent: #A8973A;
    --fc-cb-accent-hover: #928330;
    --fc-cb-bg: #FFFFFF;
    --fc-cb-text: #1E293B;
    --fc-cb-text-muted: #64748B;
    --fc-cb-border: #E2E8F0;
    --fc-cb-bubble-bot: #F8FAFC;
    --fc-cb-bubble-user: #1B4040;
    --fc-cb-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    --fc-cb-radius: 16px;
    --fc-cb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#fc-chatbot-root {
    font-family: var(--fc-cb-font);
    z-index: 999999;
    position: relative;
}

/* ==========================================================================
   1. Floating Launcher Button
   ========================================================================== */
#fc-chatbot-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--fc-cb-primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 8px 24px rgba(27, 64, 64, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 999999;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#fc-chatbot-launcher:hover {
    background-color: var(--fc-cb-accent);
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(168, 151, 58, 0.4);
}

#fc-chatbot-launcher:active {
    transform: scale(0.96);
}

#fc-chatbot-launcher svg {
    display: block;
}

/* ==========================================================================
   2. Chat Window Dialog
   ========================================================================== */
#fc-chatbot-window {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 380px;
    height: 560px;
    max-height: calc(100vh - 120px);
    background-color: var(--fc-cb-bg);
    border-radius: var(--fc-cb-radius);
    box-shadow: var(--fc-cb-shadow);
    border: 1px solid var(--fc-cb-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999998;
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), max-width 0.35s ease, right 0.35s ease, bottom 0.35s ease;
    animation: fcCbFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#fc-chatbot-window.fc-cb-expanded {
    width: 860px;
    max-width: calc(100vw - 48px);
    height: 680px;
    max-height: calc(100vh - 110px);
}

@keyframes fcCbFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.fc-cb-header {
    background-color: var(--fc-cb-primary);
    color: #FFFFFF;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--fc-cb-accent);
    flex-shrink: 0;
}

.fc-cb-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-cb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--fc-cb-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fc-cb-header-info {
    display: flex;
    flex-direction: column;
}

.fc-cb-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.fc-cb-subtitle {
    font-size: 11px;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.fc-cb-status-dot {
    width: 7px;
    height: 7px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.fc-cb-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-cb-btn-clear,
.fc-cb-btn-expand,
.fc-cb-btn-minimize {
    background: transparent;
    border: none;
    color: #CBD5E1;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.fc-cb-btn-clear:hover,
.fc-cb-btn-expand:hover,
.fc-cb-btn-minimize:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   4. Chat Messages Body
   ========================================================================== */
.fc-cb-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #FFFFFF;
    scroll-behavior: smooth;
}

.fc-cb-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    word-break: break-word;
    font-size: 13.5px;
    line-height: 1.5;
}

.fc-cb-msg.has-table {
    max-width: 100% !important;
    width: 100% !important;
}

/* User Message Bubble */
.fc-cb-msg-user {
    align-self: flex-end;
    background-color: var(--fc-cb-bubble-user);
    color: #FFFFFF;
    border-radius: 14px 14px 2px 14px;
    padding: 10px 14px;
    box-shadow: 0 2px 6px rgba(27, 64, 64, 0.12);
}

/* Bot Message Bubble */
.fc-cb-msg-bot {
    align-self: flex-start;
    background-color: var(--fc-cb-bubble-bot);
    color: var(--fc-cb-text);
    border-radius: 14px 14px 14px 2px;
    padding: 12px 14px;
    border: 1px solid var(--fc-cb-border);
}

.fc-cb-msg-bot p {
    margin: 0 0 8px 0;
}

.fc-cb-msg-bot p:last-child {
    margin-bottom: 0;
}

.fc-cb-msg-bot ul, 
.fc-cb-msg-bot ol {
    margin: 6px 0 8px 18px;
    padding: 0;
}

.fc-cb-msg-bot li {
    margin-bottom: 8px;
    line-height: 1.45;
}

.fc-cb-msg-bot li .fc-cb-subtext {
    display: block;
    color: #4A5568;
    font-size: 12.5px;
    margin-top: 2px;
}

.fc-cb-msg-bot a {
    color: #1B4040;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--fc-cb-accent);
    text-underline-offset: 3px;
}

/* Guided Decision Tree Option Buttons (Stage 0 & Stage 1) */
.fc-cb-options-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
    width: 100%;
}

.fc-cb-option-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    background: #FFFFFF;
    color: #1B4040;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.fc-cb-option-btn:hover {
    background: #1B4040;
    color: #FFFFFF !important;
    border-color: #1B4040;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(27, 64, 64, 0.18);
}

.fc-cb-option-btn:active {
    transform: translateY(0);
}

.fc-cb-option-btn.is-link {
    border-color: #A8973A;
    color: #1B4040;
    position: relative;
    padding-right: 28px;
}

.fc-cb-option-btn.is-link::after {
    content: "↗";
    position: absolute;
    right: 10px;
    font-size: 13px;
    font-weight: 600;
}

.fc-cb-option-btn.is-link:hover {
    background: #A8973A;
    color: #FFFFFF !important;
    border-color: #A8973A;
}

.fc-cb-option-btn.is-crisis {
    background: #FAF8F5;
    border: 1.5px solid #8B3A3A;
    color: #8B3A3A;
    font-weight: 600;
}

.fc-cb-option-btn.is-crisis:hover {
    background: #8B3A3A;
    color: #FFFFFF !important;
}

.fc-cb-options-group.is-faded .fc-cb-option-btn:not(:hover) {
    opacity: 0.7;
}

.fc-cb-msg-bot a:hover {
    color: var(--fc-cb-accent);
}

.fc-cb-msg-time {
    font-size: 10px;
    color: #94A3B8;
    margin-top: 4px;
    align-self: flex-end;
}

.fc-cb-msg-bot .fc-cb-msg-time {
    align-self: flex-start;
}

/* Typing Indicator Animation */
.fc-cb-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--fc-cb-bubble-bot);
    border: 1px solid var(--fc-cb-border);
    border-radius: 14px 14px 14px 2px;
    width: fit-content;
    align-self: flex-start;
}

.fc-cb-dot {
    width: 6px;
    height: 6px;
    background: #94A3B8;
    border-radius: 50%;
    animation: fcCbBounce 1.4s infinite ease-in-out both;
}

.fc-cb-dot:nth-child(1) { animation-delay: -0.32s; }
.fc-cb-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes fcCbBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   5. Quick Suggestion Chips Bar
   ========================================================================== */
.fc-cb-chips {
    padding: 8px 14px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    background: #FAF8F5;
    border-top: 1px solid #F1F5F9;
    flex-shrink: 0;
    scrollbar-width: thin;
}

.fc-cb-chips::-webkit-scrollbar {
    height: 4px;
}

.fc-cb-chips::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.fc-cb-chip-btn {
    background: #FFFFFF;
    color: var(--fc-cb-primary);
    border: 1px solid #D8D2C2;
    border-radius: 16px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fc-cb-chip-btn:hover {
    background: var(--fc-cb-primary);
    color: #FFFFFF;
    border-color: var(--fc-cb-primary);
}

/* ==========================================================================
   6. Footer & Input Box
   ========================================================================== */
.fc-cb-footer {
    padding: 10px 14px 8px 14px;
    background: #FFFFFF;
    border-top: 1px solid var(--fc-cb-border);
    flex-shrink: 0;
}

.fc-cb-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    padding: 4px 6px 4px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.fc-cb-input-wrap:focus-within {
    border-color: var(--fc-cb-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(27, 64, 64, 0.15);
}

#fc-chatbot-input,
textarea#fc-chatbot-input {
    flex: 1;
    border: 0 !important;
    border-style: none !important;
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    resize: none;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--fc-cb-text);
    padding: 6px 0;
    max-height: 80px;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#fc-chatbot-input:focus,
#fc-chatbot-input:focus-visible,
#fc-chatbot-input:active,
textarea#fc-chatbot-input:focus,
textarea#fc-chatbot-input:focus-visible,
textarea#fc-chatbot-input:active {
    border: 0 !important;
    border-style: none !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
}

#fc-chatbot-input::placeholder {
    color: #94A3B8;
}

#fc-chatbot-send-btn {
    background: var(--fc-cb-primary);
    color: #FFFFFF;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

#fc-chatbot-send-btn:hover:not(:disabled) {
    background: var(--fc-cb-accent);
    transform: scale(1.06);
}

#fc-chatbot-send-btn:focus,
#fc-chatbot-send-btn:focus-visible {
    outline: none !important;
}

#fc-chatbot-send-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fc-cb-disclaimer {
    font-size: 9.5px;
    color: var(--fc-cb-text-muted);
    text-align: center;
    margin-top: 6px;
    letter-spacing: 0.1px;
}

/* ==========================================================================
   7. Plan Comparison Table Card & Scoped Shortcode Styles
   ========================================================================== */
.fc-cb-table-card {
    margin: 12px 0 6px 0;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(27, 64, 64, 0.08);
    width: 100%;
}

.fc-cb-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
}

.fc-cb-table-toolbar-title {
    font-size: 13px;
    font-weight: 700;
    color: #1B4040;
    display: flex;
    align-items: center;
}

.fc-cb-btn-table-collapse {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.fc-cb-btn-table-collapse:hover {
    background: #1B4040;
    color: #FFFFFF;
    border-color: #1B4040;
}

.fc-cb-table-content {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
}

/* Scoped override for child-theme .fc-compare-section inside chatbot */
#fc-chatbot-window .fc-compare-section {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    padding: 12px 10px 16px !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#fc-chatbot-window .fc-compare-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

#fc-chatbot-window .fc-compare-heading {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin: 0 0 3px 0 !important;
    color: #1B4040 !important;
    text-align: left !important;
}

#fc-chatbot-window .fc-compare-sub {
    font-size: 12px !important;
    color: #64748B !important;
    margin: 0 0 12px 0 !important;
    text-align: left !important;
}

#fc-chatbot-window .fc-compare-scroll-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 12px !important;
    scrollbar-width: thin;
}

#fc-chatbot-window .fc-compare-outer {
    min-width: 680px !important;
}

#fc-chatbot-window .fc-label-header {
    min-height: 140px !important;
}

#fc-chatbot-window .fc-label-row {
    padding: 10px 12px !important;
    font-size: 12px !important;
}

#fc-chatbot-window .fc-plan-header {
    padding: 10px 6px !important;
}

#fc-chatbot-window .fc-compare-thumb {
    width: 52px !important;
    height: 52px !important;
}

#fc-chatbot-window .fc-compare-plan-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
}

#fc-chatbot-window .fc-cpc-price {
    font-size: 12.5px !important;
    color: #1B4040 !important;
    font-weight: 700 !important;
}

#fc-chatbot-window .fc-plan-row {
    padding: 10px 6px !important;
    font-size: 12px !important;
}

#fc-chatbot-window .fc-compare-expand-btn {
    font-size: 11px !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
}

#fc-chatbot-window .fc-tagline-badge {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
}

/* Chatbot entity popover high z-index overlay */
.fc-compare-popover-cb {
    z-index: 10000005 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
}

/* ==========================================================================
   7b. In-Chat Interactive Lead Capture Card (UC-02)
   ========================================================================== */
.fc-cb-lead-card {
    margin: 10px 0 6px 0;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27, 64, 64, 0.06);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.fc-cb-lead-card-header {
    padding: 8px 12px;
    background: #EEF2F6;
    border-bottom: 1px solid #E2E8F0;
}

.fc-cb-lead-card-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #1B4040;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
}

.fc-cb-lead-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-cb-lead-field {
    width: 100%;
}

.fc-cb-lead-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 12px;
    color: #1E293B;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.fc-cb-lead-input::placeholder {
    color: #94A3B8;
    font-size: 11.5px;
}

.fc-cb-lead-input:focus {
    border-color: #1B4040;
    box-shadow: 0 0 0 2px rgba(27, 64, 64, 0.15);
}

.fc-cb-lead-submit-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    background: #1B4040;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
}

.fc-cb-lead-submit-btn:hover:not(:disabled) {
    background: #143030;
}

.fc-cb-lead-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   Case Status Card (Live Customer Account & Plan View)
   ========================================================================== */
.fc-cb-case-card {
    margin-top: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    color: #1E293B;
    text-align: left;
}

.fc-cb-case-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 10px;
}

.fc-cb-case-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fc-cb-case-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fc-cb-case-badge.status-awaiting {
    background: #FEF3C7;
    color: #92400E;
}

.fc-cb-case-badge.status-uploaded {
    background: #DBEAFE;
    color: #1E40AF;
}

.fc-cb-case-badge.status-in-progress {
    background: #EDE9FE;
    color: #5B21B6;
}

.fc-cb-case-badge.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.fc-cb-case-id {
    font-family: monospace;
    font-size: 12px;
    color: #64748B;
    background: #F8FAFC;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

.fc-cb-case-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 12px;
}

.fc-cb-case-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.fc-cb-meta-label {
    color: #64748B;
    font-size: 12px;
}

.fc-cb-meta-val {
    color: #0F172A;
    text-align: right;
}

.fc-cb-case-progress-wrap {
    margin-bottom: 12px;
    background: #F8FAFC;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #F1F5F9;
}

.fc-cb-case-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
    margin-bottom: 6px;
}

.fc-cb-case-progress-track {
    height: 7px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.fc-cb-case-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.fc-cb-case-entities-wrap {
    margin-top: 10px;
}

.fc-cb-case-entities-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fc-cb-case-entities-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fc-cb-case-entity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #F8FAFC;
    border-radius: 6px;
    font-size: 12px;
}

.fc-cb-entity-name {
    color: #1E293B;
    font-weight: 500;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-cb-entity-pill {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.fc-cb-entity-pill.fc-badge-acknowledged {
    background: #D1FAE5;
    color: #065F46;
}

.fc-cb-entity-pill.fc-badge-sent {
    background: #DBEAFE;
    color: #1E40AF;
}

.fc-cb-entity-pill.fc-badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.fc-cb-entity-pill.fc-badge-action {
    background: #FEE2E2;
    color: #991B1B;
}

.fc-cb-case-more-entities {
    text-align: center;
    font-size: 11.5px;
    color: #64748B;
    padding-top: 6px;
    font-style: italic;
}

/* Tablet responsiveness */
@media (max-width: 900px) {
    #fc-chatbot-window.fc-cb-expanded {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 86px;
    }
}

/* ==========================================================================
   8. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 480px) {
    #fc-chatbot-window,
    #fc-chatbot-window.fc-cb-expanded {
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }

    #fc-chatbot-launcher {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}
