/* Website chat bubble (2026-10-24, assets/chat.js). Bottom-RIGHT, so it never covers the accessibility button (bottom-left). Colours come
   from the site's own tokens (--card, --ink, --line, --accent, --brand); fallbacks keep it readable on any page. */
.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  border-radius: 999px; border: 0; background: var(--brand, #134e6f); color: var(--brand-ink, #fff); font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.chat-fab:focus-visible, .chat-panel button:focus-visible, .chat-panel input:focus-visible, .chat-panel textarea:focus-visible { outline: 3px solid var(--accent, #2a9d8f); outline-offset: 2px; }
.chat-fab-icon { font-size: 1.2rem; line-height: 1; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 0 2px var(--brand, #134e6f); }
.chat-panel { position: fixed; right: 16px; bottom: 76px; z-index: 1001; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 100px));
  display: flex; flex-direction: column; background: var(--card, #fff); color: var(--ink, #14212b); border: 1px solid var(--line, #d9e2e8); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3); overflow-y: auto; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line, #d9e2e8); }
.chat-close { min-width: 40px; min-height: 40px; border: 0; background: none; color: inherit; font-size: 1.5rem; cursor: pointer; }
.chat-status { margin: 0; padding: 8px 14px; font-size: .88rem; color: var(--muted, #4a5a66); }
.chat-list { flex: 1; overflow-y: auto; padding: 4px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.chat-msg { max-width: 85%; padding: 8px 10px; border-radius: 10px; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-you { align-self: flex-end; background: var(--paper, #f5f8fa); border: 1px solid var(--line, #d9e2e8); }
.chat-us { align-self: flex-start; background: var(--accent, #2a9d8f); color: #fff; }
.chat-who { display: block; font-size: .75rem; opacity: .8; margin-bottom: 2px; }
.chat-note { margin: 0; padding: 0 14px; font-size: .85rem; }
.chat-note:empty { display: none; }
.chat-form, .chat-say { padding: 10px 14px 14px; display: grid; gap: 8px; }
.chat-form label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.chat-form input, .chat-form textarea, .chat-say textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line, #d9e2e8); background: var(--bg, #fff); color: inherit; }
.chat-form label.chat-check { display: block; font-weight: 400; }
.chat-form label.chat-check input { width: auto; margin-right: 4px; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-say { grid-template-columns: 1fr auto; align-items: end; border-top: 1px solid var(--line, #d9e2e8); }
@media (max-width: 600px) { .chat-fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .chat-fab { padding: 0; width: 52px; justify-content: center; } }
@media print { .chat-fab, .chat-panel { display: none !important; } }
