.hhc { --hhc-yellow: #fab501; --hhc-ink: #1d1d1b; --hhc-blue: #2a80d5; --hhc-blue-2: #1f6ab5; --hhc-muted: #6b7280; --hhc-line: #e5e7eb; --hhc-paper: #f6f6f4; --hhc-ok: #26a326; --hhc-bad: #c62828; --hhc-font: "Nimbus Sans Ext", Arial, sans-serif; position: fixed; right: 32px; bottom: 24px; z-index: 125; font-family: var(--hhc-font); color: var(--hhc-ink); }
.hhc *, .hhc *::before, .hhc *::after { box-sizing: border-box; }
.hhc [hidden] { display: none !important; }
.hhc-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hhc-ico { width: 24px; height: 24px; fill: currentColor; flex: none; }

.hhc-launch { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--hhc-blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12); margin-left: auto; padding: 0; }
.hhc-launch:hover { background: var(--hhc-blue-2); }
.hhc-launch:focus-visible { outline: 3px solid var(--hhc-ink); outline-offset: 3px; }
.hhc-launch .hhc-ico { width: 28px; height: 28px; }
.hhc-ico--x { display: none; }
.hhc[data-state="open"] .hhc-ico--x { display: block; }
.hhc[data-state="open"] .hhc-ico--chat { display: none; }
.hhc-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hhc-ink); color: #fff; border: 2px solid var(--hhc-yellow); font-size: 11px; line-height: 18px; font-weight: 900; text-align: center; }

.hhc-panel { position: absolute; right: 0; bottom: 76px; width: 380px; height: min(600px, calc(100vh - 140px)); background: #fff; border: 2px solid var(--hhc-ink); display: flex; flex-direction: column; overflow: hidden; }
.hhc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 12px 16px; background: var(--hhc-yellow); }
.hhc-head__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hhc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--hhc-ink); color: var(--hhc-yellow); display: grid; place-items: center; font-weight: 900; font-size: 13px; letter-spacing: .02em; flex: none; }
.hhc-avatar.is-person { background: #fff; color: var(--hhc-ink); border: 2px solid var(--hhc-ink); }
.hhc-head__t { margin: 0; font-size: 16px; line-height: 20px; font-weight: 900; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--hhc-font); color: var(--hhc-ink); }
.hhc-head__s { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 700; }
.hhc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hhc-muted); flex: none; }
.hhc-dot.is-online { background: var(--hhc-ok); box-shadow: 0 0 0 2px #fff; }
.hhc-dot.is-away { background: #fff; box-shadow: inset 0 0 0 2px var(--hhc-ink); }
.hhc-dot.is-offline { background: var(--hhc-ink); opacity: .45; }
.hhc-close { width: 40px; height: 40px; border: 0; background: none; color: var(--hhc-ink); cursor: pointer; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.hhc-close:hover { background: rgba(29,29,27,.1); }

.hhc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; background: #fff; }
.hhc-log:focus-visible { outline: 2px solid var(--hhc-ink); outline-offset: -4px; }
.hhc-day { align-self: center; margin: 6px 0 2px; font-size: 11px; line-height: 16px; color: var(--hhc-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hhc-msg { display: flex; flex-direction: column; max-width: 84%; }
.hhc-msg--visitor { align-self: flex-end; align-items: flex-end; }
.hhc-msg--agent { align-self: flex-start; align-items: flex-start; }
.hhc-msg--system { align-self: center; max-width: 92%; }
.hhc-bubble { padding: 10px 14px; font-size: 14px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 16px; }
.hhc-msg--visitor .hhc-bubble { background: var(--hhc-ink); color: #fff; border-bottom-right-radius: 4px; }
.hhc-msg--agent .hhc-bubble { background: var(--hhc-paper); border-bottom-left-radius: 4px; }
.hhc-msg--system .hhc-bubble { background: #fef0cc; font-size: 13px; line-height: 18px; text-align: center; border-radius: 8px; }
.hhc-msg--visitor .hhc-bubble a { color: #fff; }
.hhc-msg.is-pending { opacity: .55; }
.hhc-meta { margin-top: 3px; font-size: 11px; line-height: 14px; color: var(--hhc-muted); }
.hhc-hint { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--hhc-muted); }

.hhc-form { border-top: 1px solid var(--hhc-line); padding: 10px 12px 12px; display: grid; gap: 8px; background: #fff; }
.hhc-form.is-busy .hhc-send { opacity: .5; pointer-events: none; }
.hhc-who { display: grid; gap: 6px; }
.hhc-who input, .hhc-compose textarea { width: 100%; font: inherit; font-size: 14px; color: var(--hhc-ink); border: 1px solid var(--hhc-muted); border-radius: 4px; background: #fff; }
.hhc-who input { height: 40px; padding: 0 12px; }
.hhc-who input:focus, .hhc-compose textarea:focus { outline: 0; border-color: var(--hhc-ink); box-shadow: 0 0 0 2px var(--hhc-ink); }
.hhc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hhc-err { margin: 0; color: var(--hhc-bad); font-size: 13px; line-height: 18px; font-weight: 700; }
.hhc-compose { display: flex; gap: 8px; align-items: flex-end; }
.hhc .hhc-compose textarea { resize: none; height: 44px; min-height: 44px !important; max-height: 140px; padding: 11px 12px; line-height: 20px; margin: 0; box-shadow: none; }
.hhc-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--hhc-blue-2); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hhc-send:hover { background: var(--hhc-ink); }
.hhc-send .hhc-ico { width: 20px; height: 20px; }
.hhc-alt { margin: 0; font-size: 12px; line-height: 16px; color: var(--hhc-muted); text-align: center; }
.hhc-alt a { color: var(--hhc-ink); font-weight: 700; }

@media (max-width: 900px) {
    .hhc { right: 16px; bottom: 16px; }
}
@media (max-width: 560px) {
    .hhc[data-state="open"] { inset: 0; }
    .hhc[data-state="open"] .hhc-launch { display: none; }
    .hhc-panel { position: fixed; inset: 0; width: auto; height: auto; border: 0; }
    .hhc-who input, .hhc-compose textarea { font-size: 16px; }
}
@media print { .hhc { display: none; } }
