.wcai-root{font-family:inherit;direction:rtl;position:relative;z-index:999999}
.wcai-launcher{position:fixed;bottom:22px;right:22px;width:58px;height:58px;border:0;border-radius:50%;background:#1f2937;color:#fff;font-size:27px;box-shadow:0 5px 22px #0003;cursor:pointer}
.wcai-panel{position:fixed;bottom:92px;right:22px;width:min(370px,calc(100vw - 28px));height:min(560px,calc(100vh - 120px));background:#fff;color:#111827;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 12px 40px #0002;display:flex;flex-direction:column;overflow:hidden}
.wcai-panel[hidden]{display:none}
.wcai-header{background:#1f2937;color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.wcai-header strong,.wcai-header small{display:block}.wcai-header small{font-size:12px;opacity:.8;margin-top:4px}
.wcai-close{border:0;background:transparent;color:#fff;font-size:27px;cursor:pointer;line-height:1}
.wcai-messages{flex:1;overflow:auto;padding:14px;background:#f9fafb;display:flex;flex-direction:column;gap:10px}
.wcai-message{max-width:88%;padding:10px 12px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.wcai-assistant{align-self:flex-start;background:#fff;border:1px solid #e5e7eb}
.wcai-user{align-self:flex-end;background:#dbeafe;color:#1e3a8a}
.wcai-pending{opacity:.7;font-style:italic}
.wcai-form{display:flex;gap:8px;padding:12px;border-top:1px solid #e5e7eb;background:#fff}
.wcai-form textarea{font:inherit;resize:none;flex:1;min-width:0;border:1px solid #d1d5db;border-radius:9px;padding:9px;max-height:90px}
.wcai-form button{border:0;border-radius:9px;background:#1f2937;color:#fff;padding:0 14px;cursor:pointer}
.wcai-form button:disabled{opacity:.6;cursor:wait}
.wcai-footnote{font-size:10px;color:#6b7280;padding:0 12px 9px;background:#fff}
@media(max-width:480px){.wcai-launcher{bottom:14px;right:14px}.wcai-panel{right:10px;bottom:82px;width:calc(100vw - 20px);height:calc(100vh - 100px)}}
