/* TrustCheck support widget v1. Glass theme matching the landing and the web app; dark by default, light with
   <html data-theme="light"> (or prefers-color-scheme when the page sets no theme). System fonts only, logical
   properties for RTL, no external resources. */
.tcsw {
  --tcsw-bg: rgba(16, 30, 52, .72);
  --tcsw-bg-solid: #0f1b30;
  --tcsw-line: rgba(255, 255, 255, .12);
  --tcsw-line-top: rgba(255, 255, 255, .22);
  --tcsw-text: #F3F6FB;
  --tcsw-text2: rgba(243, 246, 251, .72);
  --tcsw-me: rgba(56, 189, 248, .20);
  --tcsw-bot: rgba(255, 255, 255, .06);
  --tcsw-accent: #38BDF8;
  --tcsw-accent2: #0EA5E9;
  --tcsw-on-accent: #04121F;
  --tcsw-field: rgba(255, 255, 255, .06);
  --tcsw-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .25);
  --tcsw-focus: #7dd3fc;
  color-scheme: dark;
  font: 14px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Hebrew', 'Noto Sans Arabic', 'Noto Sans Thai', 'Noto Sans CJK SC', sans-serif;
  color: var(--tcsw-text);
}
:root[data-theme="light"] .tcsw {
  --tcsw-bg: rgba(255, 255, 255, .78);
  --tcsw-bg-solid: #fff;
  --tcsw-line: rgba(15, 23, 42, .12);
  --tcsw-line-top: rgba(255, 255, 255, .9);
  --tcsw-text: #0F172A;
  --tcsw-text2: rgba(15, 23, 42, .66);
  --tcsw-me: rgba(14, 116, 144, .12);
  --tcsw-bot: rgba(15, 23, 42, .05);
  --tcsw-accent: #0369A1;
  --tcsw-on-accent: #fff;
  --tcsw-accent2: #0369A1;
  --tcsw-field: rgba(15, 23, 42, .04);
  --tcsw-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08);
  --tcsw-focus: #0369a1;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .tcsw {
    --tcsw-bg: rgba(255, 255, 255, .78); --tcsw-bg-solid: #fff; --tcsw-line: rgba(15, 23, 42, .12); --tcsw-line-top: rgba(255, 255, 255, .9);
    --tcsw-text: #0F172A; --tcsw-text2: rgba(15, 23, 42, .66); --tcsw-me: rgba(14, 116, 144, .12); --tcsw-bot: rgba(15, 23, 42, .05);
    --tcsw-accent: #0369A1; --tcsw-accent2: #0369A1; --tcsw-on-accent: #fff; --tcsw-field: rgba(15, 23, 42, .04);
    --tcsw-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08); --tcsw-focus: #0369a1; color-scheme: light;
  }
}
.tcsw *, .tcsw *::before, .tcsw *::after { box-sizing: border-box; }
.tcsw .tcsw-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tcsw .tcsw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tcsw button, .tcsw textarea, .tcsw a { font: inherit; color: inherit; }
.tcsw :focus-visible { outline: 2px solid var(--tcsw-focus); outline-offset: 2px; }

.tcsw .tcsw-fab {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 16px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; color: var(--tcsw-on-accent); font-weight: 600;
  background: var(--tcsw-accent); box-shadow: var(--tcsw-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tcsw-fab:hover { transform: translateY(-1px); }
.tcsw-open .tcsw-fab { transform: scale(.94); }

.tcsw-panel {
  position: fixed; inset-block-end: 84px; inset-inline-end: 20px; z-index: 2147483000;
  width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 112px)); height: min(580px, calc(100dvh - 112px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: var(--tcsw-bg); border: 1px solid var(--tcsw-line); border-block-start-color: var(--tcsw-line-top);
  box-shadow: var(--tcsw-shadow); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  animation: tcsw-in .16s ease-out;
}
.tcsw-panel[hidden] { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tcsw-panel { background: var(--tcsw-bg-solid); } }
@keyframes tcsw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tcsw-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; border-block-end: 1px solid var(--tcsw-line); }
.tcsw-titles { flex: 1; min-width: 0; }
.tcsw-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.tcsw-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--tcsw-text2); }
.tcsw-ai { font-size: 12px; }
.tcsw-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--tcsw-line); background: var(--tcsw-field); cursor: pointer; }
.tcsw-x .tcsw-ic { width: 18px; height: 18px; }

.tcsw-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.tcsw-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--tcsw-line); }
.tcsw-bot { align-self: flex-start; background: var(--tcsw-bot); border-start-start-radius: 4px; }
.tcsw-me { align-self: flex-end; background: var(--tcsw-me); border-start-end-radius: 4px; }
.tcsw-txt { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tcsw-note { margin: 0 0 6px; font-size: 12px; color: var(--tcsw-text2); }
.tcsw-wait .tcsw-txt { color: var(--tcsw-text2); }
.tcsw-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.tcsw-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--tcsw-line); background: var(--tcsw-field); }
.tcsw-btn .tcsw-ic { width: 16px; height: 16px; }
.tcsw-btn:hover { border-color: var(--tcsw-accent); }
.tcsw-mail { font-size: 13px; color: var(--tcsw-text2); flex-basis: 100%; }
.tcsw-addr { color: var(--tcsw-text); user-select: all; }
.tcsw .tcsw-btn-primary { color: var(--tcsw-on-accent); border-color: transparent; background: var(--tcsw-accent); flex-basis: 100%; justify-content: center; }

.tcsw-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-block-start: 1px solid var(--tcsw-line); }
.tcsw-input { flex: 1; resize: none; min-height: 42px; max-height: 120px; height: 42px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--tcsw-line); background: var(--tcsw-field); line-height: 1.4; }
.tcsw-input.tcsw-tall { height: 96px; }
.tcsw-input::placeholder { color: var(--tcsw-text2); }
.tcsw .tcsw-send { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer; color: var(--tcsw-on-accent); background: var(--tcsw-accent); }
.tcsw-send:disabled { opacity: .55; cursor: progress; }
.tcsw[dir="rtl"] .tcsw-send .tcsw-ic { transform: scaleX(-1); }
.tcsw-foot { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--tcsw-text2); }

@media (max-width: 480px) {
  .tcsw-panel { inset-inline: 8px; inset-block-end: 76px; width: auto; height: calc(100vh - 96px); height: calc(100dvh - 96px); border-radius: 18px; }
  .tcsw-fab { inset-block-end: 14px; inset-inline-end: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tcsw-panel { animation: none; } .tcsw-fab { transition: none; } }
@media print { .tcsw { display: none; } }
