:root{--bg-0:#f5f5f5;--panel:#ffffff;--border:#d0d5dd;--bubble-out:#111111;--bubble-out-text:#f5f5f5;--bubble-in:#ededed;--fg-0:#0f0f0f;--fg-dim:#616161;--accent:#111111;font-family:Inter,system-ui,sans-serif}*,*:before,*:after{box-sizing:border-box}body{margin:0;background:var(--bg-0);color:var(--fg-0)}.widget-shell{position:fixed;bottom:1rem;right:1rem;width:clamp(280px,82vw,340px);height:clamp(420px,70vh,500px);display:flex;flex-direction:column;direction:ltr;text-align:left;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--panel);box-shadow:0 12px 28px #0000002e;z-index:2147483646;pointer-events:auto}.widget-shell.collapsed{display:none!important}.chat-header{height:46px;display:flex;align-items:center;justify-content:center;position:relative;background:var(--bubble-out);color:var(--bubble-out-text);font-weight:700;font-size:14px;letter-spacing:.2px;text-transform:uppercase}.chat-close{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:#0000000a;border:1px solid rgba(0,0,0,.08);width:26px;height:26px;border-radius:50%;color:var(--bubble-out-text);font-size:0;cursor:pointer}.chat-close:before{content:"-";font-size:20px;line-height:1}.chat-log{flex:1;overflow-y:auto;padding:.85rem .9rem;font-size:.9rem;white-space:pre-wrap;background:var(--panel);direction:ltr;text-align:left}.msg{display:inline-block;max-width:80%;padding:.6rem .85rem;border-radius:12px;background:var(--bubble-in);color:var(--fg-0);margin-bottom:8px;line-height:1.4;box-shadow:0 4px 12px #00000029;direction:ltr;text-align:left;unicode-bidi:plaintext}.msg.rtl{direction:rtl;text-align:right}.msg.me{background:var(--bubble-out);color:var(--bubble-out-text);margin-left:auto}.msg.me{border-bottom-right-radius:4px}.msg:not(.me){border-bottom-left-radius:4px}.ts{font-size:.72rem;color:var(--fg-dim);margin:-4px 0 12px;direction:ltr;text-align:left;unicode-bidi:isolate}.ts.rtl{direction:rtl;text-align:right}.msg.me+.ts{text-align:right}.msg.typing{display:inline-flex;align-items:flex-end;gap:4px;background:var(--bubble-in);padding:.55rem .7rem}.msg.typing span{width:6px;height:6px;border-radius:50%;background:#999;animation:typing-bounce 1s infinite ease-in-out}.msg.typing span:nth-child(2){animation-delay:.15s}.msg.typing span:nth-child(3){animation-delay:.3s}@keyframes typing-bounce{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-6px)}}.widget-shell .chat-form{padding:10px;border-top:1px solid var(--border);background:var(--panel);direction:ltr!important;text-align:left!important}.widget-shell .chat-input,.widget-shell .chat-input:not([dir=rtl]),.widget-shell .chat-input[dir=ltr]{width:100%;padding:.7rem .95rem;border-radius:12px;font-size:.95rem;border:1px solid var(--border);background:#fafafa;color:var(--fg-0);box-shadow:inset 0 1px #fff6;direction:ltr!important;text-align:left!important;unicode-bidi:isolate!important;writing-mode:horizontal-tb!important}.widget-shell .chat-input.rtl[dir=rtl],.widget-shell .chat-input[dir=rtl]{direction:rtl!important;text-align:right!important}.widget-shell .chat-input:focus{outline:none;border-color:var(--bubble-out);box-shadow:0 0 0 2px #1e88e540}.widget-shell .chat-input:disabled{cursor:not-allowed;opacity:.72;background:#f0f0f0}.widget-shell.awaiting-reply .chat-form{cursor:wait}.widget-shell.awaiting-reply .chat-input{pointer-events:none;-webkit-user-select:none;user-select:none}.chat-launcher{position:fixed;bottom:1rem;right:1rem;width:54px;height:54px;border:none;border-radius:50%;background:var(--bubble-out);display:grid;place-content:center;box-shadow:0 8px 24px #00000040;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;z-index:2147483645;pointer-events:auto;touch-action:manipulation}.chat-launcher svg{width:24px;height:24px;fill:#f0f0f0}.chat-launcher:hover{transform:scale(1.04);box-shadow:0 10px 26px #0000004d}#wa-launcher{position:fixed;right:1.5rem;bottom:1.5rem}#chat-launcher+#wa-launcher{bottom:88px}@media (max-width:420px){.widget-shell{width:calc(100vw - 1.5rem);height:calc(100vh - 3.5rem);right:.75rem;left:.75rem;bottom:calc(.75rem + env(safe-area-inset-bottom,0px));border-radius:14px}.chat-launcher{right:.9rem;bottom:calc(.9rem + env(safe-area-inset-bottom,0px));width:52px;height:52px}#wa-launcher{right:.9rem;bottom:calc(.9rem + env(safe-area-inset-bottom,0px))}#chat-launcher+#wa-launcher{bottom:calc(76px + env(safe-area-inset-bottom,0px))}}
