.smh-live {
    --smh-live-accent: #0b63f6;
    --smh-live-navy: #062b50;
    --smh-live-ink: #172337;
    --smh-live-muted: #64748b;
    --smh-live-line: #dbe4ee;
    --smh-live-canvas: #f4f7fb;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 125;
    color: var(--smh-live-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.smh-live--left { right: auto; left: 22px; }
.smh-live *, .smh-live *::before, .smh-live *::after { box-sizing: border-box; }
.smh-live [hidden] { display: none !important; }
.smh-live button, .smh-live input, .smh-live select, .smh-live textarea { font: inherit; }
.smh-live button:focus-visible, .smh-live input:focus-visible, .smh-live select:focus-visible, .smh-live textarea:focus-visible, .smh-live a:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 2px; }

.smh-live-launcher {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--smh-live-navy), var(--smh-live-accent));
    color: #fff;
    padding: 9px 18px 9px 10px;
    font-weight: 800;
    box-shadow: 0 16px 38px rgba(6, 43, 80, .32);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.smh-live-launcher:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(6, 43, 80, .38); }
.smh-live-launcher__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.smh-live-launcher__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.smh-live-launcher__label { white-space: nowrap; }
.smh-live--launcher-round .smh-live-launcher { width: 58px; height: 58px; min-height: 58px; justify-content: center; padding: 0; }
.smh-live--launcher-round .smh-live-launcher__icon { width: 42px; height: 42px; }
.smh-live--launcher-round .smh-live-launcher__label { display: none; }
.smh-live-launcher b { position: absolute; top: -6px; right: -5px; display: grid; min-width: 23px; height: 23px; place-items: center; border: 2px solid #fff; border-radius: 99px; background: #d92d20; padding: 0 5px; font-size: 11px; }
.smh-live.is-open .smh-live-launcher { pointer-events: none; opacity: 0; transform: translateY(8px); }

.smh-live-proactive { position: absolute; right: 0; bottom: 72px; width: min(260px, calc(100vw - 32px)); border-radius: 14px; background: #fff; padding: 14px 38px 14px 15px; box-shadow: 0 16px 42px rgba(6, 43, 80, .23); animation: smh-live-rise .25s ease-out; }
.smh-live--left .smh-live-proactive { right: auto; left: 0; }
.smh-live-proactive p { margin: 0; color: var(--smh-live-ink); font-size: 13px; font-weight: 700; line-height: 1.45; }
.smh-live-proactive button { position: absolute; top: 6px; right: 7px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--smh-live-muted); cursor: pointer; }
.smh-live-proactive i { position: absolute; right: 25px; bottom: -7px; width: 15px; height: 15px; transform: rotate(45deg); background: #fff; }
.smh-live--left .smh-live-proactive i { right: auto; left: 25px; }

.smh-live-dialog { position: absolute; right: 0; bottom: 70px; display: grid; width: min(390px, calc(100vw - 28px)); height: min(660px, calc(100dvh - 100px)); grid-template-rows: auto minmax(0, 1fr) auto auto auto; overflow: hidden; border: 1px solid var(--smh-live-line); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(6, 43, 80, .34); animation: smh-live-rise .2s ease-out; }
.smh-live--left .smh-live-dialog { right: auto; left: 0; }
.smh-live-head { position: relative; z-index: 7; display: grid; min-height: 62px; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 4px; background: linear-gradient(135deg, var(--smh-live-navy), var(--smh-live-accent)); color: #fff; padding: 9px 10px; }
.smh-live-head > div:nth-child(2) { min-width: 0; }
.smh-live-head strong, .smh-live-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smh-live-head strong { font-size: 15px; }.smh-live-head small { margin-top: 2px; color: #dbeafe; font-size: 11px; }
.smh-live-head button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.smh-live-head button:hover { background: rgba(255, 255, 255, .13); }
.smh-live-head__back { font-size: 28px !important; }.smh-live-head__actions { display: flex; }.smh-live-head__actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }.smh-live-head button.is-active { background: rgba(255, 255, 255, .2); }

.smh-live-menu { position: absolute; z-index: 8; top: 56px; right: 10px; width: min(292px, calc(100% - 20px)); max-height: calc(100% - 76px); overflow: auto; border: 1px solid #e1e8f0; border-radius: 14px; background: #fff; padding: 8px; color: var(--smh-live-ink); box-shadow: 0 18px 46px rgba(6, 43, 80, .24); animation: smh-live-menu-in .16s ease-out; }
.smh-live-menu__selects { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 4px 4px 8px; border-bottom: 1px solid #edf1f5; }
.smh-live-menu__selects label { display: grid; min-width: 0; gap: 4px; color: var(--smh-live-muted); font-size: 10px; font-weight: 700; }
.smh-live-menu__selects select { width: 100%; min-height: 38px; border: 1px solid #cbd9e5; border-radius: 9px; background: #fff; padding: 6px 8px; color: var(--smh-live-ink); }
.smh-live-menu__actions { display: grid; gap: 2px; padding-top: 6px; }
.smh-live-menu__actions button { display: grid; min-height: 42px; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 9px; border: 0; border-radius: 9px; background: #fff; padding: 8px 10px; color: var(--smh-live-ink); text-align: left; cursor: pointer; }
.smh-live-menu__actions button:hover { background: #f1f6fb; }
.smh-live-menu__actions svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.smh-live-menu__actions .smh-live-menu__danger { color: #b42318; }

.smh-live-screen { min-height: 0; overflow: auto; }
.smh-live-home { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--smh-live-accent) 0%, #0b4fc2 100%); color: #fff; padding: 26px 18px 22px; }
.smh-live-home__welcome { padding: 2px 3px 18px; }.smh-live-home__welcome > span { font-size: 34px; }.smh-live-home h2 { margin: 6px 0 8px; color: #fff; font-size: 29px; font-weight: 900; }.smh-live-home p { margin: 0; color: #e8f1ff; line-height: 1.55; }
.smh-live-new { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; border-radius: 15px; background: #fff; padding: 16px; color: var(--smh-live-ink); text-align: left; box-shadow: 0 14px 35px rgba(4, 31, 70, .18); cursor: pointer; }
.smh-live-new span { flex: 1; }.smh-live-new strong, .smh-live-new small { display: block; }.smh-live-new strong { font-size: 14px; }.smh-live-new small { margin-top: 3px; color: var(--smh-live-muted); font-size: 11px; line-height: 1.4; }.smh-live-new svg { width: 26px; height: 26px; fill: none; stroke: var(--smh-live-accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.smh-live-home__trust { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; padding-top: 24px; color: #dbeafe; font-size: 12px; }.smh-live-home__trust i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }

.smh-live-inbox { padding: 20px 16px; background: #fff; }.smh-live-inbox h2 { margin: 0 0 16px; font-size: 20px; }
.smh-live-recent { display: flex; width: 100%; align-items: center; gap: 11px; border: 1px solid var(--smh-live-line); border-radius: 14px; background: #fff; padding: 12px; text-align: left; cursor: pointer; }.smh-live-recent:hover { border-color: #93c5fd; background: #f8fbff; }.smh-live-recent > span:nth-child(2) { min-width: 0; flex: 1; }.smh-live-recent strong, .smh-live-recent small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.smh-live-recent small { margin-top: 3px; color: var(--smh-live-muted); font-size: 11px; }.smh-live-recent b { color: var(--smh-live-accent); font-size: 22px; }
.smh-live-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--smh-live-navy), var(--smh-live-accent)); color: #fff; font-size: 10px; font-weight: 900; }
.smh-live-empty { display: grid; min-height: 310px; place-content: center; justify-items: center; color: var(--smh-live-muted); text-align: center; }.smh-live-empty > span { font-size: 42px; }.smh-live-empty p { max-width: 230px; margin: 10px 0 16px; }.smh-live-empty button { border: 0; border-radius: 10px; background: var(--smh-live-accent); padding: 10px 15px; color: #fff; font-weight: 800; cursor: pointer; }

.smh-live-chat { position: relative; display: grid; grid-template-rows: minmax(170px, 1fr) auto auto; background: #fff; }
.smh-live-messages { min-height: 0; overflow: auto; padding: 18px 15px 10px; background: #fff; scroll-behavior: smooth; }
.smh-live-message { max-width: 82%; margin: 0 0 12px; border: 0; border-radius: 15px 15px 15px 5px; background: #edf3f9; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }.smh-live-message.visitor { margin-left: auto; border-radius: 15px 15px 5px 15px; background: var(--smh-live-accent); color: #fff; }.smh-live-message.system, .smh-live-message.ticket_event { margin-inline: auto; background: transparent; color: var(--smh-live-muted); text-align: center; font-size: 12px; }.smh-live-message small { display: block; margin-top: 5px; font-size: 10px; opacity: .68; }
.smh-live-jump { position: absolute; z-index: 2; left: 50%; bottom: 82px; transform: translateX(-50%); border: 1px solid #bfdbfe; border-radius: 99px; background: #fff; padding: 7px 11px; box-shadow: 0 8px 20px rgba(6, 43, 80, .18); cursor: pointer; }.smh-live-typing { display:flex;align-items:center;gap:6px;margin:0;padding:4px 15px 2px;color:var(--smh-live-muted);font-size:11px}.smh-live-typing-dots{display:inline-flex;align-items:center;gap:3px}.smh-live-typing-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:smh-live-typing-dot 1s ease-in-out infinite}.smh-live-typing-dots i:nth-child(2){animation-delay:.16s}.smh-live-typing-dots i:nth-child(3){animation-delay:.32s}@keyframes smh-live-typing-dot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-3px);opacity:1}}@media(prefers-reduced-motion:reduce){.smh-live-typing-dots i{animation:none;opacity:.7}}
.smh-live-chat form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; border-top: 1px solid #e8edf3; background: #fff; padding: 8px 10px 10px; }.smh-live-prechat { grid-column: 1/-1; padding: 0 2px 2px; }.smh-live-consent { display: flex; align-items: flex-start; gap: 7px; color: var(--smh-live-muted); font-size: 10px; line-height: 1.35; }.smh-live-consent input { flex: 0 0 auto; margin-top: 1px; }
.smh-live-text textarea { display: block; width: 100%; min-height: 44px; max-height: 112px; border: 1px solid #d3dde8; border-radius: 13px; background: #fff; padding: 11px 12px; line-height: 1.35; resize: none; }.smh-live-compose { display: flex; align-items: center; gap: 5px; }.smh-live-compose button, .smh-live-attach { display: grid; width: 40px; min-width: 40px; height: 40px; min-height: 40px; place-items: center; border: 0; border-radius: 50%; background: var(--smh-live-accent); padding: 0; color: #fff; cursor: pointer; }.smh-live-attach { background: #edf5ff; color: var(--smh-live-accent); }.smh-live-compose svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }.smh-live-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }.smh-live-chat form > p { grid-column: 1/-1; margin: 0; color: #b42318; font-size: 12px; }
.smh-live-rating { position:absolute;z-index:3;right:12px;bottom:12px;left:12px;display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:8px!important;border:1px solid #c7dce9!important;border-radius:13px;background:#fff;padding:13px!important;box-shadow:0 16px 40px rgba(6,43,80,.22) }.smh-live-rating strong { display: block; }.smh-live-rating [data-live-stars] { display: flex; }.smh-live-rating [data-live-stars] button { border:0;background:transparent;color:#cbd5e1;padding:4px;font-size:25px;cursor:pointer }.smh-live-rating [data-live-stars] button.selected,.smh-live-rating [data-live-stars] button:hover{color:#d99a00}.smh-live-rating label { display: grid; gap: 4px; font-size: 12px; }.smh-live-rating textarea { min-height: 55px; border: 1px solid #c9d9e6; border-radius: 8px; padding: 7px; }.smh-live-rating-submit{min-height:36px;border:0;border-radius:9px;background:var(--smh-live-accent);color:#fff;font-weight:800;cursor:pointer}.smh-live-rating-submit:disabled{cursor:not-allowed;opacity:.5}.smh-live-rating-status{margin:0!important;color:var(--smh-live-muted)!important;font-size:11px!important}

.smh-live-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--smh-live-line); background: #fff; }.smh-live-nav button { display: grid; min-height: 58px; place-items: center; align-content: center; gap: 2px; border: 0; background: #fff; color: #475569; font-size: 10px; cursor: pointer; }.smh-live-nav button[aria-current="page"] { color: var(--smh-live-accent); }.smh-live-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.smh-live-online-operators{display:grid;gap:5px;border-top:1px solid var(--smh-live-line);background:#fff;padding:7px 10px}.smh-live-online-operators>strong{font-size:10px}.smh-live-online-operators>small{color:var(--smh-live-muted);font-size:9px}.smh-live-online-operators>div{display:flex;gap:5px;overflow-x:auto;padding-bottom:1px}.smh-live-operator-chip{display:inline-flex;flex:0 0 auto;align-items:center;gap:5px;border:1px solid #cbd5e1;border-radius:99px;background:#fff;padding:5px 8px;color:var(--smh-live-ink);font-size:10px;cursor:pointer}.smh-live-operator-chip::before{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.14);content:""}.smh-live-operator-chip[aria-pressed=true]{border-color:var(--smh-live-accent);background:#eef5ff;color:var(--smh-live-accent);font-weight:800}
.smh-live-branding { display: block; background: #fff; padding: 7px 10px 9px; color: #7c8798; text-align: center; font-size: 9px; }.smh-live-branding span { color: var(--smh-live-accent); }
.smh-live .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.smh-live .honeypot { position: absolute; left: -10000px; }

@keyframes smh-live-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes smh-live-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 520px) {
    .smh-live, .smh-live--left { right: 10px; bottom: 10px; left: auto; }
    .smh-live-dialog, .smh-live--left .smh-live-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .smh-live-head { min-height: 58px; }
    .smh-live-menu { top: 56px; right: 8px; left: 8px; width: auto; }
    .smh-live-home { padding: 26px 18px; }
    .smh-live-home h2 { font-size: 27px; }
    .smh-live-proactive { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .smh-live *, .smh-live *::before, .smh-live *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.smh-live-operator-chip:disabled { cursor: default; opacity: .78; }
