/* Website live chat (2026-09-13): the widget is styled from the same tokens as the page */
.sc-chat{position:fixed;right:1rem;bottom:1rem;z-index:70;font-family:var(--sc-font-body);color:var(--sc-color-text);display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}
.sc-chat__launcher{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1.1rem;border:0;border-radius:var(--sc-radius-pill);background:var(--sc-color-primary);color:var(--sc-color-on-primary);font:inherit;font-weight:600;cursor:pointer;box-shadow:var(--sc-shadow-raised);position:relative}
.sc-chat__launcher:hover{background:var(--sc-color-primary-hover)}
.sc-chat__badge{position:absolute;top:-.4rem;right:-.4rem;min-width:1.4rem;height:1.4rem;padding:0 .35rem;border-radius:1rem;background:var(--sc-color-accent);color:var(--sc-color-on-accent);font-size:.75rem;line-height:1.4rem;text-align:center}
.sc-chat__badge[hidden]{display:none}
.sc-chat__panel{width:min(360px,calc(100vw - 2rem));max-height:min(560px,calc(100vh - 6rem));display:flex;flex-direction:column;background:var(--sc-color-surface);border:1px solid var(--sc-color-border);border-radius:var(--sc-radius-lg);box-shadow:var(--sc-shadow-raised);overflow:hidden}
.sc-chat__panel[hidden]{display:none}
.sc-chat__head{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:var(--sc-color-primary);color:var(--sc-color-on-primary)}
.sc-chat__close{background:none;border:0;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer;padding:0 .25rem}
.sc-chat__body{flex:1 1 auto;overflow:auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem;min-height:200px}
.sc-chat__greeting{margin:0}
.sc-chat__form,.sc-chat__composer{display:flex;flex-direction:column;gap:.6rem}
.sc-chat__field{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}
.sc-chat__field input,.sc-chat__field textarea,.sc-chat__composer textarea{font:inherit;padding:.5rem .6rem;border:1px solid var(--sc-color-border);border-radius:var(--sc-radius-sm);background:var(--sc-color-surface);color:var(--sc-color-text)}
.sc-chat__consent{display:flex;gap:.5rem;align-items:flex-start;font-size:.85rem;color:var(--sc-color-text-muted)}
.sc-chat__hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sc-chat__note{margin:0;font-size:.8rem;color:var(--sc-color-text-muted)}
.sc-chat__err{margin:0;font-size:.85rem;color:var(--sc-color-danger)}
.sc-chat__err[hidden]{display:none}
.sc-chat__send{padding:.55rem 1rem}
.sc-chat__thread{display:flex;flex-direction:column;gap:.5rem;overflow:auto;flex:1 1 auto}
.sc-chat__msg{max-width:85%;padding:.5rem .75rem;border-radius:var(--sc-radius-md);background:var(--sc-color-surface-alt)}
.sc-chat__msg p{margin:0;white-space:pre-wrap;word-break:break-word}
.sc-chat__msg time{display:block;font-size:.7rem;color:var(--sc-color-text-muted);margin-top:.2rem}
.sc-chat__msg--me{align-self:flex-end;background:var(--sc-color-primary);color:var(--sc-color-on-primary)}
.sc-chat__msg--me time{color:inherit;opacity:.8}
.sc-chat__foot{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 1rem;border-top:1px solid var(--sc-color-border)}
.sc-chat__end{background:none;border:0;color:var(--sc-color-text-muted);font:inherit;font-size:.8rem;cursor:pointer;text-decoration:underline}
.sc-chat--preview .sc-chat__panel{padding:1rem}
@media (max-width:480px){.sc-chat{right:.5rem;bottom:.5rem}.sc-chat__label{display:none}.sc-chat__launcher{padding:.8rem}}
