/* Website chat bubble (Views/Shared/_SupportWidget.cshtml, js/support-widget.js) */
.sc { --sc-navy: var(--fb-navy-700, #0a2e50); --sc-accent: var(--fb-gold, #5ce1e6); font-family: var(--fb-font, system-ui, sans-serif); }
.sc-launch {
    position: fixed; inset-inline-end: 18px; inset-block-end: 18px; z-index: 1045;
    inline-size: 58px; block-size: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--sc-navy); color: #fff; box-shadow: 0 12px 30px rgba(10,46,80,.32);
    display: grid; place-items: center; font-size: 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.sc-launch:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(10,46,80,.38); }
.sc-launch:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; }
.sc-launch .sc-dot { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; min-inline-size: 18px; block-size: 18px; padding: 0 5px;
    border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; display: none; }
.sc-launch.has-unread .sc-dot { display: block; }
.sc.is-open .sc-launch { transform: scale(.9); }
@media (max-width: 991.98px) { body:has(.ck-basket) .sc-launch { inset-block-end: 120px; } }

.sc-panel {
    position: fixed; inset-inline-end: 18px; inset-block-end: 88px; z-index: 1046;
    inline-size: min(380px, calc(100vw - 24px)); block-size: min(580px, calc(100vh - 110px)); block-size: min(580px, calc(100dvh - 110px));
    background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(10,46,80,.28); overflow: hidden;
    display: flex; flex-direction: column; opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.sc.is-open .sc-panel { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 575.98px) {
    .sc-panel { inset: 0; inline-size: 100%; block-size: 100%; border-radius: 0; }
    .sc.is-open .sc-launch { display: none; }
}

.sc-head { background: var(--sc-navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sc-avatar { inline-size: 40px; block-size: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 20px; flex: none; position: relative; }
.sc-avatar::after { content: ""; position: absolute; inset-block-end: 1px; inset-inline-end: 1px; inline-size: 10px; block-size: 10px; border-radius: 50%; background: #3dd68c; border: 2px solid var(--sc-navy); }
.sc-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.sc-sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.sc-x { margin-inline-start: auto; background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; padding: 4px; cursor: pointer; opacity: .85; }
.sc-x:hover { opacity: 1; }

.sc-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f4f7fb; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.sc-msg { max-inline-size: 84%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-msg.is-me { align-self: flex-end; background: var(--sc-navy); color: #fff; border-end-end-radius: 5px; }
.sc-msg.is-them { align-self: flex-start; background: #fff; color: #1d2b3a; border: 1px solid #e3e9f1; border-end-start-radius: 5px; }
.sc-msg .sc-who { display: block; font-size: 11px; font-weight: 700; color: #4b6584; margin-bottom: 2px; }
.sc-sys { align-self: center; text-align: center; font-size: 12px; color: #5b6b7d; background: #e8eef6; border-radius: 10px; padding: 6px 10px; max-inline-size: 92%; }
.sc-typing { align-self: flex-start; background: #fff; border: 1px solid #e3e9f1; border-radius: 16px; padding: 10px 14px; display: none; gap: 4px; }
.sc-typing.is-on { display: inline-flex; }
.sc-typing i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #8aa0b8; animation: sc-bounce 1.2s infinite ease-in-out; }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; background: #f4f7fb; }
.sc-chip { border: 1px solid #cfdbe8; background: #fff; color: var(--sc-navy); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.sc-chip:hover { border-color: var(--sc-navy); }

.sc-foot { border-top: 1px solid #e3e9f1; padding: 10px; display: flex; gap: 8px; align-items: flex-end; background: #fff; }
.sc-input { flex: 1; resize: none; border: 1px solid #d6e0eb; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; max-block-size: 120px; min-block-size: 42px; outline: none; }
.sc-input:focus { border-color: var(--sc-navy); box-shadow: 0 0 0 3px rgba(10,46,80,.08); }
.sc-send { inline-size: 42px; block-size: 42px; border-radius: 12px; border: 0; background: var(--sc-navy); color: #fff; font-size: 18px; cursor: pointer; flex: none; }
.sc-send:disabled { opacity: .45; cursor: default; }
[dir="rtl"] .sc-send i { display: inline-block; transform: scaleX(-1); }
.sc-meta { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 8px; font-size: 11.5px; color: #6b7c8f; background: #fff; }
.sc-human { background: none; border: 0; color: var(--sc-navy); font-weight: 600; font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; }
.sc-human[hidden] { display: none; }
