/* REBOTA — "Chat with Rebota" visitor widget (rank 9a, M8). Self-contained: public pages
   do not load the app's CSS, so the tokens v2 colours are written here as values. */
.rbw-btn,.rbw-panel{--w-brand:#1263D1;--w-press:#0F55B5;--w-ink:#0B1220;--w-muted:#4B5563;--w-line:#E3E8EF;--w-card:#fff;--w-bg:#EEF2F7;--w-soft:#EAF2FE;--w-warn:#92400E;--w-warn-bg:#FEF3E2;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rbw-btn,:root:not([data-theme="light"]) .rbw-panel{--w-ink:#F3F4F6;--w-muted:#C2C7D0;--w-line:#2E2E2E;--w-card:#161616;--w-bg:#0D0D0D;--w-soft:#10233D;--w-warn:#FBBF24;--w-warn-bg:#2A2010}}
:root[data-theme="dark"] .rbw-btn,:root[data-theme="dark"] .rbw-panel{--w-ink:#F3F4F6;--w-muted:#C2C7D0;--w-line:#2E2E2E;--w-card:#161616;--w-bg:#0D0D0D;--w-soft:#10233D;--w-warn:#FBBF24;--w-warn-bg:#2A2010}
.rbw-btn{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:900;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--w-brand);color:#fff;font-size:15px;font-weight:600;box-shadow:0 8px 24px rgba(16,24,40,.22);cursor:pointer}
.rbw-btn:hover{background:var(--w-press)}
.rbw-btn:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--w-brand)}
.rbw-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.rbw-btn.on span{display:none}.rbw-btn.on{padding:0 14px}
.rbw-dot{position:absolute;top:6px;right:8px;width:10px;height:10px;border-radius:50%;background:#E5484D;border:2px solid #fff}
.rbw-dot[hidden]{display:none}
.rbw-panel{position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:901;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100dvh - 110px));display:flex;flex-direction:column;background:var(--w-card);color:var(--w-ink);border:1px solid var(--w-line);border-radius:18px;box-shadow:0 16px 40px rgba(16,24,40,.24);overflow:hidden}
.rbw-panel[hidden]{display:none}
.rbw-head{display:flex;align-items:center;gap:10px;padding:12px 10px 12px 14px;background:var(--w-brand);color:#fff}
.rbw-head b{display:block;font-size:15px}.rbw-head small{display:block;font-size:12.5px;opacity:.9}
.rbw-av{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.rbw-av svg{width:22px;height:22px;fill:#fff}
.rbw-tag{font-size:10.5px;font-weight:700;background:rgba(255,255,255,.2);border-radius:999px;padding:1px 6px;margin-left:4px;vertical-align:1px}
.rbw-grow{flex:1;min-width:0}
.rbw-x{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:18px;cursor:pointer}
.rbw-x:hover{background:rgba(255,255,255,.15)}
.rbw-body{flex:1;overflow-y:auto;padding:12px;background:var(--w-bg);display:flex;flex-direction:column;gap:6px}
.rbw-safety{align-self:center;margin:0 0 4px;font-size:12px;color:var(--w-warn);background:var(--w-warn-bg);padding:6px 10px;border-radius:10px;text-align:center}
.rbw-note{margin:4px 0;font-size:14px;line-height:1.5;color:var(--w-ink)}
.rbw-sys{align-self:center;margin:2px 0;font-size:12.5px;color:var(--w-muted);text-align:center}
.rbw-msg{display:flex;max-width:85%}.rbw-msg.me{align-self:flex-end}
.rbw-bub{background:var(--w-card);border-radius:16px 16px 16px 5px;padding:8px 12px;font-size:14.5px;line-height:1.4;overflow-wrap:anywhere;box-shadow:0 1px 1px rgba(16,24,40,.08)}
.rbw-bub b{display:block;font-size:12px;color:var(--w-brand)}
.rbw-msg.me .rbw-bub{background:var(--w-brand);color:#fff;border-radius:16px 16px 5px 16px}
.rbw-msg.me .rbw-bub a{color:#fff}
.rbw-bub small{display:block;text-align:right;font-size:11px;opacity:.75;margin-top:2px}
.rbw-foot{border-top:1px solid var(--w-line);padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--w-card);overflow-y:auto;max-height:65%}
.rbw-form{display:grid;gap:8px}
.rbw-form label>span{display:block;font-size:12.5px;font-weight:600;color:var(--w-muted);margin-bottom:3px}
.rbw-form input:not([type=checkbox]),.rbw-form textarea,.rbw-compose textarea{width:100%;box-sizing:border-box;border:1.5px solid var(--w-line);border-radius:10px;padding:9px 11px;font:inherit;font-size:15px;color:var(--w-ink);background:var(--w-card)}
.rbw-form input:focus,.rbw-form textarea:focus,.rbw-compose textarea:focus{outline:none;border-color:var(--w-brand)}
.rbw-consent{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--w-muted);line-height:1.45}
.rbw-consent input{margin-top:2px;width:18px;height:18px;accent-color:var(--w-brand);flex:0 0 auto}
.rbw-consent a{color:var(--w-brand)}
.rbw-primary{display:flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:10px;background:var(--w-brand);color:#fff;font-weight:600;font-size:15px;text-decoration:none;cursor:pointer;width:100%}
.rbw-primary:disabled{opacity:.6}
.rbw-err{margin:0;font-size:13px;color:#B42318}.rbw-err[hidden]{display:none}
.rbw-compose{display:flex;gap:8px;align-items:flex-end}
.rbw-compose textarea{border-radius:20px;resize:none;min-height:42px;max-height:120px}
.rbw-compose button{width:42px;height:42px;border:0;border-radius:50%;background:var(--w-brand);color:#fff;flex:0 0 auto;cursor:pointer;display:flex;align-items:center;justify-content:center}
.rbw-compose button svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rbw-small{margin:6px 0 0;font-size:12.5px;color:var(--w-muted)}.rbw-small a{color:var(--w-brand)}
@media (max-width:480px){.rbw-panel{right:8px;left:8px;width:auto;bottom:calc(72px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 96px)}.rbw-btn{right:12px}}
/* 1 Nov 2026: opened from a page's own icon ([data-rb-chat]), so no floating button sits under the panel. */
.rbw-panel.rbw-solo{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
@media (max-width:480px){.rbw-panel.rbw-solo{bottom:calc(8px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 16px)}}
/* 1 Nov 2026 (owner): the first screen is just the three fields, so the panel fits them. */
.rbw-panel.rbw-start{height:auto}
.rbw-panel.rbw-start .rbw-body{display:none}
.rbw-panel.rbw-start .rbw-foot{border-top:0;max-height:none}
.rbw-head .rbw-grow b{font-size:16px}
@media (max-width:480px){.rbw-panel.rbw-solo.rbw-start{height:auto}}
/* 1 Nov 2026 (owner): sample questions on the first screen; a tap fills the message. */
.rbw-qs{display:flex;flex-wrap:wrap;gap:6px}
.rbw-q{min-height:34px;padding:6px 12px;border:1px solid var(--w-line);border-radius:999px;background:var(--w-soft);color:var(--w-ink);font:inherit;font-size:13px;line-height:1.25;text-align:left;cursor:pointer}
.rbw-q:hover,.rbw-q.on{border-color:var(--w-brand)}
.rbw-q:focus-visible{outline:2px solid var(--w-brand);outline-offset:1px}
.rbw-panel.rbw-start{max-height:calc(100dvh - 16px)}
.rbw-panel.rbw-start .rbw-foot{flex:1;min-height:0}
/* 1 Nov 2026 (owner): mobile number field in the style of the header's "Log in" button: 10px corners, 1.5px bright blue outline, no fill, bold blue text. */
.rbw-panel{--w-log:#1263D1}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .rbw-panel{--w-log:#7DB3FF}}
:root[data-theme="dark"] .rbw-panel{--w-log:#7DB3FF}
.rbw-form input[name="contact"]{border:1.5px solid #3B8BFF;border-radius:10px;background:transparent;color:var(--w-log);font-weight:700;caret-color:var(--w-log)}
.rbw-form input[name="contact"]:hover,.rbw-form input[name="contact"]:focus{border-color:#7DB3FF;background:rgba(59,139,255,.12)}
