/* WINDOW_TEMPLATES_32AV: opt-in visual templates. The "classic" template adds no rules. */
body.chat[data-tpl32av="card"]{background:#f1f3f6}
body.chat[data-tpl32av="card"]>header{background:#fff;border-bottom:3px solid var(--brand,#155eef)}
body.chat[data-tpl32av="card"] #messages article.visitor{border-radius:10px;box-shadow:none}
body.chat[data-tpl32av="card"] #messages article.human,
body.chat[data-tpl32av="card"] #messages article.assistant{border-radius:10px;border:1px solid #e1e6ee;box-shadow:none}
body.chat[data-tpl32av="card"] .chat-compose32f #text{border-radius:8px}
body.chat[data-tpl32av="card"] #send{border-radius:8px}
body.chat[data-tpl32av="round"]{background:#f4f6fb}
body.chat[data-tpl32av="round"]>header{background:var(--brand,#155eef);color:#fff;border-bottom:0}
body.chat[data-tpl32av="round"]>header #brand,
body.chat[data-tpl32av="round"]>header .chat-meta32f,
body.chat[data-tpl32av="round"]>header .chat-meta32f #typing-status{color:#fff}
body.chat[data-tpl32av="round"]>header button{background:rgba(255,255,255,.22);color:#fff;border-radius:999px}
body.chat[data-tpl32av="round"] #messages article.visitor{border-radius:20px 20px 4px 20px}
body.chat[data-tpl32av="round"] #messages article.human,
body.chat[data-tpl32av="round"] #messages article.assistant{border-radius:20px 20px 20px 4px}
body.chat[data-tpl32av="round"] .chat-compose32f #text{border-radius:18px}
body.chat[data-tpl32av="round"] .chat-send-actions32f button,
body.chat[data-tpl32av="round"] #send{border-radius:999px}
body.chat[data-tpl32av="business"]{background:#eef1f5}
body.chat[data-tpl32av="business"]>header{background:#1f2937;color:#fff;border-bottom:3px solid var(--brand,#155eef)}
body.chat[data-tpl32av="business"]>header #brand{color:#fff}
body.chat[data-tpl32av="business"]>header .chat-meta32f,
body.chat[data-tpl32av="business"]>header .chat-meta32f #typing-status{color:#cbd5e1}
body.chat[data-tpl32av="business"]>header button{background:#374151;color:#fff;border-radius:4px}
body.chat[data-tpl32av="business"] #messages article.visitor{border-radius:4px;box-shadow:none}
body.chat[data-tpl32av="business"] #messages article.human,
body.chat[data-tpl32av="business"] #messages article.assistant{border-radius:4px;border:1px solid #d5dbe3;box-shadow:none}
body.chat[data-tpl32av="business"]>footer{border-top:1px solid #cfd6df}
body.chat[data-tpl32av="business"] .chat-compose32f #text{border-radius:4px}
body.chat[data-tpl32av="business"] .chat-send-actions32f button,
body.chat[data-tpl32av="business"] #send{border-radius:4px}
body.chat[data-tpl32av="minimal"]{background:#fff}
body.chat[data-tpl32av="minimal"]>header{background:#fff;border-bottom:1px solid #e5e7eb}
body.chat[data-tpl32av="minimal"]>header button{background:transparent;color:#4b5563}
body.chat[data-tpl32av="minimal"] #messages{background:#fff}
body.chat[data-tpl32av="minimal"] #messages article.visitor{background:#eef2f7;background:color-mix(in srgb,var(--brand,#155eef) 14%,#fff);color:#111827;border-radius:14px;box-shadow:none}
body.chat[data-tpl32av="minimal"] #messages article.human,
body.chat[data-tpl32av="minimal"] #messages article.assistant{background:#fff;border:1px solid #e5e7eb;color:#111827;border-radius:14px;box-shadow:none}
body.chat[data-tpl32av="minimal"]>footer{border-top:1px solid #e5e7eb}
body.chat[data-tpl32av="minimal"] .chat-compose32f #text{background:#fff;border:1px solid #d1d5db;border-radius:10px}
body.chat[data-tpl32av="minimal"] #send{border-radius:10px}
.tplpv32av{--pv-bg:#f5f8fc;--pv-head-bg:#fff;--pv-head-fg:#172b4d;--pv-head-line:none;--pv-r:13px;--pv-in-r:8px;--pv-agent-bd:1px solid transparent;
 --pv-visitor-bg:var(--pv-brand,#155eef);--pv-visitor-fg:#fff;--pv-agent-fg:#172b4d;--pv-fab-r:50%;--pv-fab-bg:var(--pv-brand,#155eef);--pv-fab-fg:#fff;--pv-fab-bd:0;--pv-send-r:8px;--pv-win-r:14px;
 display:flex;align-items:flex-end;gap:14px;margin:10px 0}
.tplpv32av .pv-win{width:230px;border:1px solid #d8e0ea;border-radius:var(--pv-win-r);overflow:hidden;background:var(--pv-bg);box-shadow:0 4px 16px #0002;font-size:12px}
.tplpv32av .pv-head{background:var(--pv-head-bg);color:var(--pv-head-fg);border-bottom:var(--pv-head-line);padding:9px 12px;font-weight:600}
.tplpv32av .pv-body{padding:10px;display:flex;flex-direction:column;gap:6px;min-height:92px}
.tplpv32av .pv-msg{max-width:82%;padding:6px 9px;line-height:1.4}
.tplpv32av .pv-agent{background:#fff;color:var(--pv-agent-fg);border:var(--pv-agent-bd);border-radius:var(--pv-r) var(--pv-r) var(--pv-r) 3px;align-self:flex-start}
.tplpv32av .pv-visitor{background:var(--pv-visitor-bg);color:var(--pv-visitor-fg);border-radius:var(--pv-r) var(--pv-r) 3px var(--pv-r);align-self:flex-end}
.tplpv32av .pv-foot{display:flex;gap:6px;padding:8px;background:#fff;border-top:1px solid #e5e7eb}
.tplpv32av .pv-input{flex:1;height:24px;border:1px solid #d1d5db;border-radius:var(--pv-in-r);background:#f9fbfd}
.tplpv32av .pv-send{width:44px;border-radius:var(--pv-send-r);background:var(--pv-brand,#155eef)}
.tplpv32av .pv-fab{width:48px;height:48px;border-radius:var(--pv-fab-r);background:var(--pv-fab-bg);color:var(--pv-fab-fg);border:var(--pv-fab-bd);box-shadow:0 4px 14px #0003;display:flex;align-items:center;justify-content:center;font-size:20px}
.tplpv32av[data-tpl32av="card"]{--pv-bg:#f1f3f6;--pv-head-line:3px solid var(--pv-brand,#155eef);--pv-r:10px;--pv-agent-bd:1px solid #e1e6ee;--pv-fab-r:16px;--pv-win-r:12px}
.tplpv32av[data-tpl32av="round"]{--pv-bg:#f4f6fb;--pv-head-bg:var(--pv-brand,#155eef);--pv-head-fg:#fff;--pv-r:20px;--pv-in-r:18px;--pv-send-r:999px;--pv-win-r:24px}
.tplpv32av[data-tpl32av="business"]{--pv-bg:#eef1f5;--pv-head-bg:#1f2937;--pv-head-fg:#fff;--pv-head-line:3px solid var(--pv-brand,#155eef);--pv-r:4px;--pv-in-r:4px;--pv-agent-bd:1px solid #d5dbe3;--pv-fab-r:8px;--pv-send-r:4px;--pv-win-r:8px}
.tplpv32av[data-tpl32av="minimal"]{--pv-bg:#fff;--pv-head-line:1px solid #e5e7eb;--pv-r:14px;--pv-in-r:10px;--pv-agent-bd:1px solid #e5e7eb;--pv-visitor-bg:#eef2f7;--pv-visitor-fg:#111827;--pv-fab-bg:#fff;--pv-fab-fg:var(--pv-brand,#155eef);--pv-fab-bd:2px solid var(--pv-brand,#155eef);--pv-send-r:10px;--pv-win-r:10px}
