.wa-panel,.wa-toggle{font-family:Inter,system-ui,sans-serif;box-sizing:border-box}.wa-panel *{box-sizing:border-box}.wa-toggle{position:fixed;right:22px;bottom:22px;width:60px;height:60px;border:0;border-radius:22px;background:linear-gradient(135deg,#6d5dfc,#0891b2);color:#fff;font-size:30px;cursor:pointer;box-shadow:0 12px 40px #4338ca45;z-index:9998}.wa-panel{position:fixed;right:22px;bottom:96px;width:min(420px,calc(100vw - 28px));height:min(730px,calc(100dvh - 115px));background:#fff;color:#172033;z-index:9999;border:1px solid #e2e8f0;border-radius:24px;box-shadow:0 22px 80px #0f172a33;display:flex;flex-direction:column;overflow:hidden;min-height:0}.wa-panel[hidden]{display:none}.wa-panel.expanded{width:min(850px,calc(100vw - 40px));height:calc(100dvh - 120px)}.wa-header{display:flex;align-items:center;gap:10px;padding:17px;background:linear-gradient(120deg,#4338ca,#0891b2);color:#fff}.wa-header>div{flex:1;min-width:0}.wa-header strong,.wa-header small{display:block}.wa-header small{font-size:12px;opacity:.85;margin-top:4px}.wa-avatar{display:grid;place-items:center;width:38px;height:38px;background:#ffffff25;border-radius:14px;font-size:24px}.wa-header button{background:#ffffff18;border:0;color:white;border-radius:9px;width:30px;height:30px;font-size:23px;cursor:pointer}.wa-tools{display:flex;gap:6px;padding:10px;border-bottom:1px solid #edf0f5}.wa-tools button,.wa-choices button,.wa-cancel,#wa-older{border:1px solid #dde4ef;border-radius:10px;background:#f7f9ff;color:#4338ca;padding:8px 10px;font:600 12px system-ui;cursor:pointer}.wa-tools button{flex:1;white-space:nowrap}.wa-search{display:flex;gap:7px;align-items:center;padding:8px 14px;background:#f8fafc}.wa-search input{width:100%;padding:5px;background:transparent;border:0;font:13px system-ui}.wa-history{flex:1;overflow:auto;min-height:70px;padding:14px;overscroll-behavior:contain;background:#f8fafc;scroll-behavior:smooth}#wa-messages{display:flex;flex-direction:column;gap:12px}.wa-message{max-width:90%;align-self:flex-start}.wa-message.user{align-self:flex-end}.wa-message p{margin:0;padding:12px 14px;border:1px solid #e3e8f0;border-radius:16px 16px 16px 4px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.wa-message.user p{background:#4f46e5;color:#fff;border:0;border-radius:16px 16px 4px 16px}.wa-message.operator p{background:#e6fffa;border-color:#a7f3d0}.wa-message small{display:block;font-size:10px;color:#64748b;padding:4px}.wa-typing{font-size:12px;padding:9px 16px;color:#64748b}.wa-typing span{animation:wa-pulse 1s infinite}.wa-choices{display:flex;gap:7px;flex-wrap:wrap;max-height:108px;overflow:auto;padding:8px 12px}.wa-cancel{align-self:flex-start;margin:0 12px 5px;font-size:11px}.wa-error{margin:5px 12px;padding:9px;color:#b91c1c;background:#fff1f2;border-radius:10px;font-size:12px}.wa-compose{display:grid;grid-template-columns:1fr 40px;gap:8px;padding:12px;border-top:1px solid #e2e8f0}.wa-compose textarea{width:100%;min-width:0;max-height:160px;resize:vertical;border:1px solid #d8e0ed;border-radius:12px;padding:10px;font:14px system-ui}.wa-compose>button{align-self:center;width:40px;height:40px;border:0;border-radius:12px;background:#4f46e5;color:white;font-size:22px;cursor:pointer}.wa-compose small{grid-column:1/-1;font-size:10px;color:#94a3b8}.wa-panel button:disabled{opacity:.5;cursor:wait}.wa-panel :focus-visible{outline:2px solid #06b6d4;outline-offset:2px}#wa-older{display:block;margin:0 auto 12px}#wa-older[hidden],.wa-message[hidden],.wa-error[hidden],.wa-typing[hidden]{display:none}@keyframes wa-pulse{50%{opacity:.35}}@media(max-width:540px){.wa-panel,.wa-panel.expanded{inset:8px;width:auto;height:auto;max-height:calc(100dvh - 16px);border-radius:18px}.wa-toggle{right:14px;bottom:14px}.wa-header{padding:12px}}@media(prefers-reduced-motion:reduce){.wa-history{scroll-behavior:auto}.wa-typing span{animation:none}}

.wa-panel [hidden]{display:none!important}

.wa-message img,.wa-message video{display:block;max-width:100%;max-height:300px;border-radius:10px;margin:8px 0}.wa-message audio{max-width:100%}.wa-button-row{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}.wa-button-row button{flex:1;min-width:80px;padding:9px 12px;border:1px solid #c8ddf2;border-radius:9px;background:#eef6ff;color:#1e65a0;font-size:13px;cursor:pointer;overflow-wrap:anywhere}
