.tv-chat{--lc-primary: var(--tv-primary-dark, #2B7DE9);--lc-on-primary: var(--tv-on-brand, #FFFFFF);--lc-surface: var(--tv-surface, #FFFFFF);--lc-soft: var(--tv-section-bg, #F8FBFF);--lc-text: var(--tv-text-dark, #1E293B);--lc-muted: var(--tv-text-light, #64748B);--lc-border: var(--tv-border, #E2E8F0);--lc-success: var(--tv-success, #22C55E);--lc-danger: var(--tv-danger, #EF4444);--lc-shadow: 0 24px 60px rgba(30, 41, 59, 0.14);--lc-launcher-shadow: var(--tv-shadow-brand, 0 14px 34px rgba(43, 125, 233, 0.3));position:fixed;inset-inline-end:1.25rem;bottom:1.25rem;z-index:1045;font-size:.9rem;line-height:1.45;color:var(--lc-text)}.tv-chat *,.tv-chat *::before,.tv-chat *::after{box-sizing:border-box}.tv-chat [hidden]{display:none !important}html[data-theme=dark] .tv-chat{--lc-primary: var(--tv-primary-dark, #70B8FF);--lc-surface: var(--tv-surface, #111C2E);--lc-soft: var(--tv-surface-2, #17243A);--lc-text: var(--tv-text-dark, #E7EEF8);--lc-muted: var(--tv-text-light, #9EACC0);--lc-border: var(--tv-border, #293750);--lc-shadow: 0 24px 60px rgba(0, 0, 0, 0.34)}.tv-chat__launcher{position:relative;width:58px;height:58px;display:grid;place-items:center;margin-inline-start:auto;border:0;border-radius:50%;color:var(--lc-on-primary);background:var(--lc-primary);font-size:1.45rem;box-shadow:var(--lc-launcher-shadow);cursor:pointer;transition:transform .2s ease}.tv-chat__launcher:hover{transform:scale(1.06)}.tv-chat__launcher:focus-visible{outline:3px solid var(--lc-primary);outline-offset:3px}.tv-chat__launcher .tv-chat__icon-close{display:none}.tv-chat.is-open .tv-chat__launcher .tv-chat__icon-open{display:none}.tv-chat.is-open .tv-chat__launcher .tv-chat__icon-close{display:inline-block}.tv-chat__badge{position:absolute;top:-2px;inset-inline-end:-2px;min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border:2px solid var(--lc-surface);border-radius:var(--tv-pill-radius, 999px);color:#fff;background:var(--lc-danger);font-size:.7rem;font-weight:700}.tv-chat__panel{position:absolute;bottom:calc(100% + .85rem);inset-inline-end:0;width:360px;max-width:calc(100vw - 2rem);height:520px;max-height:calc(100vh - 7rem);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--lc-border);border-radius:var(--tv-card-radius, 18px);background:var(--lc-surface);box-shadow:var(--lc-shadow)}.tv-chat__head{display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem;color:var(--lc-on-primary);background:var(--lc-primary)}.tv-chat__avatar{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.18);font-size:1.1rem}.tv-chat__head-text{flex:1;min-width:0;display:flex;flex-direction:column}.tv-chat__head-text strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1rem}.tv-chat__status{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;opacity:.9}.tv-chat__dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.55)}.tv-chat__status[data-online="1"] .tv-chat__dot{background:var(--lc-success);box-shadow:0 0 0 2px rgba(255,255,255,.7)}.tv-chat__close{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;color:inherit;background:rgba(0,0,0,0);cursor:pointer}.tv-chat__close:hover,.tv-chat__close:focus-visible{background:rgba(255,255,255,.18)}.tv-chat__body{flex:1;overflow-y:auto;padding:1rem;background:var(--lc-soft)}.tv-chat__messages{margin:0;padding:0;list-style:none}.tv-chat__bubble{display:inline-block;max-width:85%;padding:.6rem .85rem;border-radius:var(--tv-radius-md, 16px);white-space:pre-wrap;overflow-wrap:anywhere}.tv-chat__bubble--note{display:block;max-width:100%;margin-bottom:.6rem;border:1px solid var(--lc-border);color:var(--lc-text);background:var(--lc-surface)}.tv-chat__msg{display:flex;flex-direction:column;align-items:flex-start;margin-top:.65rem}.tv-chat__msg .tv-chat__bubble{border:1px solid var(--lc-border);border-end-start-radius:4px;background:var(--lc-surface)}.tv-chat__msg--visitor{align-items:flex-end}.tv-chat__msg--visitor .tv-chat__bubble{border-color:rgba(0,0,0,0);border-end-start-radius:16px;border-end-end-radius:4px;color:var(--lc-on-primary);background:var(--lc-primary)}.tv-chat__msg.is-pending .tv-chat__bubble{opacity:.6}.tv-chat__msg.is-failed .tv-chat__meta{color:var(--lc-danger)}.tv-chat__meta{margin-top:.2rem;padding:0 .25rem;color:var(--lc-muted);font-size:.72rem}.tv-chat__system{margin:.9rem 0 .2rem;color:var(--lc-muted);font-size:.75rem;text-align:center}.tv-chat__intro{display:flex;flex-direction:column;gap:.5rem;padding:.85rem 1rem 1rem;border-top:1px solid var(--lc-border);background:var(--lc-surface)}.tv-chat__hint{margin:0 0 .15rem;color:var(--lc-muted);font-size:.8rem}.tv-chat__input{width:100%;padding:.55rem .75rem;border:1px solid var(--lc-border);border-radius:var(--tv-input-radius, 10px);color:var(--lc-text);background:var(--lc-surface);font:inherit;resize:none}.tv-chat__input::placeholder{color:var(--lc-muted)}.tv-chat__input:focus{outline:0;border-color:var(--lc-primary)}.tv-chat__hp{position:absolute !important;inset-inline-start:-9999px;width:1px;height:1px;opacity:0}.tv-chat__error{margin:0;color:var(--lc-danger);font-size:.8rem}.tv-chat__submit{padding:.6rem 1rem;border:0;border-radius:var(--tv-input-radius, 10px);color:var(--lc-on-primary);background:var(--lc-primary);font-weight:600;cursor:pointer}.tv-chat__submit:disabled{opacity:.6;cursor:wait}.tv-chat__composer{display:flex;align-items:flex-end;gap:.5rem;padding:.7rem .75rem;border-top:1px solid var(--lc-border);background:var(--lc-surface)}.tv-chat__composer .tv-chat__input{max-height:120px}.tv-chat__send{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:0;border-radius:50%;color:var(--lc-on-primary);background:var(--lc-primary);cursor:pointer}body.has-live-chat .scroll-top{bottom:5.6rem}@media(max-width: 575.98px){.tv-chat{inset-inline-end:1rem;bottom:1rem}.tv-chat__panel{position:fixed;inset:auto .5rem 5.4rem;width:auto;max-width:none;height:auto;max-height:calc(100vh - 6.5rem);max-height:calc(100dvh - 6.5rem);min-height:60vh}}@media print{.tv-chat{display:none !important}}
