/* KIT Site Assistant public widget. Colours come from the site (--kw-primary, --kw-on-primary, contrast-checked). */
.kitsa-w { position: fixed; bottom: 16px; right: 16px; z-index: 60; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #16191f; }
.kitsa-w[data-side="left"] { right: auto; left: 16px; }
.kitsa-w *, .kitsa-w *::before, .kitsa-w *::after { box-sizing: border-box; }
.kitsa-w [hidden] { display: none !important; }
.kitsa-w :focus-visible { outline: 3px solid #111; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.kitsa-w-open { display: inline-flex; gap: 8px; align-items: center; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--kw-primary); color: var(--kw-on-primary); font: inherit; font-weight: 650; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.kitsa-w-panel { position: absolute; bottom: 60px; right: 0; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; padding: 16px; background: #fff; border: 1px solid #d5d9e0; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.kitsa-w[data-side="left"] .kitsa-w-panel { right: auto; left: 0; }
.kitsa-w-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kitsa-w-top h2 { margin: 0; font-size: 1.15rem; color: #16191f; }
.kitsa-w-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #16191f; }
.kitsa-w-name { margin: 0 0 8px; color: #4a5260; font-size: .9rem; }
.kitsa-w-log { display: grid; gap: 8px; max-height: 45vh; overflow: auto; margin-bottom: 10px; }
.kitsa-w-msg { margin: 0; padding: 8px 12px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kitsa-w-msg[data-role="assistant"] { background: #f2f4f7; }
.kitsa-w-msg[data-role="user"] { background: var(--kw-primary); color: var(--kw-on-primary); justify-self: end; }
.kitsa-w-msg[data-role="user"] a { color: inherit; }
.kitsa-w-msg a { color: #1d4ed8; }
.kitsa-w-label { display: block; font-weight: 600; margin-bottom: 4px; }
.kitsa-w textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #8a93a3; border-radius: 5px; min-height: 44px; color: #16191f; background: #fff; }
.kitsa-w-row { display: flex; gap: 8px; margin-top: 8px; }
.kitsa-w-send, .kitsa-w-reset { min-height: 44px; padding: 8px 16px; border-radius: 5px; font: inherit; font-weight: 600; cursor: pointer; }
.kitsa-w-send { border: 0; background: var(--kw-primary); color: var(--kw-on-primary); }
.kitsa-w-reset { border: 1px solid #8a93a3; background: #fff; color: #16191f; }
.kitsa-w-note, .kitsa-w-status { margin: 6px 0 0; font-size: .85rem; color: #4a5260; }
.kitsa-w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { .kitsa-w-panel { position: fixed; inset: auto 8px 72px 8px; width: auto; } }
