
.tsa {
  --tsa-violet: #9137FF; --tsa-purple: #4F1398; --tsa-cyan: #00F1FF; --tsa-ink: #1A1530; --tsa-muted: #4E4A5A;
  --tsa-line: rgba(79, 19, 152, .16); --tsa-soft: #F5EEFF;
  position: fixed; right: 18px; bottom: 18px; z-index: 9980;
  font-family: "Neo Sans Regular", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.45; color: var(--tsa-ink);
}
.tsa *, .tsa *::before, .tsa *::after { box-sizing: border-box; }
.tsa [hidden] { display: none !important; }
html.ts-menu-open .tsa:not(.is-open), html:has(.elementor-location-header .elementor-menu-toggle.elementor-active) .tsa:not(.is-open) { visibility: hidden; }
html.tsa-lock { overflow: hidden; }
.tsa .tsa-launch, .tsa .tsa-launch:hover, .tsa .tsa-launch:focus {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: #000000; color: #ffffff; cursor: pointer; box-shadow: 0 8px 24px rgba(4, 2, 20, .35), 0 0 0 2px rgba(255, 255, 255, .9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tsa .tsa-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 19, 152, .45), 0 0 0 2px rgba(255, 255, 255, .9); }
.tsa .tsa-launch:focus-visible { outline: 3px solid #000000; outline-offset: 2px; box-shadow: 0 0 0 2px #ffffff, 0 0 0 7px var(--tsa-cyan); }
.tsa-launch img { width: 26px; height: 26px; display: block; filter: invert(1); }
.tsa-hint { position: absolute; right: 62px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: #ffffff; color: var(--tsa-ink);
  font-size: 13px; white-space: nowrap; box-shadow: 0 6px 18px rgba(4, 2, 20, .18); pointer-events: none; opacity: 0; transform: translateX(6px); transition: opacity .18s, transform .18s; }
@media (hover: hover) { .tsa .tsa-launch:hover + .tsa-hint { opacity: 1; transform: none; } }
.tsa .tsa-launch:focus-visible + .tsa-hint { opacity: 1; transform: none; }
.tsa-panel {
  position: absolute; right: 0; bottom: 66px; width: min(370px, calc(100vw - 36px)); max-height: min(560px, calc(100vh - 110px)); max-height: min(560px, calc(100dvh - 110px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #ffffff;
  box-shadow: 0 24px 70px rgba(4, 2, 20, .35), 0 0 0 1px rgba(79, 19, 152, .12);
}
.tsa.is-live .tsa-panel { height: min(560px, calc(100vh - 110px)); height: min(560px, calc(100dvh - 110px)); }
.tsa-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #ffffff;
  background-color: #200050; background-image: radial-gradient(120% 140% at 100% 0%, rgba(145, 55, 255, .55), rgba(145, 55, 255, 0) 60%), linear-gradient(160deg, #0a0614 0%, #200050 100%); }
.tsa-mark { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #ffffff; }
.tsa-mark img { width: 20px; height: 20px; display: block; }
.tsa-title { flex: 1; min-width: 0; margin: 0; font-family: "Neo Sans Bold", "Segoe UI", sans-serif; font-weight: 400; font-size: 16px; line-height: 1.2; color: #ffffff; }
.tsa-status { display: block; margin-top: 2px; font-family: "Neo Sans Regular", "Segoe UI", sans-serif; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.tsa .tsa-icon-btn, .tsa .tsa-icon-btn:hover, .tsa .tsa-icon-btn:focus {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #ffffff; cursor: pointer; }
.tsa .tsa-icon-btn:hover { background: rgba(255, 255, 255, .22); }
.tsa .tsa-icon-btn:focus-visible { outline: 2px solid var(--tsa-cyan); outline-offset: 2px; }
.tsa-icon-btn svg { width: 18px; height: 18px; }
.tsa-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: #FBF9FF; overscroll-behavior: contain; }
.tsa-notice { margin: 0 0 14px; padding: 14px; border-radius: 14px; background: #ffffff; border: 1px solid var(--tsa-line); font-size: 13.5px; color: var(--tsa-muted); }
.tsa .tsa-notice a { color: var(--tsa-purple); text-decoration: underline; }
.tsa-hello { margin: 0 0 12px; font-family: "Neo Sans Bold", "Segoe UI", sans-serif; font-size: 17px; color: var(--tsa-purple); }
.tsa-choices { display: grid; gap: 10px; }
.tsa .tsa-btn, .tsa .tsa-btn:hover, .tsa .tsa-btn:focus {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin: 0; padding: 10px 18px;
  border: 0; border-radius: 999px; background: var(--tsa-violet); color: #ffffff; cursor: pointer;
  font-family: "Neo Sans Bold", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.2; text-transform: none; }
.tsa .tsa-btn:hover { background: var(--tsa-purple); }
.tsa .tsa-btn-alt, .tsa .tsa-btn-alt:hover, .tsa .tsa-btn-alt:focus { background: #ffffff; color: var(--tsa-purple); box-shadow: inset 0 0 0 1.5px var(--tsa-purple); }
.tsa .tsa-btn-alt:hover { background: var(--tsa-soft); }
.tsa .tsa-btn:focus-visible { outline: 3px solid var(--tsa-purple); outline-offset: 2px; }
.tsa .tsa-btn[disabled] { opacity: .6; cursor: progress; }
.tsa-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.tsa-log { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tsa-msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.tsa-msg-agent { align-self: flex-start; background: #ffffff; border: 1px solid var(--tsa-line); border-bottom-left-radius: 6px; }
.tsa-msg-user { align-self: flex-end; background: var(--tsa-purple); color: #ffffff; border-bottom-right-radius: 6px; }
.tsa-msg-note { align-self: center; max-width: 100%; padding: 4px 10px; background: transparent; color: var(--tsa-muted); font-size: 12.5px; text-align: center; }
.tsa-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #ffffff; border: 1px solid var(--tsa-line); }
.tsa-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--tsa-muted); animation: tsa-dot 1s infinite ease-in-out; }
.tsa-typing span:nth-child(2) { animation-delay: .15s; } .tsa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tsa-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.tsa-foot { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--tsa-line); background: #ffffff; }
.tsa .tsa-input, .tsa .tsa-input:focus, .tsa .tsa-input:hover {
  flex: 1; min-width: 0; min-height: 44px; max-height: 120px; margin: 0; padding: 10px 12px; border: 1px solid #8B7AAE; border-radius: 12px;
  background: #ffffff; color: var(--tsa-ink); font: inherit; font-size: 16px; line-height: 1.35; resize: none; box-shadow: none; }
.tsa .tsa-input:focus { outline: 2px solid transparent; border-color: var(--tsa-purple); box-shadow: 0 0 0 3px rgba(145, 55, 255, .25); }
.tsa .tsa-round, .tsa .tsa-round:hover, .tsa .tsa-round:focus {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--tsa-violet); color: #ffffff; cursor: pointer; }
.tsa .tsa-round:hover { background: var(--tsa-purple); }
.tsa .tsa-round:focus-visible { outline: 3px solid var(--tsa-purple); outline-offset: 2px; }
.tsa .tsa-round-end, .tsa .tsa-round-end:hover, .tsa .tsa-round-end:focus { background: #B42318; }
.tsa .tsa-round-quiet, .tsa .tsa-round-quiet:hover, .tsa .tsa-round-quiet:focus { background: var(--tsa-soft); color: var(--tsa-purple); }
.tsa .tsa-round[aria-pressed="true"] { background: var(--tsa-purple); color: #ffffff; }
.tsa-round svg { width: 18px; height: 18px; }
.tsa-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tsa-voice { display: none; position: sticky; top: -16px; z-index: 1; align-items: center; justify-content: center; gap: 4px; height: 34px; margin: -16px -16px 10px; padding-top: 8px; background: #FBF9FF; }
.tsa.is-voice .tsa-voice { display: flex; }
.tsa-voice span { width: 4px; height: 8px; border-radius: 2px; background: var(--tsa-violet); transition: height .15s; }
.tsa.is-speaking .tsa-voice span { animation: tsa-bar .9s infinite ease-in-out; }
.tsa.is-speaking .tsa-voice span:nth-child(2) { animation-delay: .1s; } .tsa.is-speaking .tsa-voice span:nth-child(3) { animation-delay: .2s; }
.tsa.is-speaking .tsa-voice span:nth-child(4) { animation-delay: .3s; } .tsa.is-speaking .tsa-voice span:nth-child(5) { animation-delay: .4s; }
@keyframes tsa-bar { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@media (max-width: 600px) {
  .tsa { right: 14px; bottom: 14px; }
  .tsa.is-open { inset: 0; right: 0; bottom: 0; z-index: 9999; }
  .tsa.is-open .tsa-launch, .tsa.is-open .tsa-hint { display: none; }
  .tsa.is-open .tsa-panel { position: fixed; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tsa-typing span, .tsa.is-speaking .tsa-voice span { animation: none; }
  .tsa .tsa-launch, .tsa-hint { transition: none; }
}
.tsa .tsa-text-btn, .tsa .tsa-text-btn:hover, .tsa .tsa-text-btn:focus {
  min-height: 44px; margin: 0; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: transparent;
  color: #ffffff; font-family: "Neo Sans Bold", "Segoe UI", sans-serif; font-size: 13.5px; cursor: pointer; text-transform: none; }
.tsa .tsa-text-btn:hover { background: rgba(255, 255, 255, .12); }
.tsa .tsa-text-btn:focus-visible { outline: 2px solid var(--tsa-cyan); outline-offset: 2px; }
.tsa-error { margin: 0 0 12px; color: #B42318; font-size: 14px; }
.tsa-error:empty { display: none; }
.tsa .tsa-mic-off { display: none; }
.tsa.is-muted .tsa-mic-on { display: none; }
.tsa.is-muted .tsa-mic-off { display: block; }
.tsa .tsa-round[aria-pressed="true"] { background: #4F1398; color: #ffffff; }
.tsa-head { padding-top: max(14px, env(safe-area-inset-top)); }
.tsa-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
