.capture-widget{font:14px/1.5 'Manrope',system-ui,sans-serif;color:var(--palette-slate-800);position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:90;text-align:left}
.capture-widget *{box-sizing:border-box}
.capture-widget [hidden]{display:none!important}
.capture-widget button,.capture-widget textarea{font:inherit}
.capture-widget button{cursor:pointer}
.capture-widget button:disabled{cursor:wait;opacity:.55}
.capture-widget button:focus-visible,.capture-widget a:focus-visible,.capture-widget textarea:focus-visible{outline:3px solid var(--palette-brand-400);outline-offset:3px}
.capture-launcher{width:62px;height:62px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--palette-brand);color:var(--palette-white);box-shadow:0 6px 24px rgb(var(--palette-brand-rgb)/.28);transition:transform .18s}
.capture-launcher:hover{background:var(--palette-brand-hover);transform:translateY(-2px)}
.capture-launcher>svg{width:33px;height:33px}
.capture-window{width:390px;height:640px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);border:1px solid var(--palette-slate-200);border-radius:24px;overflow:hidden;background:var(--palette-white);box-shadow:0 12px 48px rgb(var(--palette-brand-rgb)/.22);display:flex;flex-direction:column}
.capture-heading{display:flex;align-items:center;gap:10px;padding:18px 14px;background:var(--palette-brand);color:var(--palette-white);flex-shrink:0}
.capture-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:var(--palette-brand-100);color:var(--palette-brand)}
.capture-avatar svg{width:26px;height:26px}
.capture-heading>.capture-avatar{background:rgb(var(--palette-white-rgb)/.16);color:var(--palette-white)}
.capture-heading-text{flex:1;min-width:0}
.capture-heading h2{font-size:15px;font-weight:800;line-height:1.3;margin:0;color:inherit}
.capture-heading p{margin:3px 0 0;font-size:11px;color:var(--palette-brand-200)}
.capture-icon-button{width:28px;height:32px;border:0;padding:4px;color:inherit;background:transparent;border-radius:8px;display:grid;place-items:center}
.capture-icon-button:hover{background:rgb(var(--palette-white-rgb)/.16)}
.capture-icon-button svg,.capture-send svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.capture-timeline{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px;background:var(--palette-slate-100);scrollbar-width:thin}
.capture-date{font-size:11px;color:var(--palette-slate-500);text-align:center;margin:0 12px 20px}
.capture-message{display:flex;align-items:flex-end;gap:8px;margin:0 0 16px}
.capture-message .capture-avatar{width:30px;height:30px}
.capture-message .capture-avatar svg{width:22px;height:22px}
.capture-bubble{margin:0;padding:12px 14px;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--palette-white);border-radius:18px 18px 18px 4px;max-width:calc(100% - 38px);box-shadow:0 1px 2px rgb(var(--palette-brand-rgb)/.04)}
.capture-message[data-sender=visitor]{justify-content:flex-end}
.capture-message[data-sender=visitor] .capture-bubble{background:var(--palette-brand-100);color:var(--palette-brand-900);border-radius:18px 18px 4px 18px}
.capture-message[data-sender=agent] .capture-avatar{font-size:11px;font-weight:800}
.capture-message-body{max-width:calc(100% - 38px)}
.capture-message-body .capture-bubble{max-width:100%}
.capture-delivery{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:4px;font-size:10px;color:var(--palette-slate-500)}
.capture-delivery button{border:0;background:transparent;color:var(--palette-brand-700);padding:2px;text-decoration:underline}
.capture-message[data-delivery=failed] .capture-delivery{color:var(--palette-red-700)}
.capture-typing .capture-bubble{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--palette-slate-500)}
.capture-typing-dots{display:inline-flex;gap:3px;align-items:center}
.capture-typing-dots i{width:5px;height:5px;border-radius:50%;background:var(--palette-brand);animation:capture-typing-dot 1.2s ease-in-out infinite}
.capture-typing-dots i:nth-child(2){animation-delay:.15s}
.capture-typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes capture-typing-dot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.capture-suggestions{display:flex;flex-wrap:wrap;gap:8px;padding-left:38px;margin:8px 0 12px}
.capture-suggestions button{border:1px solid var(--palette-brand-300);border-radius:999px;background:var(--palette-white);color:var(--palette-brand-800);font-size:12px;padding:8px 12px;text-align:left;line-height:1.4}
.capture-suggestions button:hover{background:var(--palette-brand-50)}
.capture-feedback{padding:7px 16px 0;flex-shrink:0}
.capture-status{font-size:11px;color:var(--palette-slate-500);margin:0;overflow-wrap:anywhere}
.capture-widget[data-error=true] .capture-status{color:var(--palette-red-700)}
.capture-retry{border:0;background:transparent;color:var(--palette-brand);padding:5px 0;font-size:12px;text-decoration:underline}
.capture-tools{display:flex;flex-wrap:wrap;gap:8px 12px;padding:8px 16px 4px;flex-shrink:0}
.capture-tools button,.capture-tools a{border:0;background:transparent;font-size:11px;color:var(--palette-brand-700);padding:0;text-decoration:underline;text-underline-offset:3px}
.capture-composer{display:flex;align-items:flex-end;gap:8px;padding:10px 14px 6px;margin:0;flex-shrink:0}
.capture-composer textarea{width:100%;min-width:0;border:1px solid var(--palette-slate-200);border-radius:18px;resize:none;max-height:96px;min-height:44px;padding:11px 14px;color:var(--palette-slate-800);background:var(--palette-white);line-height:20px}
.capture-composer textarea::placeholder{color:var(--palette-slate-500)}
.capture-send{width:42px;height:42px;flex-shrink:0;border:0;border-radius:50%;display:grid;place-items:center;background:var(--palette-brand);color:var(--palette-white)}
.capture-send:hover{background:var(--palette-brand-hover)}
.capture-privacy{margin:2px 14px 12px;font-size:9px;line-height:1.5;color:var(--palette-slate-500);text-align:center;flex-shrink:0}
.capture-privacy a{color:var(--palette-brand);text-decoration:underline}
.capture-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:480px){.capture-widget{right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}.capture-window{width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:620px;max-height:calc(100dvh - 20px);border-radius:20px}.capture-heading{padding:14px 12px}.capture-launcher{width:56px;height:56px}}
@media(prefers-reduced-motion:reduce){.capture-launcher{transition:none}.capture-typing-dots i{animation:none}}
