/* Live support chat (Contact page) — support-chat.js. Phone: full screen. Computer: a window bottom-right. */
:root { --sc-bg: #0b141a; --sc-panel: #111b21; --sc-head: #1b262d; --sc-in: #202c33; --sc-out: #005c4b; --sc-text: #e9edef; --sc-muted: #8696a0; --sc-green: #39ff6a; --sc-line: rgba(255,255,255,.08); }

/* the card on the Contact page */
.sc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 4px 0 26px; padding: 18px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(57,255,106,.14), rgba(57,255,106,.03) 60%), rgba(255,255,255,.03); border: 1px solid rgba(57,255,106,.28); text-align: left; }
.sc-cta-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(57,255,106,.16); color: #39ff6a; color: var(--sc-green); position: relative; }
.sc-cta-ic svg { width: 26px; height: 26px; fill: currentColor; }
.sc-cta-ic::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: #39ff6a; background: var(--sc-green); box-shadow: 0 0 0 3px #0b0f0e; }
.sc-cta-txt { flex: 1 1 220px; min-width: 0; }
.sc-cta-txt b { display: block; font-size: 17px; color: #f3f5f4; }
.sc-cta-txt span { display: block; margin-top: 3px; color: #a7b0ad; font-size: 14px; line-height: 1.45; }
.sc-open { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #39ff6a, #1fcf55); color: #06210f; font: 800 15px/1 inherit; box-shadow: 0 8px 22px rgba(57,255,106,.22); position: relative; }
.sc-open svg { width: 18px; height: 18px; fill: currentColor; }
.sc-open:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sc-open .sc-unread { position: absolute; top: -6px; right: -6px; }
@media (max-width: 520px) { .sc-open { width: 100%; justify-content: center; } }

/* the window */
.sc-win { position: fixed; z-index: 2147482000; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; background: #0b141a; background: var(--sc-bg); color: #e9edef; color: var(--sc-text);
  font-size: 15px; line-height: 1.4; text-align: left; transform: translateY(16px); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s ease; }
.sc-win.is-in { transform: none; opacity: 1; }
.sc-win[hidden] { display: none; }
@media (min-width: 760px) {
  .sc-win { top: auto; right: 24px; bottom: 24px; left: auto; inset: auto 24px 24px auto; width: 400px; height: calc(100vh - 48px); height: min(660px, calc(100vh - 48px)); border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.1); box-shadow: 0 2px 6px rgba(0,0,0,0.35);  }
}
@media (min-width: 900px) { .sc-win { bottom: 104px; height: calc(100vh - 128px); height: min(640px, calc(100vh - 128px)); } }

.sc-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 6px; padding-top: calc(10px + 0px); padding-top: calc(10px + env(safe-area-inset-top)); background: #1b262d; background: var(--sc-head); border-bottom: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid var(--sc-line); flex: none; }
.sc-ib { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #e9edef; color: var(--sc-text); cursor: pointer; }
.sc-ib:hover { background: rgba(255,255,255,.07); }
.sc-ib:focus-visible { outline: 2px solid #39ff6a; outline: 2px solid var(--sc-green); outline-offset: -2px; }
.sc-ib svg { width: 22px; height: 22px; fill: currentColor; }
.sc-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #0d1f17; border: 1px solid rgba(57,255,106,.35); position: relative; }
.sc-av img { width: 24px; height: 24px; }
.sc-av.is-online::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #39ff6a; background: var(--sc-green); box-shadow: 0 0 0 2px #1b262d; box-shadow: 0 0 0 2px var(--sc-head); }
.sc-who { flex: 1; min-width: 0; }
.sc-who b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-who small { display: block; color: #8696a0; color: var(--sc-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-who small.is-typing { color: #39ff6a; color: var(--sc-green); }

.sc-menu { position: absolute; right: 10px; top: calc(56px + 0px); top: calc(56px + env(safe-area-inset-top)); z-index: 3; min-width: 210px; padding: 6px; border-radius: 14px; background: #233138; box-shadow: 0 2px 6px rgba(0,0,0,0.35);  }
.sc-menu[hidden] { display: none; }
.sc-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: #e9edef; color: var(--sc-text); font: 500 14.5px/1.2 inherit; text-align: left; cursor: pointer; }
.sc-menu button:hover, .sc-menu button:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.sc-menu button svg { width: 19px; height: 19px; fill: currentColor; color: #8696a0; color: var(--sc-muted); }
.sc-menu button.is-danger { color: #ff8a80; }
.sc-menu button.is-danger svg { color: #ff8a80; }

/* the conversation */
.sc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px 6px; position: relative;
  background-color: #0b141a; background-color: var(--sc-bg);
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.5px), radial-gradient(rgba(57,255,106,.03) 1px, transparent 1.5px);
  background-size: 22px 22px, 34px 34px; background-position: 0 0, 11px 17px; }
.sc-list { display: flex; flex-direction: column; gap: 2px; }
.sc-day { align-self: center; margin: 10px 0 6px; padding: 5px 12px; border-radius: 8px; background: #182229; color: #8696a0; color: var(--sc-muted); font-size: 12px; }
.sc-sys { align-self: center; max-width: 88%; margin: 8px 0; padding: 7px 12px; border-radius: 10px; background: #182229; color: #c7d0d4; font-size: 13px; text-align: center; line-height: 1.45; }
.sc-row { display: flex; flex-direction: column; max-width: 84%; margin-top: 6px; }
.sc-row.is-out { align-self: flex-end; align-items: flex-end; }
.sc-row.is-in { align-self: flex-start; }
.sc-row.is-cont { margin-top: 1px; }
.sc-from { font-size: 12px; font-weight: 700; color: #39ff6a; color: var(--sc-green); margin: 0 0 3px 10px; display: flex; align-items: center; gap: 5px; }
.sc-from.is-agent { color: #53bdeb; }
.sc-from svg { width: 13px; height: 13px; fill: currentColor; }
.sc-bub { position: relative; padding: 7px 10px 8px; border-radius: 12px; background: #202c33; background: var(--sc-in); color: #e9edef; color: var(--sc-text); white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(0,0,0,.25); }
.sc-row.is-out .sc-bub { background: #005c4b; background: var(--sc-out); }
.sc-row.is-in:not(.is-cont) .sc-bub { border-top-left-radius: 3px; }
.sc-row.is-out:not(.is-cont) .sc-bub { border-top-right-radius: 3px; }
.sc-row.is-in:not(.is-cont) .sc-bub::before, .sc-row.is-out:not(.is-cont) .sc-bub::before { content: ""; position: absolute; top: 0; width: 9px; height: 12px; }
.sc-row.is-in:not(.is-cont) .sc-bub::before { left: -7px; background: linear-gradient(to bottom left, #202c33 50%, transparent 50%); background: linear-gradient(to bottom left, var(--sc-in) 50%, transparent 50%); }
.sc-row.is-out:not(.is-cont) .sc-bub::before { right: -7px; background: linear-gradient(to bottom right, #005c4b 50%, transparent 50%); background: linear-gradient(to bottom right, var(--sc-out) 50%, transparent 50%); }
.sc-bub a { color: #7fd8ff; text-decoration: underline; }
.sc-meta { float: right; margin: 6px 0 -4px 12px; font-size: 11px; color: rgba(233,237,239,.6); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.sc-tick { width: 16px; height: 11px; fill: currentColor; }
.sc-tick.is-seen { color: #53bdeb; }
.sc-tick.is-wait { width: 12px; height: 12px; }
.sc-row.is-failed .sc-meta { color: #ff8a80; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; max-width: 92%; }
.sc-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(57,255,106,.45); background: rgba(57,255,106,.07); color: #c9ffd8; font: 600 13.5px/1.2 inherit; cursor: pointer; text-align: left; }
.sc-chip:hover, .sc-chip:focus-visible { background: rgba(57,255,106,.16); outline: none; }
.sc-chip.is-person { border-color: rgba(83,189,235,.5); background: rgba(83,189,235,.08); color: #bfe9ff; }
.sc-typing { align-self: flex-start; margin: 6px 0 2px; padding: 11px 14px; border-radius: 12px; border-top-left-radius: 3px; background: #202c33; background: var(--sc-in); display: inline-flex; gap: 4px; }
.sc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; background: var(--sc-muted);  }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes scdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.sc-jump { position: absolute; right: 14px; bottom: 84px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #233138; color: #e9edef; color: var(--sc-text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.4); z-index: 2; }
.sc-jump[hidden] { display: none; }
.sc-jump svg { width: 22px; height: 22px; fill: currentColor; }
.sc-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e5484d; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; line-height: 1; }
.sc-jump .sc-unread { position: absolute; top: -6px; right: -4px; background: #39ff6a; background: var(--sc-green); color: #06210f; }

/* composer */
.sc-foot { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px calc(8px + 0px); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #111b21; background: var(--sc-panel); border-top: 1px solid rgba(255,255,255,.08); border-top: 1px solid var(--sc-line); }
.sc-input { flex: 1; min-width: 0; min-height: 44px; max-height: 132px; padding: 11px 16px; border-radius: 22px; border: 0; background: #2a3942; color: #e9edef; color: var(--sc-text); font: 400 15px/1.4 inherit; resize: none; overflow-y: auto; }
.sc-input::placeholder { color: #8696a0; color: var(--sc-muted); }
.sc-input:focus { outline: 2px solid rgba(57,255,106,.5); outline-offset: 0; }
.sc-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: #1fcf55; color: #06210f; display: grid; place-items: center; cursor: pointer; transition: transform .12s ease, opacity .15s ease; }
.sc-send:disabled { opacity: .45; cursor: default; }
.sc-send:not(:disabled):active { transform: scale(.94); }
.sc-send svg { width: 21px; height: 21px; fill: currentColor; margin-left: 2px; }
.sc-note { flex: none; padding: 7px 14px; background: #182229; color: #8696a0; color: var(--sc-muted); font-size: 12.5px; text-align: center; border-top: 1px solid rgba(255,255,255,.08); border-top: 1px solid var(--sc-line); }
.sc-note[hidden] { display: none; }

/* start form, ended, closed */
.sc-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 18px calc(20px + 0px); padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); background: #111b21; background: var(--sc-panel); }
.sc-panel h3 { margin: 0 0 4px; font-size: 19px; }
.sc-panel > p { margin: 0 0 16px; color: #a9b4b8; font-size: 14px; line-height: 1.5; }
.sc-field { display: block; margin-bottom: 12px; }
.sc-field span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #c7d0d4; }
.sc-field input, .sc-field select, .sc-field textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #1b262d; color: #e9edef; color: var(--sc-text); font: 400 15px/1.4 inherit; }
.sc-field textarea { min-height: 96px; resize: vertical; }
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus { outline: 2px solid rgba(57,255,106,.5); border-color: transparent; }
.sc-field [aria-invalid="true"] { border-color: #ff6a5f; }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,106,95,.12); color: #ffb1ab; font-size: 13.5px; }
.sc-err[hidden] { display: none; }
.sc-go { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #39ff6a, #1fcf55); color: #06210f; font: 800 15px/1 inherit; cursor: pointer; }
.sc-go:disabled { opacity: .6; cursor: default; }
.sc-go.is-ghost { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #e9edef; color: var(--sc-text); margin-top: 10px; }
.sc-fine { display: block; margin-top: 12px; color: #8696a0; color: var(--sc-muted); font-size: 12px; line-height: 1.5; }
.sc-fine a { color: #9fe8b4; }
.sc-acct { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; background: #1b262d; font-size: 13.5px; color: #c7d0d4; }
.sc-acct svg { width: 18px; height: 18px; fill: #39ff6a; fill: var(--sc-green); flex: none; }
.sc-end { text-align: center; padding-top: 30px; }
.sc-end-ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(57,255,106,.12); color: #39ff6a; color: var(--sc-green); }
.sc-end-ic svg { width: 32px; height: 32px; fill: currentColor; }
.sc-stars { display: flex; justify-content: center; gap: 6px; margin: 16px 0 12px; }
.sc-star { width: 44px; height: 44px; border: 0; background: transparent; color: #3b4a52; cursor: pointer; border-radius: 10px; display: grid; place-items: center; }
.sc-star svg { width: 32px; height: 32px; fill: currentColor; transition: transform .12s ease; }
.sc-star.is-on { color: #ffc93c; }
.sc-star:hover svg { transform: scale(1.12); }
.sc-star:focus-visible { outline: 2px solid #39ff6a; outline: 2px solid var(--sc-green); }
@media (prefers-reduced-motion: reduce) { .sc-win, .sc-typing i, .sc-send { transition: none; animation: none; } }

/* compat:rich:start — capable devices only (html.tc-rich, set in the head): glass blur, big soft shadows,
   filters. Weak phones and old browsers use the lighter look in the rules above. */
@media (min-width: 760px) {
  .tc-rich .sc-win { box-shadow: 0 30px 80px rgba(0,0,0,.55); }
}
.tc-rich .sc-menu { box-shadow: 0 16px 40px rgba(0,0,0,.45); }
/* compat:rich:end */

/* compat:motion:start — decorative movement, only when the phone isn't set to reduce motion */
@media (prefers-reduced-motion: no-preference) {
  .sc-typing i { animation: scdot 1.2s infinite ease-in-out; }
}
/* compat:motion:end */

/* compat:no-flexgap:start — rebuilt by tools/css_compat.py: spacing for engines without flex gap
   (html.no-flexgap, set in the head). Edit the gap in the rule above, then run the tool. */
.no-flexgap .sc-cta > * { margin-right: 18px; margin-bottom: 14px; }
.no-flexgap .sc-open > :not(:last-child) { margin-right: 8px; }
.no-flexgap .sc-head > :not(:last-child) { margin-right: 10px; }
.no-flexgap .sc-menu button > :not(:last-child) { margin-right: 10px; }
.no-flexgap .sc-list > :not(:last-child) { margin-bottom: 2px; }
.no-flexgap .sc-from > :not(:last-child) { margin-right: 5px; }
.no-flexgap .sc-meta > :not(:last-child) { margin-right: 3px; }
.no-flexgap .sc-chips > * { margin-right: 7px; margin-bottom: 7px; }
.no-flexgap .sc-typing > :not(:last-child) { margin-right: 4px; }
.no-flexgap .sc-foot > :not(:last-child) { margin-right: 8px; }
.no-flexgap .sc-acct > :not(:last-child) { margin-right: 10px; }
.no-flexgap .sc-stars > :not(:last-child) { margin-right: 6px; }
/* compat:no-flexgap:end */
