/* Floating support chat */
.sc { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 70; font-family: inherit; }
.sc-fab { color: #fff !important; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: linear-gradient(125deg, #2a1f8f, #4b3bff); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 14px 30px rgba(75, 59, 255, .35); }
.sc-fab svg { width: 22px; height: 22px; }
.sc-fab:focus-visible, .sc button:focus-visible, .sc a:focus-visible, .sc textarea:focus-visible { outline: 3px solid #f5b83d; outline-offset: 2px; }
.sc.is-open .sc-fab { display: none; }
.sc-dot { position: absolute; top: 6px; inset-inline-end: 8px; width: 12px; height: 12px; border-radius: 50%; background: #f5b83d; border: 2px solid #fff; }
.sc-panel { width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(22, 27, 69, .28); border: 1px solid #e6e8f4; }
.sc-panel[hidden] { display: none; }
.sc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(245, 184, 61, .25), transparent 50%), linear-gradient(125deg, #161b45, #2a1f8f 60%, #4b3bff); }
.sc-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.sc-head p { margin: 2px 0 0; font-size: 12.5px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.sc-online { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.sc-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.sc-avatar svg { width: 22px; height: 22px; }
.sc-x { color: #fff !important; margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sc-x svg { width: 18px; height: 18px; }
.sc-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: #f6f7fc; }
.sc-msg { max-width: 82%; padding: 9px 12px 6px; border-radius: 16px; font-size: 14px; line-height: 1.6; word-wrap: break-word; white-space: normal; }
.sc-msg small { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; text-align: end; }
.sc-msg.is-them { align-self: flex-start; background: #fff; color: #161b45; border: 1px solid #e8eaf5; border-start-start-radius: 6px; }
.sc-msg.is-me { align-self: flex-end; background: #4b3bff; color: #fff; border-start-end-radius: 6px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sc-chips button { border: 1px solid #d9dcf0; background: #fff; color: #2a1f8f; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sc-chips button:hover { border-color: #4b3bff; }
.sc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #eceef7; background: #fff; }
.sc-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; border: 1px solid #dfe2f0; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5; color: #161b45; background: #fbfbfe; }
.sc-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: #f5b83d; color: #161b45; display: grid; place-items: center; cursor: pointer; }
.sc-form button svg { width: 20px; height: 20px; }
.sc-guest { flex: 1; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: #5b6180; }
.sc-guest p { margin: 0 0 6px; line-height: 1.7; }
.sc-btn { display: inline-flex; justify-content: center; width: 100%; max-width: 240px; padding: 11px 18px; border-radius: 12px; background: #4b3bff; color: #fff; font-weight: 800; text-decoration: none; }
.sc-btn.is-alt { background: #fff; color: #161b45; border: 1px solid #dfe2f0; }
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) {
    .sc { bottom: calc(86px + env(safe-area-inset-bottom)); inset-inline-end: 12px; }
    .sc-fab { height: 46px; padding: 0 14px; font-size: 14px; }
    .sc.is-open { inset: auto 0 0 0; }
    .sc-panel { width: 100vw; height: min(78vh, 620px); border-radius: 22px 22px 0 0; }
}
html[data-rn-theme="dark"] .sc-panel, html[data-theme="dark"] .sc-panel { filter: none; }
/* Open chat sits above the store's bottom bar and floating buttons. */
.sc.is-open { z-index: 1000; }
@media (max-width: 760px) { body:has(.sc.is-open) .ap-tabbar, body:has(.sc.is-open) .cx-bottom { visibility: hidden; } .sc-form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); } }
.sc-form button { color: #161b45 !important; } .sc-chips button { color: #2a1f8f !important; }
@media (max-width: 760px) { body:has(.ap-pp-buy) .sc:not(.is-open) { bottom: calc(160px + env(safe-area-inset-bottom)); } body:has(.ap-pp-buy) .sc-fab { height: 42px; padding: 0 12px; } }
