/* Intelligic website chat box. Colours follow --ic-chat-accent, which a theme may override. */
.ic-chat { --ic-chat-accent: #1d4ed8; position: fixed; right: 20px; bottom: 20px; z-index: 99990; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2933; }
.ic-chat *, .ic-chat *::before, .ic-chat *::after { box-sizing: border-box; }
.ic-chat__launcher { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-left: auto; border: 0; border-radius: 50%; background: var(--ic-chat-accent); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.ic-chat__launcher:focus-visible, .ic-chat__send:focus-visible, .ic-chat__close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ic-chat__panel { display: flex; flex-direction: column; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 110px)); margin-bottom: 12px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.ic-chat__panel[hidden] { display: none; }
.ic-chat__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ic-chat-accent); color: #fff; font-weight: 600; }
.ic-chat__close { border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.ic-chat__log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow-y: auto; background: #f5f7fa; }
.ic-chat__msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ic-chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e3e8ef; }
.ic-chat__msg--me { align-self: flex-end; background: var(--ic-chat-accent); color: #fff; }
.ic-chat__msg--typing { color: #6b7785; font-style: italic; }
.ic-chat__wa { display: block; margin: 8px 14px 0; padding: 8px 12px; border-radius: 8px; background: #25d366; color: #fff !important; font-weight: 600; text-align: center; text-decoration: none; }
.ic-chat__wa[hidden] { display: none; }
.ic-chat__form { display: flex; gap: 8px; padding: 10px 14px 4px; }
.ic-chat__input { flex: 1; min-height: 40px; max-height: 120px; padding: 8px 10px; border: 1px solid #cbd2d9; border-radius: 8px; font: inherit; resize: none; }
.ic-chat__send { padding: 0 14px; border: 0; border-radius: 8px; background: var(--ic-chat-accent); color: #fff; font-weight: 600; cursor: pointer; }
.ic-chat__send:disabled { opacity: .6; cursor: default; }
.ic-chat__note { margin: 0; padding: 2px 14px 10px; color: #6b7785; font-size: 12px; }
@media (max-width: 480px) { .ic-chat { right: 12px; bottom: 12px; } }
@media print { .ic-chat { display: none; } }
