/* widgets.css
   Floating buttons, chat assistant, modal, cookie banner, toast, client dashboard, key-value rows, map placeholder. */
/* floating */
.float{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:55;display:flex;flex-direction:column;gap:12px;align-items:flex-end}
.fab{width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.3);text-decoration:none}
.fab.wa{background:var(--wa);color:var(--brand)}
.fab.ai{background:var(--gold);color:var(--brand)}
.mbar{display:none}
/* chat */
.chat{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(88px + env(safe-area-inset-bottom,0px));width:380px;max-width:calc(100vw - 32px);height:min(560px,calc(100vh - 140px));background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);z-index:80;display:none;flex-direction:column;overflow:hidden}
.chat.open{display:flex}
.chat-h{background:var(--brand);color:#fff;padding:14px 16px;display:flex;gap:10px;align-items:center}
.chat-h b{font-family:var(--font-display)}
.chat-h small{display:block;color:var(--gold-light);font-size:12px}
.chat-h .x{margin-left:auto;background:none;border:0;color:#fff;cursor:pointer;padding:8px}
.chat-b{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--bg)}
.msg{max-width:86%;padding:10px 14px;border-radius:14px;font-size:15px;line-height:1.5}
.msg.bot{background:var(--surface);border:1px solid var(--line);align-self:flex-start;border-bottom-left-radius:4px}
.msg.me{background:var(--brand);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.msg a{font-weight:600}
.qr{display:flex;gap:6px;flex-wrap:wrap}
.qr button{border:1px solid var(--gold);background:var(--surface);color:var(--text);border-radius:999px;padding:7px 12px;font:500 13px var(--font-body);cursor:pointer;min-height:36px}
.chat-f{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--surface)}
.chat-f input{border-radius:999px}
.chat-f button{flex:none}
.chat-n{font-size:11px;color:var(--soft);text-align:center;padding:0 10px 8px;background:var(--surface)}
/* modal */
.mask{position:fixed;inset:0;background:rgba(20,12,30,.6);z-index:90;display:none;align-items:flex-start;justify-content:center;padding:calc(24px + env(safe-area-inset-top,0px)) 16px 24px;overflow-y:auto}
.mask.open{display:flex}
.modal{background:var(--surface);color:var(--text);border-radius:18px;max-width:680px;width:100%;padding:28px;box-shadow:var(--shadow);position:relative;margin:auto}
.modal .close{position:absolute;right:12px;top:12px}
.modal h2{padding-right:44px}
.steps{display:flex;gap:6px;margin:6px 0 18px}
.steps i{flex:1;height:6px;border-radius:4px;background:var(--line)}
.steps i.on{background:var(--gold)}
.cookie{position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));max-width:720px;margin:0 auto;background:var(--brand);color:#fff;border:1px solid var(--gold-light);border-radius:16px;padding:18px 20px;z-index:85;display:none;gap:16px;align-items:center;flex-wrap:wrap}
.cookie.open{display:flex}
.cookie p{margin:0;flex:1;min-width:240px;font-size:14px;color:#DCD5E8}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(96px + env(safe-area-inset-bottom,0px));background:var(--success);color:#fff;padding:12px 20px;border-radius:12px;z-index:120;display:none;max-width:90vw}
.toast.on{display:block}
.dash{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:15px}
.kv:last-child{border:0}
.mapbox{border-radius:var(--radius);border:1px solid var(--line);background:var(--tint);min-height:240px;display:flex;align-items:center;justify-content:center;color:var(--soft);text-align:center;padding:20px}
.ph{border:1px dashed var(--gold);border-radius:12px;padding:14px;color:var(--soft);text-align:center;font-size:14px}
