.bfc-widget, .bfc-widget * { box-sizing: border-box; }
.bfc-widget [hidden] { display: none !important; }
.bfc-widget { position: fixed; z-index: 2147482990; direction: rtl; font-family: inherit; }
.bfc-launcher { position: fixed; bottom: var(--bfc-desktop-bottom); left: var(--bfc-desktop-side); width: var(--bfc-launcher-size); height: var(--bfc-launcher-size); border: 0; border-radius: 999px; background: var(--bfc-launcher-color); color: var(--bfc-launcher-icon-color); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 18px 38px rgba(15,23,42,.24); z-index: 2147483000; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.bfc-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(15,23,42,.28); }
.bfc-desktop-right .bfc-launcher { left: auto; right: var(--bfc-desktop-side); }
.bfc-launcher svg { width: var(--bfc-launcher-icon-size); height: var(--bfc-launcher-icon-size); fill: currentColor; }
.bfc-launcher-close-icon { display: none; }
.bfc-widget.is-open .bfc-launcher-chat-icon { display: none; }
.bfc-widget.is-open .bfc-launcher-close-icon { display: block; }
.bfc-launcher span { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; border: 2px solid #fff; }
.bfc-overlay { position: fixed; inset: 0; background: transparent !important; z-index: 2147482991; backdrop-filter: none !important; pointer-events: none !important; }
.bfc-panel { position: fixed; bottom: calc(var(--bfc-desktop-bottom) + var(--bfc-launcher-size) + 14px); left: var(--bfc-desktop-side); width: min(410px, calc(100vw - 28px)); height: min(650px, calc(100vh - 140px)); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.28); z-index: 2147482992; display: grid; grid-template-rows: auto auto auto 1fr auto auto; border: 1px solid rgba(15,23,42,.08); }
.bfc-desktop-right .bfc-panel { left: auto; right: var(--bfc-desktop-side); }
.bfc-panel-header { padding: 18px 18px 16px; background: linear-gradient(135deg, var(--bfc-launcher-color), #064d4a); color: #fff; display: flex; justify-content: space-between; gap: 12px; }
.bfc-panel-title { min-width: 0; }
.bfc-panel-header strong { display:block; font-size: 17px; line-height: 1.4; }
.bfc-panel-header p { margin: 5px 0 0; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.65; }
.bfc-close { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); border-radius: 12px; color: #fff; cursor: pointer; font-size: 23px; line-height: 1; }
.bfc-status-bar { display: flex; align-items: center; gap: 8px; padding: 9px 16px; color: #475569; background: #f8fafc; border-bottom: 1px solid #e5e7eb; font-size: 12px; font-weight: 700; }
.bfc-status-dot { width: 8px; height: 8px; border-radius: 999px; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
.bfc-widget.is-offline .bfc-status-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.bfc-widget.is-closed .bfc-status-dot { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148,163,184,.14); }
.bfc-visitor-form { padding: 16px; display: grid; gap: 10px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.bfc-visitor-form input, .bfc-composer textarea { width: 100%; border: 1px solid #dbe3ee; border-radius: 14px; background: #fff; color: #0f172a; padding: 12px 13px; font-size: 14px; outline: none; line-height: 1.6; }
.bfc-visitor-form input:focus, .bfc-composer textarea:focus { border-color: var(--bfc-launcher-color); box-shadow: 0 0 0 3px rgba(8,101,98,.12); }
.bfc-visitor-form button, .bfc-composer button, .bfc-closed-notice button { border: 0; border-radius: 14px; background: var(--bfc-launcher-color); color: #fff; padding: 12px 16px; font-weight: 800; cursor: pointer; }
.bfc-visitor-form button:disabled, .bfc-composer button:disabled { opacity: .65; cursor: wait; }
.bfc-messages-shell { position: relative; min-height: 0; overflow: hidden; background: linear-gradient(180deg,#f8fafc,#eef3f7); }
.bfc-empty-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; color: #64748b; font-size: 13px; line-height: 1.8; pointer-events: none; }
.bfc-messages { height: 100%; padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.bfc-message { max-width: 86%; display: flex; flex-direction: column; gap: 4px; animation: bfc-message-in .16s ease both; }
@keyframes bfc-message-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.bfc-message.is-visitor { align-self: flex-start; }
.bfc-message.is-admin, .bfc-message.is-system { align-self: flex-end; }
.bfc-message-body { padding: 11px 13px; border-radius: 16px; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 5px 16px rgba(15,23,42,.06); }
.bfc-message.is-visitor .bfc-message-body { background: #fff; color: #0f172a; border: 1px solid #e5e7eb; border-bottom-right-radius: 7px; }
.bfc-message.is-admin .bfc-message-body, .bfc-message.is-system .bfc-message-body { background: var(--bfc-launcher-color); color: #fff; border-bottom-left-radius: 7px; }
.bfc-message.is-system .bfc-message-body { background: #0f766e; }
.bfc-message-body a { color: inherit; text-decoration: underline; font-weight: 800; }
.bfc-message-time { color: #64748b; font-size: 11px; padding: 0 4px; }
.bfc-closed-notice { padding: 12px 14px; background: #fff7ed; border-top: 1px solid #fed7aa; color: #9a3412; display: grid; gap: 10px; font-size: 13px; line-height: 1.7; }
.bfc-closed-notice button { background: #9a3412; justify-self: start; padding: 9px 12px; }
.bfc-composer { padding: 12px; border-top: 1px solid #e5e7eb; background: #fff; display: grid; gap: 8px; }
.bfc-composer textarea { resize: none; height: 72px; min-height: 72px; max-height: 132px; }
.bfc-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bfc-counter { color: #64748b; font-size: 11px; font-weight: 700; }
.bfc-counter.is-danger { color: #b91c1c; }
.bfc-composer button { min-width: 92px; }
.bfc-error { padding: 10px 14px; color: #b91c1c; background: #fef2f2; border-top: 1px solid #fecaca; font-size: 13px; line-height: 1.6; }
body.bfc-widget-open { overflow: hidden; touch-action: none; }
@media (max-width: 600px) {
  .bfc-launcher { bottom: calc(var(--bfc-mobile-bottom) + env(safe-area-inset-bottom, 0px)); left: var(--bfc-mobile-side); width: var(--bfc-launcher-size); height: var(--bfc-launcher-size); }
  .bfc-mobile-right .bfc-launcher { left: auto; right: var(--bfc-mobile-side); }
  .bfc-panel { left: 10px !important; right: 10px !important; bottom: calc(var(--bfc-mobile-bottom) + var(--bfc-launcher-size) + 16px + env(safe-area-inset-bottom, 0px)); width: auto; height: min(78vh, 640px); border-radius: 22px; }
  .bfc-panel-header { padding: 15px; }
  .bfc-messages { padding: 14px; }
  .bfc-message { max-width: 92%; }
  .bfc-composer-footer { align-items: stretch; }
  .bfc-composer button { min-width: 104px; }
  .bfc-composer textarea { height: 64px; min-height: 64px; }
}
@media (max-width: 380px) {
  .bfc-panel { left: 8px !important; right: 8px !important; height: min(80vh, 620px); }
  .bfc-message { max-width: 96%; }
}

/* v1.0.0-alpha.4 privacy notice */
.bfc-privacy-notice {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}


/* v1.0.0-beta.1 sender labels */
.bfc-message-label { color:#64748b; font-size:11px; font-weight:800; padding:0 4px; }
.bfc-message.is-admin .bfc-message-label,
.bfc-message.is-system .bfc-message-label { text-align:left; }


/* v1.0.0-rc.1 privacy consent control */
.bfc-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(8, 101, 98, .16);
    border-radius: 12px;
    background: rgba(8, 101, 98, .06);
    color: #0f172a;
    font-size: 12px;
    line-height: 1.7;
    cursor: pointer;
}
.bfc-consent input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex: 0 0 auto;
}


/* v1.0.3 launcher visibility hardening: protect the launcher from theme sticky toolbars and global button/svg rules. */
.bfc-launcher { visibility: visible; opacity: 1; pointer-events: auto; line-height: 1; text-decoration: none; appearance: none; -webkit-appearance: none; }
.bfc-launcher svg { display: block; flex: 0 0 auto; max-width: none; }
.bfc-launcher:before, .bfc-launcher:after { content: none !important; }


/* v1.0.4 launcher icon state correction: keep theme hardening without showing both SVG states. */
.bfc-launcher { gap: 0 !important; overflow: visible !important; }
.bfc-launcher .bfc-launcher-chat-icon { display: block !important; }
.bfc-launcher .bfc-launcher-close-icon { display: none !important; }
.bfc-widget.is-open .bfc-launcher .bfc-launcher-chat-icon { display: none !important; }
.bfc-widget.is-open .bfc-launcher .bfc-launcher-close-icon { display: block !important; }
.bfc-launcher:focus { outline: none; }
.bfc-launcher:focus-visible { outline: 3px solid rgba(8,101,98,.24); outline-offset: 4px; }


/* v1.0.6 launcher hidden badge leak fix: never show the external circle unless there is an actual unread count. */
.bfc-launcher [data-bfc-unread][hidden] { display: none !important; }
.bfc-launcher [data-bfc-unread]:empty { display: none !important; }


/* v1.0.7 composer default height reduction: keep auto-resize, but start from a lower, more compact composer height. */


/* v1.0.10 hard composer height fix: override theme textarea rules and keep compact default height. */
.bfc-widget .bfc-composer textarea[data-bfc-input] {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 128px !important;
    overflow-y: auto !important;
}
@media (max-width: 600px) {
    .bfc-widget .bfc-composer textarea[data-bfc-input] {
        height: 62px !important;
        min-height: 62px !important;
        max-height: 112px !important;
    }
}


/* v1.0.10 frontend close/overlay stabilization.
   The floating chat must not darken or lock the page, and every close control must stay clickable above theme layers. */
.bfc-overlay,
.bfc-widget.is-open .bfc-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
}
body.bfc-widget-open {
    overflow: auto !important;
    touch-action: auto !important;
}
.bfc-panel {
    isolation: isolate;
}
.bfc-close,
.bfc-panel .bfc-close,
button.bfc-close {
    position: relative !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.46) !important;
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.bfc-close:hover,
.bfc-panel .bfc-close:hover,
button.bfc-close:hover {
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
}
.bfc-launcher {
    z-index: 2147483001 !important;
}
.bfc-panel {
    z-index: 2147483000 !important;
}


/* v1.0.11 unread badge placement fix: keep the badge fully outside the launcher circle and show it only for actual unread replies. */
.bfc-launcher [data-bfc-unread] {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .18) !important;
    z-index: 2 !important;
    transform: translate(28%, -28%) !important;
    pointer-events: none !important;
}
.bfc-launcher [data-bfc-unread][hidden],
.bfc-launcher [data-bfc-unread]:empty {
    display: none !important;
}


/* v1.1.0 launcher and unread badge controls: all values are controlled from the External Launcher tab. */
.bfc-launcher {
    width: var(--bfc-launcher-size) !important;
    height: var(--bfc-launcher-size) !important;
    overflow: visible !important;
}
.bfc-launcher svg {
    width: var(--bfc-launcher-icon-size) !important;
    height: var(--bfc-launcher-icon-size) !important;
}
.bfc-launcher [data-bfc-unread] {
    position: absolute !important;
    top: calc(-1 * (var(--bfc-badge-size) - var(--bfc-badge-overlap)) + var(--bfc-badge-offset-y)) !important;
    right: calc(-1 * (var(--bfc-badge-size) - var(--bfc-badge-overlap)) + var(--bfc-badge-offset-x)) !important;
    min-width: var(--bfc-badge-size) !important;
    width: auto !important;
    height: var(--bfc-badge-size) !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: var(--bfc-badge-bg) !important;
    color: var(--bfc-badge-text) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: var(--bfc-badge-font-size) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .18) !important;
    z-index: 2 !important;
    transform: none !important;
    pointer-events: none !important;
}
.bfc-launcher [data-bfc-unread][hidden],
.bfc-launcher [data-bfc-unread]:empty {
    display: none !important;
}

/* v1.4.0 Premium SaaS chat widget redesign.
   This block intentionally overrides older visual rules while keeping all existing data attributes and JS behavior. */
.bfc-widget {
    --bfc-brand-blue: var(--bfc-launcher-color, #2563eb);
    --bfc-brand-teal: var(--bfc-launcher-color, #0f8f86);
    --bfc-panel-bg: #ffffff;
    --bfc-panel-border: rgba(148, 163, 184, .24);
    --bfc-text-main: #0f172a;
    --bfc-text-muted: #64748b;
    --bfc-surface-soft: #f8fafc;
    --bfc-user-bubble: #f1f6ff;
    --bfc-team-bubble: #effdfa;
    direction: inherit !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}
.bfc-widget[dir="rtl"] { direction: rtl !important; }
.bfc-widget[dir="ltr"] { direction: ltr !important; }

.bfc-panel,
.bfc-widget .bfc-panel {
    width: min(720px, calc(100vw - 48px)) !important;
    height: min(650px, calc(100vh - 120px)) !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background: var(--bfc-panel-bg) !important;
    border: 1px solid var(--bfc-panel-border) !important;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .22), 0 8px 24px rgba(15, 23, 42, .10) !important;
    display: grid !important;
    grid-template-rows: auto auto auto 1fr auto auto !important;
}

.bfc-panel-header,
.bfc-widget .bfc-panel-header {
    min-height: 132px !important;
    padding: 28px 34px !important;
    background: linear-gradient(135deg, var(--bfc-launcher-color), var(--bfc-launcher-color)) !important;
    color: #fff !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 22px !important;
    border: 0 !important;
}
.bfc-panel-brand {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    min-width: 0 !important;
}
.bfc-panel-icon {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .16) !important;
    border: 1px solid rgba(255, 255, 255, .30) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20) !important;
}
.bfc-panel-icon svg { width: 34px !important; height: 34px !important; fill: currentColor !important; display: block !important; }
.bfc-panel-title,
.bfc-widget .bfc-panel-title { min-width: 0 !important; text-align: inherit !important; }
.bfc-panel-header strong,
.bfc-widget .bfc-panel-header strong {
    color: #fff !important;
    display: block !important;
    font-size: 30px !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
    font-weight: 850 !important;
    margin: 0 !important;
}
.bfc-panel-header p,
.bfc-widget .bfc-panel-header p {
    color: rgba(255, 255, 255, .92) !important;
    margin: 10px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
}
.bfc-close,
.bfc-panel .bfc-close,
button.bfc-close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: .9 !important;
    opacity: .95 !important;
    transition: background .18s ease, transform .18s ease, opacity .18s ease !important;
}
.bfc-close:hover,
.bfc-panel .bfc-close:hover,
button.bfc-close:hover {
    background: rgba(255,255,255,.14) !important;
    transform: scale(1.04) !important;
    opacity: 1 !important;
}

.bfc-status-bar,
.bfc-widget .bfc-status-bar {
    min-height: 68px !important;
    padding: 0 34px !important;
    gap: 14px !important;
    color: #475569 !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(226, 232, 240, .95) !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}
.bfc-status-dot,
.bfc-widget .bfc-status-dot {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    background: #10b981 !important;
    box-shadow: 0 0 0 7px rgba(16,185,129,.13) !important;
}

.bfc-visitor-form,
.bfc-widget .bfc-visitor-form {
    padding: 26px 34px !important;
    gap: 14px !important;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%) !important;
}
.bfc-visitor-form input,
.bfc-widget input[data-bfc-name],
.bfc-widget input[data-bfc-email] {
    min-height: 52px !important;
    border-radius: 16px !important;
    border: 1px solid #dbe4ef !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04) !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    color: var(--bfc-text-main) !important;
}
.bfc-visitor-form button,
.bfc-widget [data-bfc-start] {
    min-height: 52px !important;
    border-radius: 16px !important;
    background: var(--bfc-launcher-color) !important;
    box-shadow: 0 12px 26px rgba(15,23,42,.18) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: 0 !important;
}

.bfc-messages-shell,
.bfc-widget .bfc-messages-shell {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    border-top: 0 !important;
    min-height: 0 !important;
}
.bfc-messages,
.bfc-widget .bfc-messages {
    direction: ltr !important;
    padding: 44px 34px 34px !important;
    gap: 26px !important;
    height: 100% !important;
    background: transparent !important;
}
.bfc-empty-state,
.bfc-widget .bfc-empty-state {
    color: #94a3b8 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}
.bfc-message,
.bfc-widget .bfc-message {
    max-width: min(72%, 520px) !important;
    gap: 8px !important;
}
.bfc-message.is-visitor,
.bfc-widget .bfc-message.is-visitor {
    align-self: flex-end !important;
    align-items: flex-end !important;
}
.bfc-message.is-admin,
.bfc-message.is-system,
.bfc-widget .bfc-message.is-admin,
.bfc-widget .bfc-message.is-system {
    align-self: flex-start !important;
    align-items: flex-start !important;
    margin-inline-start: 78px !important;
    position: relative !important;
}
.bfc-message.is-admin::before,
.bfc-message.is-system::before,
.bfc-widget .bfc-message.is-admin::before,
.bfc-widget .bfc-message.is-system::before {
    content: "" !important;
    position: absolute !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 999px !important;
    left: -78px !important;
    top: 4px !important;
    background: #ecfdf5 !important;
    border: 1px solid rgba(16,185,129,.18) !important;
    box-shadow: inset 0 0 0 10px rgba(16,185,129,.05), 0 8px 20px rgba(15,23,42,.08) !important;
}
.bfc-message.is-admin::after,
.bfc-message.is-system::after,
.bfc-widget .bfc-message.is-admin::after,
.bfc-widget .bfc-message.is-system::after {
    content: "" !important;
    position: absolute !important;
    left: -58px !important;
    top: 22px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 3px solid #10b981 !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 7px 0 -3px #10b981, 0 -7px 0 -3px #10b981 !important;
}
.bfc-message-body,
.bfc-widget .bfc-message-body {
    padding: 18px 22px !important;
    border-radius: 22px !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: var(--bfc-text-main) !important;
    background: #fff !important;
    border: 1px solid rgba(203, 213, 225, .95) !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.06) !important;
    overflow-wrap: anywhere !important;
    unicode-bidi: plaintext !important;
    text-align: start !important;
}
.bfc-message.is-visitor .bfc-message-body,
.bfc-widget .bfc-message.is-visitor .bfc-message-body {
    background: var(--bfc-user-bubble) !important;
    border-color: #d7e3f8 !important;
    border-bottom-right-radius: 10px !important;
}
.bfc-message.is-admin .bfc-message-body,
.bfc-message.is-system .bfc-message-body,
.bfc-widget .bfc-message.is-admin .bfc-message-body,
.bfc-widget .bfc-message.is-system .bfc-message-body {
    background: var(--bfc-team-bubble) !important;
    border-color: rgba(16,185,129,.20) !important;
    color: var(--bfc-text-main) !important;
    border-bottom-left-radius: 10px !important;
}
.bfc-message-time,
.bfc-widget .bfc-message-time {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    padding: 0 6px !important;
    direction: ltr !important;
}
.bfc-message-label,
.bfc-widget .bfc-message-label {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 0 6px !important;
}

.bfc-composer,
.bfc-widget .bfc-composer {
    padding: 26px 34px 28px !important;
    border-top: 1px solid rgba(226, 232, 240, .95) !important;
    background: #fff !important;
    display: grid !important;
    gap: 16px !important;
}
.bfc-composer-row,
.bfc-widget .bfc-composer-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 18px !important;
}
.bfc-input-wrap,
.bfc-widget .bfc-input-wrap {
    position: relative !important;
    min-height: 74px !important;
    display: flex !important;
    align-items: center !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input],
.bfc-input-wrap textarea[data-bfc-input] {
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 128px !important;
    resize: none !important;
    overflow-y: auto !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: var(--bfc-text-main) !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.05), inset 0 0 0 1px rgba(255,255,255,.5) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 24px 96px 18px 22px !important;
    outline: none !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
    unicode-bidi: plaintext !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input] {
    padding-right: 22px !important;
    padding-left: 96px !important;
    text-align: right !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input]:focus {
    border-color: rgba(37,99,235,.55) !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10), 0 1px 3px rgba(15,23,42,.05) !important;
}
.bfc-input-tool,
.bfc-widget .bfc-input-tool {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    opacity: .95 !important;
    pointer-events: none !important;
}
.bfc-input-tool svg { width: 23px !important; height: 23px !important; fill: currentColor !important; display: block !important; }
.bfc-input-attach { right: 56px !important; }
.bfc-input-send-hint { right: 18px !important; color: #1d4ed8 !important; }
.bfc-widget[dir="rtl"] .bfc-input-attach { right: auto !important; left: 56px !important; }
.bfc-widget[dir="rtl"] .bfc-input-send-hint { right: auto !important; left: 18px !important; }
.bfc-send-button,
.bfc-composer button[data-bfc-send],
.bfc-widget .bfc-composer button[data-bfc-send] {
    min-width: 118px !important;
    height: 74px !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(37,99,235,.25) !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    cursor: pointer !important;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease !important;
}
.bfc-send-button:hover,
.bfc-composer button[data-bfc-send]:hover,
.bfc-widget .bfc-composer button[data-bfc-send]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 36px rgba(37,99,235,.30) !important;
}
.bfc-composer button[data-bfc-send]:disabled {
    opacity: .68 !important;
    cursor: wait !important;
    transform: none !important;
}
.bfc-composer-meta,
.bfc-widget .bfc-composer-meta {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
}
.bfc-privacy-notice,
.bfc-widget .bfc-privacy-notice {
    margin: 0 !important;
    max-width: 68% !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}
.bfc-privacy-lock,
.bfc-widget .bfc-privacy-lock {
    color: #64748b !important;
    min-width: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 1px !important;
    display: inline-flex !important;
}
.bfc-privacy-lock svg { width: 18px !important; height: 18px !important; fill: currentColor !important; }
.bfc-counter,
.bfc-widget .bfc-counter {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.55 !important;
    white-space: nowrap !important;
    direction: ltr !important;
    text-align: end !important;
}

.bfc-error,
.bfc-widget .bfc-error {
    margin: 0 34px 18px !important;
    padding: 12px 16px !important;
    border: 1px solid #fecaca !important;
    border-radius: 16px !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    font-size: 13px !important;
}
.bfc-closed-notice,
.bfc-widget .bfc-closed-notice {
    padding: 18px 34px !important;
    background: #fff7ed !important;
    border-top: 1px solid #fed7aa !important;
    color: #9a3412 !important;
    font-size: 14px !important;
}
.bfc-closed-notice button,
.bfc-widget .bfc-closed-notice button {
    border-radius: 14px !important;
    background: #9a3412 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 10px 14px !important;
}

.bfc-launcher,
.bfc-widget .bfc-launcher {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 58%, #0f8f86 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 24px 52px rgba(37,99,235,.28), 0 8px 18px rgba(15,23,42,.16) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.bfc-launcher:hover,
.bfc-widget .bfc-launcher:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 28px 64px rgba(37,99,235,.34), 0 10px 20px rgba(15,23,42,.18) !important;
}
.bfc-launcher::after,
.bfc-widget .bfc-launcher::after {
    content: "" !important;
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    right: 2px !important;
    bottom: 2px !important;
    background: #10b981 !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 14px rgba(15,23,42,.20) !important;
}
.bfc-widget.is-open .bfc-launcher::after { display: none !important; }
.bfc-launcher svg,
.bfc-widget .bfc-launcher svg {
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.08)) !important;
}

@media (max-width: 760px) {
    .bfc-panel,
    .bfc-widget .bfc-panel {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(var(--bfc-mobile-bottom) + var(--bfc-launcher-size) + 14px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        height: min(78vh, 680px) !important;
        border-radius: 24px !important;
    }
    .bfc-panel-header,
    .bfc-widget .bfc-panel-header {
        min-height: 112px !important;
        padding: 20px 22px !important;
    }
    .bfc-panel-brand { gap: 14px !important; }
    .bfc-panel-icon {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
    }
    .bfc-panel-icon svg { width: 28px !important; height: 28px !important; }
    .bfc-panel-header strong,
    .bfc-widget .bfc-panel-header strong { font-size: 23px !important; }
    .bfc-panel-header p,
    .bfc-widget .bfc-panel-header p { font-size: 14px !important; }
    .bfc-status-bar,
    .bfc-widget .bfc-status-bar { min-height: 56px !important; padding: 0 22px !important; font-size: 15px !important; }
    .bfc-messages,
    .bfc-widget .bfc-messages { padding: 24px 18px 22px !important; gap: 18px !important; }
    .bfc-message,
    .bfc-widget .bfc-message { max-width: 84% !important; }
    .bfc-message.is-admin,
    .bfc-message.is-system,
    .bfc-widget .bfc-message.is-admin,
    .bfc-widget .bfc-message.is-system { margin-inline-start: 0 !important; }
    .bfc-message.is-admin::before,
    .bfc-message.is-system::before,
    .bfc-message.is-admin::after,
    .bfc-message.is-system::after { display: none !important; }
    .bfc-message-body,
    .bfc-widget .bfc-message-body { font-size: 15px !important; padding: 14px 16px !important; border-radius: 18px !important; }
    .bfc-message-time,
    .bfc-widget .bfc-message-time { font-size: 12px !important; }
    .bfc-composer,
    .bfc-widget .bfc-composer { padding: 18px !important; gap: 12px !important; }
    .bfc-composer-row,
    .bfc-widget .bfc-composer-row { grid-template-columns: 1fr !important; gap: 12px !important; }
    .bfc-input-wrap,
    .bfc-widget .bfc-input-wrap { min-height: 64px !important; }
    .bfc-widget .bfc-composer textarea[data-bfc-input] {
        height: 64px !important;
        min-height: 64px !important;
        font-size: 15px !important;
        padding-top: 20px !important;
        padding-bottom: 14px !important;
    }
    .bfc-composer button[data-bfc-send],
    .bfc-widget .bfc-composer button[data-bfc-send] {
        height: 56px !important;
        min-width: 100% !important;
        border-radius: 18px !important;
    }
    .bfc-composer-meta,
    .bfc-widget .bfc-composer-meta { flex-direction: column !important; gap: 8px !important; }
    .bfc-privacy-notice,
    .bfc-widget .bfc-privacy-notice { max-width: 100% !important; font-size: 12px !important; }
    .bfc-counter,
    .bfc-widget .bfc-counter { align-self: flex-end !important; font-size: 12px !important; }
}

/* v1.4.1 Compact premium widget stabilization.
   Fixes oversized panel, clickable close, draggable desktop header, cleaner copy spacing. */
.bfc-panel,
.bfc-widget .bfc-panel {
    width: min(440px, calc(100vw - 32px)) !important;
    height: min(560px, calc(100vh - 108px)) !important;
    border-radius: 22px !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto !important;
    box-shadow: 0 24px 62px rgba(15,23,42,.22), 0 8px 20px rgba(15,23,42,.10) !important;
    pointer-events: auto !important;
}
.bfc-panel.is-dragging,
.bfc-widget .bfc-panel.is-dragging {
    transition: none !important;
    user-select: none !important;
}
.bfc-panel.is-positioned,
.bfc-widget .bfc-panel.is-positioned {
    bottom: auto !important;
    right: auto !important;
}
.bfc-panel-header,
.bfc-widget .bfc-panel-header {
    min-height: 94px !important;
    padding: 17px 18px !important;
    align-items: center !important;
    cursor: move !important;
    gap: 12px !important;
}
.bfc-panel-icon,
.bfc-widget .bfc-panel-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
}
.bfc-panel-icon svg,
.bfc-widget .bfc-panel-icon svg {
    width: 25px !important;
    height: 25px !important;
}
.bfc-panel-header strong,
.bfc-widget .bfc-panel-header strong {
    font-size: 21px !important;
    line-height: 1.18 !important;
}
.bfc-panel-header p,
.bfc-widget .bfc-panel-header p {
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}
.bfc-close,
.bfc-panel .bfc-close,
button.bfc-close {
    z-index: 50 !important;
    pointer-events: auto !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    font-size: 22px !important;
    cursor: pointer !important;
}
.bfc-status-bar,
.bfc-widget .bfc-status-bar {
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
}
.bfc-messages,
.bfc-widget .bfc-messages {
    padding: 18px !important;
    gap: 14px !important;
}
.bfc-message,
.bfc-widget .bfc-message {
    max-width: 84% !important;
}
.bfc-message.is-admin,
.bfc-message.is-system,
.bfc-widget .bfc-message.is-admin,
.bfc-widget .bfc-message.is-system {
    margin-inline-start: 0 !important;
}
.bfc-message.is-admin::before,
.bfc-message.is-system::before,
.bfc-message.is-admin::after,
.bfc-message.is-system::after,
.bfc-widget .bfc-message.is-admin::before,
.bfc-widget .bfc-message.is-system::before,
.bfc-widget .bfc-message.is-admin::after,
.bfc-widget .bfc-message.is-system::after {
    display: none !important;
}
.bfc-message-body,
.bfc-widget .bfc-message-body {
    padding: 12px 15px !important;
    border-radius: 17px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}
.bfc-message-time,
.bfc-widget .bfc-message-time {
    font-size: 11px !important;
}
.bfc-composer,
.bfc-widget .bfc-composer {
    padding: 14px 16px 16px !important;
    gap: 10px !important;
}
.bfc-composer-row,
.bfc-widget .bfc-composer-row {
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
}
.bfc-input-wrap,
.bfc-widget .bfc-input-wrap {
    min-height: 54px !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input],
.bfc-input-wrap textarea[data-bfc-input] {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 108px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    padding: 16px 74px 12px 16px !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input] {
    padding-right: 16px !important;
    padding-left: 74px !important;
}
.bfc-input-tool,
.bfc-widget .bfc-input-tool {
    width: 28px !important;
    height: 28px !important;
}
.bfc-input-tool svg,
.bfc-widget .bfc-input-tool svg {
    width: 19px !important;
    height: 19px !important;
}
.bfc-input-attach { right: 42px !important; }
.bfc-input-send-hint { right: 12px !important; }
.bfc-widget[dir="rtl"] .bfc-input-attach { right: auto !important; left: 42px !important; }
.bfc-widget[dir="rtl"] .bfc-input-send-hint { right: auto !important; left: 12px !important; }
.bfc-send-button,
.bfc-composer button[data-bfc-send],
.bfc-widget .bfc-composer button[data-bfc-send] {
    min-width: 88px !important;
    height: 54px !important;
    padding: 0 18px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
}
.bfc-composer-meta,
.bfc-widget .bfc-composer-meta {
    gap: 10px !important;
}
.bfc-privacy-notice,
.bfc-widget .bfc-privacy-notice {
    max-width: 72% !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}
.bfc-counter,
.bfc-widget .bfc-counter {
    font-size: 11px !important;
    font-weight: 700 !important;
}
.bfc-launcher,
.bfc-widget .bfc-launcher {
    z-index: 2147483002 !important;
}
.bfc-overlay,
.bfc-widget .bfc-overlay {
    pointer-events: none !important;
}
@media (max-width: 760px) {
    .bfc-panel,
    .bfc-widget .bfc-panel {
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: calc(var(--bfc-mobile-bottom) + var(--bfc-launcher-size) + 12px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        height: min(72vh, 560px) !important;
        border-radius: 20px !important;
    }
    .bfc-panel-header,
    .bfc-widget .bfc-panel-header {
        min-height: 78px !important;
        padding: 14px 16px !important;
        cursor: default !important;
    }
    .bfc-panel-icon,
    .bfc-widget .bfc-panel-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    .bfc-panel-header strong,
    .bfc-widget .bfc-panel-header strong { font-size: 18px !important; }
    .bfc-panel-header p,
    .bfc-widget .bfc-panel-header p { font-size: 12px !important; }
    .bfc-composer-row,
    .bfc-widget .bfc-composer-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .bfc-composer button[data-bfc-send],
    .bfc-widget .bfc-composer button[data-bfc-send] {
        min-width: 100% !important;
        height: 50px !important;
    }
    .bfc-composer-meta,
    .bfc-widget .bfc-composer-meta {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .bfc-privacy-notice,
    .bfc-widget .bfc-privacy-notice {
        max-width: 100% !important;
    }
    .bfc-counter,
    .bfc-widget .bfc-counter {
        align-self: flex-end !important;
    }
}

/* v1.4.2 Popup UX hardening and mobile dimensions.
   Final override block: fixes hidden-state close failures caused by later display rules,
   keeps desktop panel compact, and defines predictable mobile dimensions. */
.bfc-widget [hidden],
.bfc-widget .bfc-panel[hidden],
.bfc-widget .bfc-overlay[hidden],
.bfc-widget .bfc-visitor-form[hidden],
.bfc-widget .bfc-messages-shell[hidden],
.bfc-widget .bfc-closed-notice[hidden],
.bfc-widget .bfc-composer[hidden],
.bfc-widget .bfc-error[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bfc-widget,
.bfc-widget * {
    box-sizing: border-box !important;
}

.bfc-widget .bfc-panel {
    width: min(390px, calc(100vw - 32px)) !important;
    max-width: 390px !important;
    height: min(585px, calc(100dvh - 118px)) !important;
    max-height: calc(100dvh - 118px) !important;
    min-height: 430px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto !important;
    box-shadow: 0 22px 56px rgba(15,23,42,.20), 0 7px 18px rgba(15,23,42,.10) !important;
    background: #fff !important;
}

.bfc-widget .bfc-panel.is-positioned {
    bottom: auto !important;
    right: auto !important;
}

.bfc-widget .bfc-panel-header {
    min-height: 82px !important;
    padding: 14px 16px !important;
    cursor: move !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    align-items: center !important;
    gap: 10px !important;
}
.bfc-widget .bfc-panel-brand {
    gap: 12px !important;
    min-width: 0 !important;
}
.bfc-widget .bfc-panel-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
}
.bfc-widget .bfc-panel-icon svg {
    width: 22px !important;
    height: 22px !important;
}
.bfc-widget .bfc-panel-header strong {
    font-size: 18px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.bfc-widget .bfc-panel-header p {
    margin-top: 3px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.bfc-widget .bfc-close,
.bfc-widget button.bfc-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    position: relative !important;
    z-index: 2147483004 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.32) !important;
    font-size: 22px !important;
    line-height: 1 !important;
}
.bfc-widget .bfc-status-bar {
    min-height: 40px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
    gap: 10px !important;
}
.bfc-widget .bfc-status-dot {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    box-shadow: 0 0 0 5px rgba(16,185,129,.12) !important;
}
.bfc-widget .bfc-messages-shell {
    min-height: 0 !important;
    overflow: hidden !important;
}
.bfc-widget .bfc-messages {
    padding: 14px 15px 16px !important;
    gap: 11px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
}
.bfc-widget .bfc-message {
    max-width: 86% !important;
}
.bfc-widget .bfc-message-body {
    padding: 10px 13px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
}
.bfc-widget .bfc-message-body a {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}
.bfc-widget .bfc-message-time {
    font-size: 10.5px !important;
    color: #64748b !important;
}
.bfc-widget .bfc-composer {
    padding: 12px 14px 13px !important;
    gap: 8px !important;
}
.bfc-widget .bfc-composer-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 78px !important;
    align-items: stretch !important;
    gap: 9px !important;
}
.bfc-widget .bfc-input-wrap {
    min-height: 48px !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input] {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 92px !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    padding: 14px 66px 10px 13px !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input] {
    padding-right: 13px !important;
    padding-left: 66px !important;
}
.bfc-widget .bfc-input-tool {
    width: 24px !important;
    height: 24px !important;
}
.bfc-widget .bfc-input-tool svg {
    width: 17px !important;
    height: 17px !important;
}
.bfc-widget .bfc-input-attach { right: 36px !important; }
.bfc-widget .bfc-input-send-hint { right: 10px !important; }
.bfc-widget[dir="rtl"] .bfc-input-attach { right: auto !important; left: 36px !important; }
.bfc-widget[dir="rtl"] .bfc-input-send-hint { right: auto !important; left: 10px !important; }
.bfc-widget .bfc-composer button[data-bfc-send] {
    width: 78px !important;
    min-width: 78px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
}
.bfc-widget .bfc-composer-meta {
    align-items: flex-start !important;
    gap: 8px !important;
}
.bfc-widget .bfc-privacy-notice {
    max-width: calc(100% - 94px) !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    gap: 7px !important;
}
.bfc-widget .bfc-privacy-lock,
.bfc-widget .bfc-privacy-lock svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
}
.bfc-widget .bfc-counter {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    max-width: 94px !important;
    white-space: normal !important;
}
.bfc-widget .bfc-launcher {
    width: clamp(50px, var(--bfc-launcher-size), 62px) !important;
    height: clamp(50px, var(--bfc-launcher-size), 62px) !important;
    min-width: 50px !important;
    min-height: 50px !important;
    z-index: 2147483005 !important;
}
.bfc-widget .bfc-launcher svg {
    width: min(var(--bfc-launcher-icon-size), 30px) !important;
    height: min(var(--bfc-launcher-icon-size), 30px) !important;
}
.bfc-widget.is-open .bfc-launcher {
    transform: none !important;
}

@media (max-width: 760px) {
    .bfc-widget .bfc-panel {
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: calc(var(--bfc-mobile-bottom) + var(--bfc-launcher-size) + 10px + env(safe-area-inset-bottom, 0px)) !important;
        width: calc(100dvw - 20px) !important;
        max-width: none !important;
        height: min(70dvh, calc(100dvh - 112px)) !important;
        max-height: calc(100dvh - 112px) !important;
        min-height: 380px !important;
        border-radius: 18px !important;
    }
    .bfc-widget .bfc-panel.is-positioned {
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: calc(var(--bfc-mobile-bottom) + var(--bfc-launcher-size) + 10px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .bfc-widget .bfc-panel-header {
        min-height: 68px !important;
        padding: 11px 13px !important;
        cursor: default !important;
    }
    .bfc-widget .bfc-panel-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    .bfc-widget .bfc-panel-icon svg {
        width: 19px !important;
        height: 19px !important;
    }
    .bfc-widget .bfc-panel-header strong {
        font-size: 16px !important;
    }
    .bfc-widget .bfc-panel-header p {
        font-size: 10.5px !important;
        -webkit-line-clamp: 1 !important;
    }
    .bfc-widget .bfc-close,
    .bfc-widget button.bfc-close {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        font-size: 20px !important;
    }
    .bfc-widget .bfc-status-bar {
        min-height: 34px !important;
        padding: 0 13px !important;
        font-size: 11px !important;
    }
    .bfc-widget .bfc-messages {
        padding: 11px 12px 12px !important;
        gap: 9px !important;
    }
    .bfc-widget .bfc-message {
        max-width: 88% !important;
    }
    .bfc-widget .bfc-message-body {
        font-size: 12.5px !important;
        line-height: 1.48 !important;
        padding: 9px 11px !important;
        border-radius: 14px !important;
    }
    .bfc-widget .bfc-composer {
        padding: 10px 11px 11px !important;
        gap: 7px !important;
    }
    .bfc-widget .bfc-composer-row {
        grid-template-columns: minmax(0, 1fr) 62px !important;
        gap: 7px !important;
    }
    .bfc-widget .bfc-input-wrap {
        min-height: 44px !important;
    }
    .bfc-widget .bfc-composer textarea[data-bfc-input] {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 84px !important;
        font-size: 12.5px !important;
        padding-top: 12px !important;
        padding-bottom: 8px !important;
    }
    .bfc-widget .bfc-composer button[data-bfc-send] {
        width: 62px !important;
        min-width: 62px !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 13px !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
    }
    .bfc-widget .bfc-composer-meta {
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
    }
    .bfc-widget .bfc-privacy-notice {
        max-width: calc(100% - 76px) !important;
        font-size: 9.8px !important;
    }
    .bfc-widget .bfc-counter {
        font-size: 9.8px !important;
        max-width: 74px !important;
        text-align: end !important;
    }
    .bfc-widget .bfc-launcher {
        width: clamp(48px, var(--bfc-launcher-size), 56px) !important;
        height: clamp(48px, var(--bfc-launcher-size), 56px) !important;
    }
}

@media (max-width: 420px) {
    .bfc-widget .bfc-panel {
        left: 8px !important;
        right: 8px !important;
        width: calc(100dvw - 16px) !important;
        height: min(72dvh, calc(100dvh - 102px)) !important;
        max-height: calc(100dvh - 102px) !important;
        min-height: 350px !important;
        border-radius: 16px !important;
    }
    .bfc-widget .bfc-message { max-width: 92% !important; }
    .bfc-widget .bfc-panel-brand { gap: 9px !important; }
    .bfc-widget .bfc-composer-row { grid-template-columns: minmax(0, 1fr) 56px !important; }
    .bfc-widget .bfc-composer button[data-bfc-send] { width: 56px !important; min-width: 56px !important; font-size: 12px !important; }
    .bfc-widget .bfc-privacy-notice span:last-child {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

@media (max-height: 620px) {
    .bfc-widget .bfc-panel {
        height: calc(100dvh - 90px) !important;
        max-height: calc(100dvh - 90px) !important;
    }
    .bfc-widget .bfc-panel-header { min-height: 62px !important; padding-top: 9px !important; padding-bottom: 9px !important; }
    .bfc-widget .bfc-status-bar { min-height: 32px !important; }
    .bfc-widget .bfc-composer { padding-top: 8px !important; padding-bottom: 8px !important; }
}

/* v1.4.3 fast-submit and thinking-state UX */
.bfc-message.is-pending .bfc-message-body,
.bfc-widget .bfc-message.is-pending .bfc-message-body {
    opacity: .88 !important;
}
.bfc-message.is-pending .bfc-message-time,
.bfc-widget .bfc-message.is-pending .bfc-message-time {
    color: #2563eb !important;
    font-weight: 750 !important;
}
.bfc-message.is-typing,
.bfc-widget .bfc-message.is-typing {
    max-width: min(76%, 360px) !important;
}
.bfc-message.is-typing .bfc-message-body,
.bfc-widget .bfc-message.is-typing .bfc-message-body {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    min-height: 42px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    border-color: #dbeafe !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}
.bfc-typing-dots,
.bfc-widget .bfc-typing-dots {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.bfc-typing-dots i,
.bfc-widget .bfc-typing-dots i {
    width: 5px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: #2563eb !important;
    opacity: .35 !important;
    animation: bfc-typing-dot 1.05s infinite ease-in-out !important;
}
.bfc-typing-dots i:nth-child(2) { animation-delay: .14s !important; }
.bfc-typing-dots i:nth-child(3) { animation-delay: .28s !important; }
@keyframes bfc-typing-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: .32; }
    40% { transform: translateY(-3px); opacity: 1; }
}
.bfc-widget .bfc-composer textarea[data-bfc-input]:placeholder-shown {
    direction: ltr !important;
}
@media (max-width: 760px) {
    .bfc-message.is-typing,
    .bfc-widget .bfc-message.is-typing {
        max-width: 86% !important;
    }
    .bfc-message.is-typing .bfc-message-body,
    .bfc-widget .bfc-message.is-typing .bfc-message-body {
        font-size: 12px !important;
        padding: 10px 13px !important;
    }
}

/* v1.4.4 Header visibility and duplicate-send state hardening.
   The header must never reopen above the visible viewport, and optimistic/poll states
   must not leave a second copy of the same visitor message on screen. */
.bfc-widget .bfc-panel {
    transform: none !important;
}
.bfc-widget .bfc-panel-header {
    position: relative !important;
    z-index: 3 !important;
    flex-shrink: 0 !important;
}
.bfc-widget .bfc-status-bar {
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
}
.bfc-widget .bfc-messages-shell {
    min-height: 0 !important;
}
.bfc-widget .bfc-message.is-pending + .bfc-message.is-visitor .bfc-message-body {
    box-shadow: none !important;
}
.bfc-widget .bfc-composer button[data-bfc-send]:disabled {
    opacity: .72 !important;
    cursor: progress !important;
}
@media (max-width: 760px) {
    .bfc-widget .bfc-panel {
        top: auto !important;
        transform: none !important;
    }
}

/* v1.4.6 Popup layout lock and mobile composer stabilization.
   This is the final, high-specificity layout layer: the panel becomes a real
   column layout, messages own the flexible middle area, and the composer is
   pinned to the bottom for both new and existing conversations. */
.bfc-widget .bfc-panel:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    width: min(390px, calc(100vw - 32px)) !important;
    max-width: 390px !important;
    height: min(540px, calc(100dvh - 116px)) !important;
    max-height: calc(100dvh - 116px) !important;
    min-height: 410px !important;
    overflow: hidden !important;
}
.bfc-widget .bfc-panel[hidden] {
    display: none !important;
}
.bfc-widget .bfc-panel-header,
.bfc-widget .bfc-status-bar,
.bfc-widget .bfc-visitor-form,
.bfc-widget .bfc-composer,
.bfc-widget .bfc-closed-notice,
.bfc-widget .bfc-error {
    flex: 0 0 auto !important;
}
.bfc-widget .bfc-panel-header {
    min-height: 76px !important;
    padding: 13px 15px !important;
}
.bfc-widget .bfc-status-bar {
    min-height: 38px !important;
    padding: 0 15px !important;
}
.bfc-widget .bfc-messages-shell:not([hidden]) {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    position: relative !important;
}
.bfc-widget .bfc-messages {
    min-height: 100% !important;
    height: 100% !important;
    padding: 13px 15px 14px !important;
    gap: 10px !important;
}
.bfc-widget .bfc-empty-state {
    inset: 0 !important;
    padding: 18px !important;
    font-size: 13px !important;
}
.bfc-widget .bfc-composer:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 11px 13px 11px !important;
    gap: 7px !important;
    margin: 0 !important;
    min-height: 0 !important;
    position: relative !important;
    z-index: 4 !important;
    border-top: 1px solid rgba(226,232,240,.95) !important;
}
.bfc-widget .bfc-composer-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 46px !important;
}
.bfc-widget .bfc-input-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 46px !important;
    height: auto !important;
    display: flex !important;
    align-items: stretch !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input] {
    min-height: 46px !important;
    height: 46px !important;
    max-height: 86px !important;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
}
.bfc-widget .bfc-composer button[data-bfc-send] {
    flex: 0 0 74px !important;
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
    align-self: stretch !important;
}
.bfc-widget .bfc-composer-meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
}
.bfc-widget .bfc-privacy-notice {
    max-width: calc(100% - 82px) !important;
    font-size: 10px !important;
    line-height: 1.32 !important;
    margin: 0 !important;
}
.bfc-widget .bfc-counter {
    max-width: 80px !important;
    font-size: 10px !important;
    line-height: 1.32 !important;
    white-space: normal !important;
    text-align: end !important;
}
.bfc-widget .bfc-message-body {
    font-size: 13px !important;
    line-height: 1.5 !important;
}
.bfc-widget .bfc-message-time {
    font-size: 10px !important;
}

@media (max-width: 760px) {
    .bfc-widget .bfc-panel:not([hidden]) {
        left: 8px !important;
        right: 8px !important;
        top: auto !important;
        bottom: calc(var(--bfc-mobile-bottom) + var(--bfc-launcher-size) + 10px + env(safe-area-inset-bottom, 0px)) !important;
        width: calc(100dvw - 16px) !important;
        max-width: none !important;
        height: min(62dvh, 520px) !important;
        max-height: calc(100dvh - 108px) !important;
        min-height: 360px !important;
        border-radius: 17px !important;
    }
    .bfc-widget .bfc-panel.is-positioned {
        left: 8px !important;
        right: 8px !important;
        top: auto !important;
        bottom: calc(var(--bfc-mobile-bottom) + var(--bfc-launcher-size) + 10px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .bfc-widget .bfc-panel-header {
        min-height: 64px !important;
        padding: 10px 12px !important;
    }
    .bfc-widget .bfc-panel-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }
    .bfc-widget .bfc-panel-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .bfc-widget .bfc-panel-header strong {
        font-size: 15px !important;
    }
    .bfc-widget .bfc-panel-header p {
        font-size: 10px !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 1 !important;
    }
    .bfc-widget .bfc-status-bar {
        min-height: 32px !important;
        padding: 0 12px !important;
        font-size: 10.5px !important;
    }
    .bfc-widget .bfc-messages {
        padding: 10px 11px 11px !important;
        gap: 8px !important;
    }
    .bfc-widget .bfc-message {
        max-width: 90% !important;
    }
    .bfc-widget .bfc-message-body {
        font-size: 12px !important;
        line-height: 1.45 !important;
        padding: 8px 10px !important;
    }
    .bfc-widget .bfc-composer:not([hidden]) {
        padding: 9px 10px 10px !important;
        gap: 6px !important;
    }
    .bfc-widget .bfc-composer-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 7px !important;
        min-height: 42px !important;
    }
    .bfc-widget .bfc-input-wrap {
        min-height: 42px !important;
    }
    .bfc-widget .bfc-composer textarea[data-bfc-input] {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 74px !important;
        font-size: 12px !important;
        padding-top: 11px !important;
        padding-bottom: 7px !important;
    }
    .bfc-widget .bfc-composer button[data-bfc-send] {
        flex: 0 0 58px !important;
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        height: 42px !important;
        min-height: 42px !important;
        font-size: 11.5px !important;
        border-radius: 12px !important;
    }
    .bfc-widget .bfc-composer-meta {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    .bfc-widget .bfc-privacy-notice {
        max-width: calc(100% - 70px) !important;
        font-size: 9.3px !important;
        line-height: 1.28 !important;
    }
    .bfc-widget .bfc-counter {
        max-width: 68px !important;
        font-size: 9.3px !important;
        line-height: 1.28 !important;
    }
}

@media (max-width: 420px) {
    .bfc-widget .bfc-panel:not([hidden]) {
        height: min(64dvh, 500px) !important;
        min-height: 340px !important;
    }
    .bfc-widget .bfc-panel-header { min-height: 60px !important; }
    .bfc-widget .bfc-status-bar { min-height: 30px !important; }
    .bfc-widget .bfc-composer button[data-bfc-send] {
        flex-basis: 54px !important;
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
    }
}

@media (max-height: 620px) {
    .bfc-widget .bfc-panel:not([hidden]) {
        height: calc(100dvh - 88px) !important;
        min-height: 330px !important;
    }
    .bfc-widget .bfc-panel-header { min-height: 56px !important; }
    .bfc-widget .bfc-status-bar { min-height: 28px !important; }
}

/* v1.5.45: attachments are hidden until the full secure upload pipeline exists. */
.bfc-input-attach { display: none !important; }

/* v1.5.57 commerce product cards */
.bfc-product-cards-intro {
  margin-bottom: 10px;
  line-height: 1.65;
}
.bfc-product-cards {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.bfc-product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(80, 130, 120, 0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.bfc-product-card-image {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
}
.bfc-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bfc-product-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bfc-product-card-title {
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
}
.bfc-product-card-title:hover,
.bfc-product-card-title:focus {
  text-decoration: underline;
}
.bfc-product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bfc-product-card-price,
.bfc-product-card-stock {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.08);
  color: #1f3154;
}
.bfc-product-card-stock {
  background: rgba(16, 185, 129, 0.10);
}
.bfc-product-card-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: var(--bfc-primary, #2563eb);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}
.bfc-product-card-button:hover,
.bfc-product-card-button:focus {
  filter: brightness(0.96);
}
@media (max-width: 430px) {
  .bfc-product-card {
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 9px;
  }
  .bfc-product-card-image {
    width: 60px;
    height: 60px;
  }
  .bfc-product-card-button {
    width: 100%;
  }
}

/* v1.5.58 universal page/link cards */
.bfc-link-cards-intro {
  margin-bottom: 10px;
  line-height: 1.65;
}
.bfc-link-cards {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.bfc-link-card {
  padding: 11px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.bfc-link-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bfc-link-card-top {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.bfc-link-card-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
}
.bfc-link-card-title:hover,
.bfc-link-card-title:focus {
  text-decoration: underline;
}
.bfc-link-card-kind {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.09);
  color: #1f3154;
}
.bfc-link-card-excerpt {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(31,49,84,0.78);
}
.bfc-link-card-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: var(--bfc-primary, #2563eb);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}
.bfc-link-card-button:hover,
.bfc-link-card-button:focus {
  filter: brightness(0.96);
}
@media (max-width: 430px) {
  .bfc-link-card-button {
    width: 100%;
  }
}

/* v1.6.9 — cache-safe full visitor UI color control */
.bfc-widget .bfc-panel { background: var(--bfc-panel-bg, #fff) !important; color: var(--bfc-panel-text, #0f172a) !important; }
.bfc-widget .bfc-panel-header { background: var(--bfc-header-bg, var(--bfc-launcher-color)) !important; color: var(--bfc-header-text, #fff) !important; }
.bfc-widget .bfc-panel-header * { color: inherit !important; }
.bfc-widget .bfc-close { background: var(--bfc-close-bg, rgba(255,255,255,.14)) !important; color: var(--bfc-close-text, #fff) !important; }
.bfc-widget .bfc-status-bar { background: var(--bfc-status-bg, #fff) !important; color: var(--bfc-status-text, #475569) !important; }
.bfc-widget .bfc-status-dot { background: var(--bfc-status-dot, #10b981) !important; }
.bfc-widget .bfc-messages-shell,
.bfc-widget .bfc-messages { background: var(--bfc-messages-bg, #f8fafc) !important; }
.bfc-widget .bfc-message.is-visitor .bfc-message-body { background: var(--bfc-visitor-bubble-bg, #eef4ff) !important; color: var(--bfc-visitor-bubble-text, #0f172a) !important; border-color: var(--bfc-visitor-bubble-border, #dbeafe) !important; }
.bfc-widget .bfc-message.is-admin .bfc-message-body,
.bfc-widget .bfc-message.is-system .bfc-message-body,
.bfc-widget .bfc-message.is-typing .bfc-message-body { background: var(--bfc-assistant-bubble-bg, #fff) !important; color: var(--bfc-assistant-bubble-text, #0f172a) !important; border: 1px solid var(--bfc-assistant-bubble-border, #dbeafe) !important; }
.bfc-widget .bfc-composer { background: var(--bfc-composer-bg, #fff) !important; }
.bfc-widget .bfc-input-wrap textarea,
.bfc-widget textarea[data-bfc-input] { background: var(--bfc-input-bg, #fff) !important; color: var(--bfc-input-text, #0f172a) !important; border-color: var(--bfc-input-border, #cbd5e1) !important; }
.bfc-widget .bfc-send-button,
.bfc-widget [data-bfc-send] { background: var(--bfc-send-bg, #5b7df3) !important; color: var(--bfc-send-text, #fff) !important; }
.bfc-widget .bfc-product-card { background: var(--bfc-product-card-bg, #fff) !important; color: var(--bfc-product-card-text, #0f172a) !important; }
.bfc-widget .bfc-product-card *:not(.bfc-product-card-button) { color: inherit !important; }
.bfc-widget .bfc-product-card-button { background: var(--bfc-product-card-button-bg, #086562) !important; color: var(--bfc-product-card-button-text, #fff) !important; }
.bfc-widget .bfc-link-card { background: var(--bfc-link-card-bg, #fff) !important; color: var(--bfc-link-card-text, #0f172a) !important; }
.bfc-widget .bfc-link-card *:not(.bfc-link-card-button) { color: inherit !important; }
.bfc-widget .bfc-link-card-button { background: var(--bfc-link-card-button-bg, #086562) !important; color: var(--bfc-link-card-button-text, #fff) !important; }
.bfc-language-override-card { background:#fff; border:1px solid #dbe4f0; border-radius:18px; padding:18px; margin:18px 0; box-shadow:0 10px 28px rgba(15,23,42,.06); }
.bfc-language-override-card h4 { margin:0 0 14px; font-size:16px; }

/* v1.6.13: public handoff button and permanent character-counter removal. */
.bfc-widget .bfc-counter,
.bfc-widget [data-bfc-counter] {
  display: none !important;
}
.bfc-widget .bfc-conversation-actions {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 14px 0 !important;
  position: relative !important;
  z-index: 2 !important;
}
.bfc-widget[dir="rtl"] .bfc-conversation-actions {
  justify-content: flex-end !important;
}
.bfc-widget .bfc-human-request-button {
  appearance: none !important;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--bfc-panel-text, #0f172a) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  padding: 9px 13px !important;
  max-width: 100% !important;
}
.bfc-widget .bfc-human-request-button:hover:not(:disabled),
.bfc-widget .bfc-human-request-button:focus-visible:not(:disabled) {
  border-color: var(--bfc-launcher-color, #0f766e) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12), 0 8px 20px rgba(15, 23, 42, .08) !important;
  outline: none !important;
}
.bfc-widget .bfc-human-request-button:disabled {
  cursor: default !important;
  opacity: .72 !important;
}
.bfc-widget .bfc-human-request-button[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .bfc-widget .bfc-conversation-actions {
    padding: 8px 12px 0 !important;
  }
  .bfc-widget .bfc-human-request-button {
    font-size: 11px !important;
    padding: 8px 11px !important;
  }
}


/* v1.8.6: human handoff placement and composer baseline hardening.
   Keep the human request action in the status row, opposite the online status text.
   The layout follows the widget direction automatically: RTL places the action on
   the left, LTR places it on the right. Also prevents Arabic button/input text
   from being clipped at the bottom on mobile and tablet browsers. */
.bfc-widget .bfc-status-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-width: 0 !important;
}
.bfc-widget .bfc-status-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bfc-widget .bfc-status-content [data-bfc-status-text] {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.bfc-widget .bfc-conversation-actions {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  position: static !important;
  z-index: auto !important;
}
.bfc-widget .bfc-conversation-actions:empty,
.bfc-widget .bfc-conversation-actions[hidden] {
  display: none !important;
}
.bfc-widget .bfc-human-request-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  max-width: min(190px, 42vw) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.35 !important;
  padding: 7px 13px 8px !important;
  margin: 0 !important;
  font-size: 12px !important;
}
.bfc-widget .bfc-human-request-button[hidden] {
  display: none !important;
}
.bfc-widget .bfc-messages-shell > .bfc-conversation-actions {
  display: none !important;
}
.bfc-widget .bfc-composer-row {
  align-items: center !important;
}
.bfc-widget .bfc-input-wrap {
  min-height: 54px !important;
  align-items: center !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input] {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 108px !important;
  line-height: 1.55 !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  overflow-y: auto !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input] {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
.bfc-widget .bfc-composer button[data-bfc-send] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 54px !important;
  min-height: 54px !important;
  line-height: 1.35 !important;
  padding-top: 0 !important;
  padding-bottom: 2px !important;
  overflow: visible !important;
}
@media (max-width: 760px) {
  .bfc-widget .bfc-status-bar {
    min-height: 42px !important;
    padding-inline: 12px !important;
    gap: 8px !important;
  }
  .bfc-widget .bfc-status-content {
    gap: 8px !important;
  }
  .bfc-widget .bfc-human-request-button {
    min-height: 30px !important;
    max-width: min(170px, 45vw) !important;
    font-size: 11px !important;
    padding: 6px 11px 7px !important;
  }
  .bfc-widget .bfc-input-wrap {
    min-height: 48px !important;
  }
  .bfc-widget .bfc-composer textarea[data-bfc-input] {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 92px !important;
    line-height: 1.55 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .bfc-widget .bfc-composer button[data-bfc-send] {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 1.35 !important;
    padding-bottom: 2px !important;
  }
}
@media (max-width: 420px) {
  .bfc-widget .bfc-status-bar {
    min-height: 40px !important;
    padding-inline: 10px !important;
  }
  .bfc-widget .bfc-status-content {
    font-size: 10.5px !important;
  }
  .bfc-widget .bfc-human-request-button {
    max-width: 42vw !important;
    font-size: 10.5px !important;
    padding-inline: 9px !important;
  }
}

/* v1.8.8: colored compact human handoff action icon. */
.bfc-widget .bfc-status-bar .bfc-human-request-button {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  gap: 5px !important;
  min-height: 0 !important;
  height: auto !important;
  max-width: min(150px, 38vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bfc-panel-text, #0f172a) !important;
  cursor: pointer !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bfc-widget .bfc-status-bar .bfc-human-request-button::before {
  content: "" !important;
  display: inline-block !important;
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 21px !important;
  flex-basis: 21px !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%0A%20%20%3Cdefs%3E%3ClinearGradient%20id=%27g%27%20x1=%273%27%20y1=%273%27%20x2=%2721%27%20y2=%2721%27%3E%3Cstop%20offset=%270%27%20stop-color=%27#22c55e%27/%3E%3Cstop%20offset=%271%27%20stop-color=%27#2563eb%27/%3E%3C/linearGradient%3E%3C/defs%3E%0A%20%20%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%2710.5%27%20fill=%27url(#g)%27/%3E%0A%20%20%3Ccircle%20cx=%2712%27%20cy=%279%27%20r=%273.25%27%20fill=%27#fff%27/%3E%0A%20%20%3Cpath%20d=%27M6.6%2018.1c.75-3%202.85-4.7%205.4-4.7s4.65%201.7%205.4%204.7c-1.45%201.25-3.28%201.9-5.4%201.9s-3.95-.65-5.4-1.9Z%27%20fill=%27#fff%27/%3E%0A%20%20%3Cpath%20d=%27M5.6%2011.5c0-3.6%202.75-6.35%206.4-6.35s6.4%202.75%206.4%206.35%27%20fill=%27none%27%20stroke=%27#dffcf2%27%20stroke-width=%271.8%27%20stroke-linecap=%27round%27/%3E%0A%20%20%3Crect%20x=%274.35%27%20y=%2711%27%20width=%272.8%27%20height=%274.8%27%20rx=%271.35%27%20fill=%27#dffcf2%27/%3E%0A%20%20%3Crect%20x=%2716.85%27%20y=%2711%27%20width=%272.8%27%20height=%274.8%27%20rx=%271.35%27%20fill=%27#dffcf2%27/%3E%0A%20%20%3Cpath%20d=%27M16.9%2015.6c-.45%201.25-1.5%201.9-3.15%201.9H12.5%27%20fill=%27none%27%20stroke=%27#dffcf2%27%20stroke-width=%271.4%27%20stroke-linecap=%27round%27/%3E%0A%3C/svg%3E") center / 17px 17px no-repeat !important;
  opacity: 1 !important;
}
.bfc-widget .bfc-status-bar .bfc-human-request-button:hover:not(:disabled),
.bfc-widget .bfc-status-bar .bfc-human-request-button:focus-visible:not(:disabled) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bfc-launcher-color, #0f766e) !important;
  outline: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
.bfc-widget .bfc-status-bar .bfc-human-request-button:disabled {
  cursor: default !important;
  opacity: .66 !important;
}
.bfc-widget .bfc-status-bar .bfc-human-request-button[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .bfc-widget .bfc-status-bar .bfc-human-request-button {
    max-width: min(135px, 36vw) !important;
    font-size: 10px !important;
    gap: 4px !important;
  }
  .bfc-widget .bfc-status-bar .bfc-human-request-button::before {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 21px !important;
    background-size: 16px 16px !important;
  }
}
@media (max-width: 420px) {
  .bfc-widget .bfc-status-bar .bfc-human-request-button {
    max-width: 34vw !important;
    font-size: 9.5px !important;
  }
}

/* v1.8.13 visitor privacy: read receipts are admin-only */
.bfc-widget .bfc-message-receipt {
    display: none !important;
}


/* v1.8.32 image attachment composer cleanup */
.bfc-widget .bfc-attachment-draft {
    margin: 0 0 8px !important;
}
.bfc-widget .bfc-attachment-draft[hidden] {
    display: none !important;
}
.bfc-widget .bfc-attachment-draft-chip {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    min-height:58px !important;
    padding:8px 10px !important;
    border:1px solid rgba(191,219,254,.95) !important;
    background:#f8fbff !important;
    border-radius:14px !important;
    box-shadow:0 8px 24px rgba(15,23,42,.04) !important;
}
.bfc-widget .bfc-attachment-draft-thumb {
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    border-radius:10px !important;
    overflow:hidden !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#eaf1ff !important;
    color:#2563eb !important;
}
.bfc-widget .bfc-attachment-draft-thumb img {
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}
.bfc-widget .bfc-attachment-draft-thumb svg {
    width:18px !important;
    height:18px !important;
    fill:currentColor !important;
}
.bfc-widget .bfc-attachment-draft-meta {
    min-width:0 !important;
    flex:1 1 auto !important;
    display:flex !important;
    flex-direction:column !important;
    gap:2px !important;
}
.bfc-widget .bfc-attachment-draft-name {
    display:block !important;
    font-size:12.5px !important;
    font-weight:700 !important;
    color:#1f2937 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}
.bfc-widget .bfc-attachment-draft-hint {
    display:block !important;
    font-size:11px !important;
    color:#64748b !important;
}
.bfc-widget .bfc-attachment-draft-remove {
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    border:0 !important;
    border-radius:999px !important;
    background:transparent !important;
    color:#64748b !important;
    font-size:22px !important;
    line-height:1 !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-shadow:none !important;
    cursor:pointer !important;
}
.bfc-widget .bfc-attachment-draft-remove:hover,
.bfc-widget .bfc-attachment-draft-remove:focus {
    background:#e5eefc !important;
    color:#2563eb !important;
}
.bfc-widget .bfc-input-wrap {
    isolation:isolate !important;
}
.bfc-widget .bfc-attach-button {
    position:absolute !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    inset-inline-start:auto !important;
    inset-inline-end:39px !important;
    width:25px !important;
    height:25px !important;
    min-width:25px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:8px !important;
    background:transparent !important;
    color:#64748b !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-shadow:none !important;
    opacity:1 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    z-index:3 !important;
}
.bfc-widget .bfc-attach-button:hover,
.bfc-widget .bfc-attach-button:focus {
    background:#eef2ff !important;
    color:#2563eb !important;
    outline:none !important;
}
.bfc-widget .bfc-attach-button svg {
    width:18px !important;
    height:18px !important;
    fill:currentColor !important;
    display:block !important;
}
.bfc-widget .bfc-input-send-hint {
    inset-inline-end:10px !important;
    z-index:2 !important;
}
.bfc-widget[dir="rtl"] .bfc-attach-button {
    inset-inline-end:auto !important;
    inset-inline-start:39px !important;
}
.bfc-widget[dir="rtl"] .bfc-input-send-hint {
    inset-inline-end:auto !important;
    inset-inline-start:10px !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input] {
    padding-inline-start: 13px !important;
    padding-inline-end: 76px !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input] {
    padding-inline-start: 76px !important;
    padding-inline-end: 13px !important;
}
.bfc-widget .bfc-image-attachment-grid { display:grid !important; gap:8px !important; }
.bfc-widget .bfc-image-attachment { color:inherit !important; display:block !important; text-decoration:none !important; }
.bfc-widget .bfc-image-thumb-wrap {
    display:block !important;
    overflow:hidden !important;
    border-radius:14px !important;
    border:1px solid rgba(148,163,184,.35) !important;
    background:#f8fafc !important;
    max-width:220px !important;
}
.bfc-widget .bfc-image-thumb-wrap img {
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-height:220px !important;
    object-fit:cover !important;
}
.bfc-widget .bfc-image-name {
    display:block !important;
    margin-top:6px !important;
    font-size:12px !important;
    color:#64748b !important;
    font-weight:700 !important;
    max-width:220px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}



/* v1.8.33 instant image send + background upload UX */
.bfc-widget .bfc-message.is-uploading .bfc-message-time,
.bfc-widget .bfc-message.is-upload-sent .bfc-message-time {
    font-size: 11px !important;
    font-weight: 700 !important;
}
.bfc-widget .bfc-message.is-upload-sent .bfc-message-time {
    color: #64748b !important;
}
.bfc-widget .bfc-message.is-upload-failed .bfc-message-body {
    border-color: rgba(248,113,113,.55) !important;
    background: #fff7f7 !important;
}
.bfc-widget .bfc-message.is-upload-failed .bfc-message-time {
    color: #b91c1c !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}
.bfc-widget .bfc-upload-retry {
    border: 0 !important;
    background: transparent !important;
    color: #2563eb !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 0 0 6px !important;
    text-decoration: underline !important;
    box-shadow: none !important;
}
.bfc-widget[dir="rtl"] .bfc-upload-retry {
    padding: 0 6px 0 0 !important;
}

/* v1.8.34 image upload final polish + runtime cleanup */
.bfc-widget .bfc-attachment-draft-chip {
    box-shadow: none !important;
    border-color: rgba(191,219,254,.85) !important;
}
.bfc-widget .bfc-attach-button {
    border-radius: 7px !important;
    background: transparent !important;
    color: #64748b !important;
}
.bfc-widget .bfc-attach-button:hover,
.bfc-widget .bfc-attach-button:focus {
    background: #eef4ff !important;
    color: #2563eb !important;
}
.bfc-widget .bfc-message.is-uploading .bfc-message-body,
.bfc-widget .bfc-message.is-pending .bfc-message-body {
    opacity: .96 !important;
}
.bfc-widget .bfc-message.is-upload-sent .bfc-message-body {
    opacity: 1 !important;
}
.bfc-widget .bfc-message.is-upload-failed .bfc-message-body {
    border-color: rgba(248,113,113,.55) !important;
    background: #fff7f7 !important;
}
.bfc-widget .bfc-upload-failed-text {
    display: inline !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
}
.bfc-widget .bfc-upload-retry {
    display: inline !important;
    margin-inline-start: 6px !important;
    border: 0 !important;
    background: transparent !important;
    color: #2563eb !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 !important;
    text-decoration: underline !important;
    box-shadow: none !important;
}
.bfc-widget[dir="rtl"] .bfc-upload-retry {
    margin-inline-start: 0 !important;
    margin-inline-end: 6px !important;
}


/* v1.8.35 bilingual readability and SKU display */
.bfc-widget .bfc-message-body.is-rtl-text {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}
.bfc-widget .bfc-message-body.is-ltr-text {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}
.bfc-widget .bfc-image-caption {
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: inherit !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
}
.bfc-widget .bfc-product-card-sku {
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #475569 !important;
    background: #eef2ff !important;
    border-radius: 999px !important;
    padding: 2px 7px !important;
}


/* v1.8.42.15 Arabic RTL public widget hardening.
   Final high-specificity layer for Arabic layout: fixes clipped handoff tab,
   composer icon/text overlap, forced LTR placeholders, and RTL alignment drift. */
.bfc-widget[dir="rtl"],
.bfc-widget[dir="rtl"] .bfc-panel {
  direction: rtl !important;
}
.bfc-widget[dir="rtl"] .bfc-panel-header {
  direction: rtl !important;
  text-align: right !important;
  flex-direction: row !important;
  align-items: center !important;
}
.bfc-widget[dir="rtl"] .bfc-panel-brand {
  direction: rtl !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  gap: 14px !important;
}
.bfc-widget[dir="rtl"] .bfc-panel-title,
.bfc-widget[dir="rtl"] .bfc-panel-title strong,
.bfc-widget[dir="rtl"] .bfc-panel-title p {
  direction: rtl !important;
  text-align: right !important;
  min-width: 0 !important;
  unicode-bidi: plaintext !important;
}
.bfc-widget[dir="rtl"] .bfc-status-bar {
  direction: rtl !important;
  overflow: hidden !important;
  padding-inline: 14px !important;
}
.bfc-widget[dir="rtl"] .bfc-status-content {
  direction: rtl !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}
.bfc-widget[dir="rtl"] .bfc-status-content [data-bfc-status-text] {
  direction: rtl !important;
  text-align: right !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.bfc-widget[dir="rtl"] .bfc-conversation-actions {
  direction: rtl !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 48% !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bfc-widget[dir="rtl"] .bfc-human-request-button {
  direction: rtl !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.bfc-widget[dir="rtl"] .bfc-empty-state,
.bfc-widget[dir="rtl"] .bfc-closed-notice,
.bfc-widget[dir="rtl"] .bfc-privacy-notice,
.bfc-widget[dir="rtl"] .bfc-error {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext !important;
}
.bfc-widget[dir="rtl"] .bfc-visitor-form input {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext !important;
}
.bfc-widget[dir="rtl"] .bfc-composer,
.bfc-widget[dir="rtl"] .bfc-composer-row,
.bfc-widget[dir="rtl"] .bfc-input-wrap {
  direction: rtl !important;
}
.bfc-widget[dir="rtl"] .bfc-composer-row {
  flex-direction: row !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input],
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input]:placeholder-shown {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext !important;
  padding-right: 16px !important;
  padding-left: 78px !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  padding-left: 16px !important;
  padding-right: 78px !important;
}
.bfc-widget[dir="rtl"] .bfc-attach-button,
.bfc-widget[dir="rtl"] .bfc-input-attach {
  right: auto !important;
  left: 42px !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
}
.bfc-widget[dir="rtl"] .bfc-input-send-hint {
  right: auto !important;
  left: 12px !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
}
.bfc-widget[dir="rtl"] .bfc-composer button[data-bfc-send] {
  direction: rtl !important;
  text-align: center !important;
  min-width: 92px !important;
  width: 92px !important;
  max-width: 92px !important;
  line-height: 1.35 !important;
  padding-inline: 10px !important;
  white-space: nowrap !important;
}
.bfc-widget[dir="rtl"] .bfc-message-body,
.bfc-widget[dir="rtl"] .bfc-image-caption {
  unicode-bidi: plaintext !important;
}
@media (max-width: 480px) {
  .bfc-widget[dir="rtl"] .bfc-status-bar {
    padding-inline: 10px !important;
    gap: 8px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-conversation-actions {
    max-width: 46% !important;
  }
  .bfc-widget[dir="rtl"] .bfc-human-request-button {
    font-size: 11px !important;
    padding-inline: 9px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input],
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input]:placeholder-shown {
    padding-right: 14px !important;
    padding-left: 68px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
    padding-left: 14px !important;
    padding-right: 68px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-attach-button,
  .bfc-widget[dir="rtl"] .bfc-input-attach { left: 36px !important; }
  .bfc-widget[dir="rtl"] .bfc-input-send-hint { left: 10px !important; }
  .bfc-widget[dir="rtl"] .bfc-composer button[data-bfc-send] {
    min-width: 82px !important;
    width: 82px !important;
    max-width: 82px !important;
  }
}

/* v1.8.42.16 Arabic RTL composer icon spacing fix.
   This final layer separates the attachment/send-hint icons from each other and
   reserves enough input padding so Arabic placeholder/text cannot sit under the
   icons in RTL. It also keeps the LTR composer behavior safe for English/SKU text. */
.bfc-widget .bfc-input-wrap,
.bfc-widget[dir="rtl"] .bfc-input-wrap {
  position: relative !important;
  box-sizing: border-box !important;
  isolation: isolate !important;
}
.bfc-widget .bfc-composer textarea[data-bfc-input] {
  box-sizing: border-box !important;
  text-indent: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 10px !important;
  padding-left: 16px !important;
  padding-right: 96px !important;
  padding-inline-start: 16px !important;
  padding-inline-end: 96px !important;
}
.bfc-widget .bfc-attach-button,
.bfc-widget .bfc-input-send-hint {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 7 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.bfc-widget .bfc-attach-button {
  right: 50px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 50px !important;
  pointer-events: auto !important;
}
.bfc-widget .bfc-input-send-hint {
  right: 14px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 14px !important;
  pointer-events: none !important;
}
.bfc-widget .bfc-attach-button svg,
.bfc-widget .bfc-input-send-hint svg {
  width: 18px !important;
  height: 18px !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input],
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input]:placeholder-shown {
  direction: rtl !important;
  text-align: right !important;
  padding-right: 16px !important;
  padding-left: 96px !important;
  padding-inline-start: 16px !important;
  padding-inline-end: 96px !important;
  unicode-bidi: plaintext !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  padding-left: 96px !important;
  padding-right: 16px !important;
  padding-inline-start: 96px !important;
  padding-inline-end: 16px !important;
}
.bfc-widget[dir="rtl"] .bfc-attach-button,
.bfc-widget[dir="rtl"] .bfc-input-attach {
  left: 50px !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 50px !important;
}
.bfc-widget[dir="rtl"] .bfc-input-send-hint {
  left: 14px !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 14px !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input]::placeholder {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext !important;
}
@media (max-width: 480px) {
  .bfc-widget .bfc-composer textarea[data-bfc-input] {
    padding-left: 14px !important;
    padding-right: 88px !important;
    padding-inline-start: 14px !important;
    padding-inline-end: 88px !important;
  }
  .bfc-widget .bfc-attach-button {
    right: 46px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 46px !important;
  }
  .bfc-widget .bfc-input-send-hint {
    right: 12px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 12px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input],
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input]:placeholder-shown {
    padding-right: 14px !important;
    padding-left: 88px !important;
    padding-inline-start: 14px !important;
    padding-inline-end: 88px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
    padding-left: 88px !important;
    padding-right: 14px !important;
    padding-inline-start: 88px !important;
    padding-inline-end: 14px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-attach-button,
  .bfc-widget[dir="rtl"] .bfc-input-attach {
    left: 46px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 46px !important;
  }
  .bfc-widget[dir="rtl"] .bfc-input-send-hint {
    left: 12px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 12px !important;
  }
}


/* v1.8.42.17 Mixed locale composer direction isolation and compact icon rail.
   The widget language owns the composer layout. The textarea content may switch
   direction for Arabic/English/SKU text, but icon placement never follows the
   typed text direction. This prevents Arabic text in the English widget from
   entering the right-side icon rail and keeps Arabic RTL widgets stable. */
.bfc-widget .bfc-input-wrap {
  --bfc-compact-icon-size: 24px;
  --bfc-compact-icon-send-offset: 10px;
  --bfc-compact-icon-attach-offset: 37px;
  --bfc-compact-icon-rail: 72px;
  position: relative !important;
  overflow: hidden !important;
}
.bfc-widget .bfc-attach-button,
.bfc-widget .bfc-input-attach,
.bfc-widget .bfc-input-send-hint {
  width: var(--bfc-compact-icon-size) !important;
  height: var(--bfc-compact-icon-size) !important;
  min-width: var(--bfc-compact-icon-size) !important;
  min-height: var(--bfc-compact-icon-size) !important;
  max-width: var(--bfc-compact-icon-size) !important;
  max-height: var(--bfc-compact-icon-size) !important;
}
.bfc-widget .bfc-attach-button svg,
.bfc-widget .bfc-input-attach svg,
.bfc-widget .bfc-input-send-hint svg {
  width: 17px !important;
  height: 17px !important;
}
/* LTR interface: icon rail stays on the right no matter whether the visitor types English, Arabic, or SKU text. */
.bfc-widget[dir="ltr"] .bfc-attach-button,
.bfc-widget[dir="ltr"] .bfc-input-attach {
  right: var(--bfc-compact-icon-attach-offset) !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: var(--bfc-compact-icon-attach-offset) !important;
}
.bfc-widget[dir="ltr"] .bfc-input-send-hint {
  right: var(--bfc-compact-icon-send-offset) !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: var(--bfc-compact-icon-send-offset) !important;
}
.bfc-widget[dir="ltr"] .bfc-composer textarea[data-bfc-input],
.bfc-widget[dir="ltr"] .bfc-composer textarea[data-bfc-input][dir="rtl"],
.bfc-widget[dir="ltr"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
  padding-left: 16px !important;
  padding-right: var(--bfc-compact-icon-rail) !important;
  padding-inline-start: 16px !important;
  padding-inline-end: var(--bfc-compact-icon-rail) !important;
  unicode-bidi: plaintext !important;
}
/* RTL interface: icon rail stays on the left no matter whether the visitor types Arabic, English, or SKU text. */
.bfc-widget[dir="rtl"] .bfc-attach-button,
.bfc-widget[dir="rtl"] .bfc-input-attach {
  left: var(--bfc-compact-icon-attach-offset) !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: var(--bfc-compact-icon-attach-offset) !important;
}
.bfc-widget[dir="rtl"] .bfc-input-send-hint {
  left: var(--bfc-compact-icon-send-offset) !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: var(--bfc-compact-icon-send-offset) !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input],
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="rtl"],
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
  padding-left: var(--bfc-compact-icon-rail) !important;
  padding-right: 16px !important;
  padding-inline-start: var(--bfc-compact-icon-rail) !important;
  padding-inline-end: 16px !important;
  unicode-bidi: plaintext !important;
}
.bfc-widget[dir="ltr"] .bfc-composer textarea[data-bfc-input]:placeholder-shown {
  direction: ltr !important;
  text-align: left !important;
}
.bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input]:placeholder-shown {
  direction: rtl !important;
  text-align: right !important;
}
@media (max-width: 480px) {
  .bfc-widget .bfc-input-wrap {
    --bfc-compact-icon-send-offset: 9px;
    --bfc-compact-icon-attach-offset: 34px;
    --bfc-compact-icon-rail: 66px;
  }
  .bfc-widget[dir="ltr"] .bfc-composer textarea[data-bfc-input],
  .bfc-widget[dir="ltr"] .bfc-composer textarea[data-bfc-input][dir="rtl"],
  .bfc-widget[dir="ltr"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
    padding-left: 14px !important;
    padding-right: var(--bfc-compact-icon-rail) !important;
  }
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input],
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="rtl"],
  .bfc-widget[dir="rtl"] .bfc-composer textarea[data-bfc-input][dir="ltr"] {
    padding-left: var(--bfc-compact-icon-rail) !important;
    padding-right: 14px !important;
  }
}
