.its-chat { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); right: max(24px, env(safe-area-inset-right)); z-index: 1100; font: 400 14px/1.5 Onest, sans-serif; color: #0b0d0b; text-align: left; }
.its-chat *, .its-chat *::before, .its-chat *::after { box-sizing: border-box; }
.its-chat [hidden] { display: none !important; }
.its-chat button, .its-chat textarea { font: inherit; }
.its-chat button { cursor: pointer; border: 0; }
.its-chat button:focus-visible { outline: 2px solid #1abc1a; outline-offset: 3px; }
.its-chat button:disabled { cursor: default; }
.its-chat svg { display: block; flex-shrink: 0; }
.its-chat__launcher { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; background: #1abc1a; color: #0b0d0b; border-radius: 28px; box-shadow: 0 5px 20px #0b0d0b20; font-weight: 500 !important; }
.its-chat__launcher > svg { width: 23px; height: 23px; }
.its-chat__launcher:hover { box-shadow: 0 5px 24px #0b0d0b30; }
.its-chat__unread { display: grid; place-items: center; background: #fff; color: #0b0d0b; width: 21px; height: 21px; border-radius: 50%; font-size: 12px; }
.its-chat__panel { display: flex; flex-direction: column; width: 380px; height: min(490px, calc(100dvh - 48px)); overflow: hidden; background: #fff; border: 1px solid #e5e8e5; border-radius: 22px; box-shadow: 0 20px 64px #0b0d0b1f, 0 3px 12px #0b0d0b0a; animation: its-chat-open .22s ease-out; }
.its-chat__header { display: flex; flex-shrink: 0; align-items: center; gap: 13px; padding: 20px; border-bottom: 1px solid #e9ece9; background: #fff; }
.its-chat__mark { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; background: #edf9ed; color: #0b0d0b; border-radius: 15px; font-size: 21px; letter-spacing: -1.6px; font-weight: 600; }
.its-chat__identity { flex: 1; min-width: 0; }
.its-chat__identity h2 { font: 600 16px/1.3 Onest, sans-serif; text-transform: none; margin: 0 0 4px; color: #0b0d0b; letter-spacing: -.3px; }
.its-chat__identity p { margin: 0; font-size: 12px; line-height: 1.4; color: #747b74; }
.its-chat__icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; padding: 6px; background: #f4f5f4; color: #747b74; border-radius: 50%; transition: background .15s, color .15s; }
.its-chat__icon svg { width: 20px; height: 20px; }
.its-chat__icon:hover { background: #e9ece9; color: #0b0d0b; }
.its-chat__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 25px 20px; scrollbar-width: thin; background: #f6f7f6; }
.its-chat__welcome { margin-bottom: 18px; }
.its-chat__mark--operator { letter-spacing: 0; }
.its-chat__mark--operator::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 3px solid #fff; background: #1abc1a; border-radius: 50%; }
.its-chat__assignment { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 16px; }
.its-chat__assignment p { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: #0b0d0b; }
.its-chat__assignment div > span { font-size: 12px; color: #626962; line-height: 1.5; }
.its-chat__spinner { width: 22px; height: 22px; flex-shrink: 0; border: 2px solid #dce4dc; border-top-color: #1abc1a; border-radius: 50%; animation: its-chat-spin .8s linear infinite; }
.its-chat__welcome:not([hidden]) { animation: its-chat-open .2s ease-out; }
.its-chat__author { margin: 0 0 9px 3px; color: #747b74; font-size: 11px; line-height: 1.4; }
.its-chat__messages { display: flex; flex-direction: column; gap: 14px; }
.its-chat__message { width: fit-content; max-width: 92%; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid #e9ece9; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14px; line-height: 1.65; margin: 0; color: #0b0d0b; box-shadow: 0 2px 4px #0b0d0b03; }
.its-chat__message--user { align-self: flex-end; background: #e7f8e7; border-color: #dcefdc; border-radius: 16px 16px 4px 16px; }
.its-chat__pending { display: flex; gap: 5px; padding: 18px 14px; }
.its-chat__pending > span:not(.its-chat__sr) { width: 5px; height: 5px; background: #626962; border-radius: 50%; animation: its-chat-thinking 1s infinite alternate; }
.its-chat__pending > span:nth-child(2) { animation-delay: .2s; }
.its-chat__pending > span:nth-child(3) { animation-delay: .4s; }
.its-chat__notice { flex-shrink: 0; padding: 10px 18px 0; font-size: 12px; color: #626962; line-height: 1.5; }
.its-chat__notice--error { color: #a32323; }
.its-chat__retry { align-self: flex-start; margin: 8px 18px 0; padding: 0; color: #0b0d0b; background: transparent; text-decoration: underline; font-size: 13px !important; }
.its-chat__composer { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 14px 16px 10px; padding: 7px 10px 7px 14px; border: 1px solid #e5e8e5; border-radius: 16px; background: #f9faf9; transition: border-color .15s, box-shadow .15s; }
.its-chat__composer textarea { display: block; min-width: 0; flex: 1; resize: none; border: 0; border-radius: 0; box-shadow: none; outline: none; padding: 6px 0; height: 56px; background: transparent; color: #0b0d0b; font-size: 14px; line-height: 22px; }
.its-chat__composer:focus-within { border-color: #1abc1a; box-shadow: 0 0 0 2px #1abc1a12; }
.its-chat__composer textarea::placeholder { color: #737a73; opacity: 1; }
.its-chat__send { display: grid; place-items: center; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #1abc1a; color: #0b0d0b; flex-shrink: 0; transition: background .15s; }
.its-chat__send:not(:disabled):hover { background: #22c522; }
.its-chat__send svg { width: 20px; height: 20px; }
.its-chat__send:disabled { background: #eef1ee; color: #a2aaa2; }
.its-chat__mode { margin: 0; padding: 0 16px 11px; text-align: center; color: #737a73; font-size: 10px; line-height: 1.4; background: #fff; }
.its-chat__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes its-chat-open { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes its-chat-thinking { to { opacity: .35; } }
@keyframes its-chat-spin { to { transform: rotate(360deg); } }
@media (max-width: 575px) {
  .its-chat { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .its-chat__launcher { margin-left: auto; min-height: 50px; padding: 11px 16px; font-size: 14px !important; }
  .its-chat__panel { width: 100%; height: min(480px, calc(100dvh - 24px)); }
}
@media (prefers-reduced-motion: reduce) { .its-chat__panel, .its-chat__pending > span, .its-chat__spinner, .its-chat__welcome:not([hidden]) { animation: none !important; } }

.its-chat__frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; }
.its-chat__privacy { display: block; flex-shrink: 0; text-align: center; padding: 7px 12px; color: #626962; background: #fff; font-size: 10px; line-height: 1.4; }
.its-chat__panel { position: relative; }
.its-chat__loading { position: absolute; inset: 0 0 28px; display: flex; flex-direction: column; align-items: stretch; background: #fff; color: #747b74; font: 14px/1.5 system-ui, -apple-system, sans-serif; }
.its-chat__loading-header { display: flex; align-items: center; gap: 12px; padding: 20px 62px 18px 18px; border-bottom: 1px solid #f0edf4; }
.its-chat__loading-mark { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 15px; background: #1abc1a; color: #111; }
.its-chat__loading-mark svg { width: 24px; height: 24px; }
.its-chat__loading-header strong { display: block; color: #302c38; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.its-chat__loading-header small { display: block; margin-top: 3px; font-size: 11px; color: #8a8294; }
.its-chat__loading-assignment { display: flex; align-items: center; gap: 12px; padding: 28px 20px; }
.its-chat__loading-assignment p { margin: 0; color: #626962; font-size: 13px; }
.its-chat__loading-close { position: absolute; top: 20px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #f4f5f4; color: #747b74; font-size: 24px !important; line-height: 1; }
.its-chat__loading-retry { align-self: flex-start; margin-left: 54px; padding: 8px 16px; border-radius: 12px; background: #1abc1a; color: #0b0d0b; }
