/* StokHub chat widget (landing page + back-office). Self-contained: no framework classes. */
.shc { position: fixed; right: 20px; bottom: 20px; z-index: 1040; font-family: inherit; font-size: 15px; line-height: 1.45; color: #1A1D24; }
.shc *, .shc *::before, .shc *::after { box-sizing: border-box; }
.shc [hidden] { display: none !important; }
.shc-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #D32F2F; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(211, 47, 47, .65); position: relative; transition: transform .15s ease; }
.shc-fab:hover { transform: translateY(-2px); }
.shc-fab:focus-visible, .shc-btn:focus-visible, .shc-send:focus-visible, .shc-close:focus-visible { outline: 3px solid rgba(211, 47, 47, .4); outline-offset: 2px; }
.shc-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #1A1D24; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.shc-panel { position: absolute; right: 0; bottom: 72px; width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 110px); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -16px rgba(26, 29, 36, .4); border: 1px solid #ECE7E3; display: flex; flex-direction: column; overflow: hidden; }
.shc-head { background: #D32F2F; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shc-head strong { display: block; font-size: 16px; }
.shc-head small { opacity: .9; font-size: 12.5px; }
.shc-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 6px; }
.shc-start { padding: 16px; display: grid; gap: 12px; overflow-y: auto; }
.shc-intro { margin: 0; color: #3F4552; }
.shc-start label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #3F4552; }
.shc-start input, .shc-start select, .shc-start textarea, .shc-compose textarea, .shc-topic { width: 100%; border: 1.5px solid #E2DDD8; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 15px; color: #1A1D24; background: #fff; }
.shc-start input:focus, .shc-start select:focus, .shc-start textarea:focus, .shc-compose textarea:focus { outline: none; border-color: #D32F2F; }
.shc-hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.shc-btn { border: 0; border-radius: 999px; background: #D32F2F; color: #fff; font: inherit; font-weight: 700; padding: 11px 18px; cursor: pointer; }
.shc-btn:disabled, .shc-send:disabled { opacity: .6; cursor: default; }
.shc-note { color: #6B7280; font-size: 12px; }
.shc-error { margin: 0; color: #B91C1C; font-size: 13px; padding: 0 16px 10px; }
.shc-start .shc-error { padding: 0; }
.shc-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.shc-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #FBF7F3; }
.shc-msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.shc-msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.shc-msg.me { align-self: flex-end; background: #D32F2F; color: #fff; border-bottom-right-radius: 4px; }
.shc-msg.them { align-self: flex-start; background: #fff; border: 1px solid #ECE7E3; border-bottom-left-radius: 4px; }
.shc-msg.them b { display: block; font-size: 12px; color: #D32F2F; margin-bottom: 2px; }
.shc-day { align-self: center; font-size: 12px; color: #6B7280; margin: 4px 0; }
.shc-compose { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid #ECE7E3; align-items: flex-end; }
.shc-topic { flex-basis: 100%; padding: 6px 10px; font-size: 13px; }
.shc-compose textarea { flex: 1; min-width: 0; resize: none; max-height: 110px; }
.shc-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #D32F2F; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
@media (max-width: 480px) {
    .shc { right: 12px; bottom: 12px; }
    .shc-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
}
@media print { .shc { display: none; } }
@media (prefers-reduced-motion: reduce) { .shc-fab { transition: none; } }
