/* Grand Bell chat bubble (customer support + staff assistant). Scoped to #gb-chat-root. */
#gb-chat-root{--gbc-navy:#0b2340;--gbc-blue:#35a9e8;--gbc-gold:#f4b828;--gbc-bg:#fff;--gbc-ink:#152c45;--gbc-muted:#64758a;--gbc-line:#dce6ef;--gbc-soft:#f4f8fb;--gbc-me:#0b2340;--gbc-me-ink:#fff;--gbc-bot:#eef4f9;--gbc-accent:#f4b828;--gbc-accent-ink:#0b2340;
  font-family:inherit;font-size:15px;line-height:1.45;color:var(--gbc-ink)}
#gb-chat-root[data-mode="admin"]{--gbc-navy:var(--brand,#111);--gbc-bg:var(--panel,#fff);--gbc-ink:var(--ink,#111);--gbc-muted:var(--muted,#5f5f5f);--gbc-line:var(--line,#d7d7d7);--gbc-soft:var(--soft,#f0f0f0);--gbc-me:var(--brand,#111);--gbc-me-ink:var(--on,#fff);--gbc-bot:var(--soft,#f0f0f0);--gbc-accent:var(--brand,#111);--gbc-accent-ink:var(--on,#fff)}
#gb-chat-root *{box-sizing:border-box}
#gb-chat-root [hidden]{display:none!important}

.gbc-dock{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:90;display:flex;align-items:center}
.gbc-launch{display:inline-flex;align-items:center;gap:9px;min-height:52px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--gbc-navy);color:#fff;font:inherit;font-weight:700;box-shadow:0 10px 30px rgba(11,35,64,.35);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
#gb-chat-root[data-mode="admin"] .gbc-launch{color:var(--on,#fff)}
.gbc-launch:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(11,35,64,.4)}
.gbc-launch:focus-visible,.gbc-x:focus-visible,.gbc-chip:focus-visible,.gbc-btn:focus-visible,.gbc-send:focus-visible,.gbc-head-b:focus-visible{outline:3px solid var(--gbc-gold);outline-offset:2px}
.gbc-launch svg{flex:none;color:var(--gbc-gold)}
#gb-chat-root[data-mode="admin"] .gbc-launch svg{color:currentColor}
/* the small x that floats on the corner of the bubble: it hides the bubble */
.gbc-x{position:absolute;top:-7px;left:-7px;width:24px;height:24px;padding:0;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#51647a;color:#fff;font-size:15px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.28)}
.gbc-x:hover{background:#c0392b}
.gbc-dock.is-open .gbc-launch{box-shadow:0 6px 18px rgba(11,35,64,.25)}

.gbc-panel{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(max(16px,env(safe-area-inset-bottom)) + 66px);z-index:91;width:min(390px,calc(100vw - 24px));height:min(580px,calc(100vh - 110px));display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--gbc-line);border-radius:20px;background:var(--gbc-bg);box-shadow:0 24px 70px rgba(11,35,64,.3);animation:gbc-in .18s ease-out}
@keyframes gbc-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.gbc-head{display:flex;align-items:center;gap:11px;padding:14px 14px 14px 16px;background:var(--gbc-navy);color:#fff}
#gb-chat-root[data-mode="admin"] .gbc-head{color:var(--on,#fff)}
.gbc-av{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--gbc-gold);color:#0b2340;font-weight:800;font-size:17px}
#gb-chat-root[data-mode="admin"] .gbc-av{background:var(--on,#fff);color:var(--brand,#111)}
.gbc-head-t{flex:1;min-width:0;display:flex;flex-direction:column}
.gbc-head-t strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gbc-head-t small{font-size:12px;opacity:.82}
.gbc-head-b{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:inherit;font-size:18px;cursor:pointer}
.gbc-head-b:hover{background:rgba(255,255,255,.28)}

.gbc-log{flex:1;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:9px;background:var(--gbc-bg);scroll-behavior:smooth}
.gbc-m{max-width:86%;padding:10px 13px;border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14.5px}
.gbc-bot{align-self:flex-start;background:var(--gbc-bot);color:var(--gbc-ink);border-bottom-left-radius:5px}
.gbc-me{align-self:flex-end;background:var(--gbc-me);color:var(--gbc-me-ink);border-bottom-right-radius:5px}
.gbc-m a{color:inherit;text-decoration:underline;font-weight:700}
.gbc-typing{display:flex;gap:4px;padding:13px 14px}
.gbc-typing i{width:7px;height:7px;border-radius:50%;background:var(--gbc-muted);opacity:.5;animation:gbc-dot 1.1s infinite ease-in-out}
.gbc-typing i:nth-child(2){animation-delay:.15s}.gbc-typing i:nth-child(3){animation-delay:.3s}
@keyframes gbc-dot{0%,80%,100%{transform:translateY(0);opacity:.4}40%{transform:translateY(-4px);opacity:1}}

.gbc-chips{display:flex;flex-wrap:wrap;gap:7px;padding:2px 14px 12px;background:var(--gbc-bg)}
.gbc-chip{padding:8px 12px;border:1px solid var(--gbc-line);border-radius:999px;background:var(--gbc-bg);color:var(--gbc-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none}
.gbc-chip:hover{border-color:var(--gbc-blue);background:var(--gbc-soft);text-decoration:none}
.gbc-chip-wa{border-color:#25a779;color:#13654c}

.gbc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--gbc-line);background:var(--gbc-bg)}
.gbc-in{flex:1;min-height:42px;max-height:110px;padding:10px 12px;border:1px solid var(--gbc-line);border-radius:14px;background:var(--gbc-soft);color:var(--gbc-ink);font:inherit;font-size:15px;resize:none;outline:none}
.gbc-in:focus{border-color:var(--gbc-blue);box-shadow:0 0 0 3px rgba(53,169,232,.18)}
.gbc-send{flex:none;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;background:var(--gbc-accent);color:var(--gbc-accent-ink);cursor:pointer}
.gbc-send:disabled{opacity:.5;cursor:not-allowed}
.gbc-foot{display:flex;flex-direction:column;gap:3px;padding:7px 14px 11px;border-top:1px solid var(--gbc-line);background:var(--gbc-bg);color:var(--gbc-muted);font-size:11.5px}
.gbc-human{align-self:flex-start;font-weight:700;color:#13654c;text-decoration:underline}

.gbc-action{align-self:stretch;padding:12px 13px;border:1px solid var(--gbc-line);border-left:4px solid var(--gbc-gold);border-radius:12px;background:var(--gbc-soft)}
.gbc-action-t{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--gbc-muted)}
.gbc-action-s{margin:6px 0 10px;font-weight:600;overflow-wrap:anywhere}
.gbc-action-r{display:flex;gap:8px}
.gbc-btn{padding:8px 14px;border:1px solid var(--gbc-line);border-radius:999px;background:var(--gbc-bg);color:var(--gbc-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.gbc-btn-ok{border-color:transparent;background:var(--gbc-accent);color:var(--gbc-accent-ink)}
.gbc-btn:disabled{opacity:.55;cursor:not-allowed}
.gbc-action-d{font-size:13px;font-weight:700;color:#a12626}.gbc-action-d.is-ok{color:#1f6f3d}

.gbc-note{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:92;max-width:min(340px,calc(100vw - 32px));padding:12px 14px;border-radius:14px;background:#0b2340;color:#fff;font-size:13px;box-shadow:0 12px 34px rgba(0,0,0,.3)}

@media (max-width:480px){
  .gbc-launch-t{display:none}
  .gbc-launch{width:56px;height:56px;padding:0;justify-content:center}
  .gbc-panel{right:8px;left:8px;width:auto;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 70px);height:min(78vh,560px)}
}
@media print{#gb-chat-root{display:none}}
@media (prefers-reduced-motion:reduce){.gbc-panel,.gbc-launch,.gbc-typing i{animation:none!important;transition:none!important}.gbc-log{scroll-behavior:auto}}

/* v18: direct-link buttons under an answer */
.gbc-links{align-self:stretch;display:flex;flex-wrap:wrap;gap:8px}
.gbc-link{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--gbc-line);background:var(--gbc-soft);color:inherit;font-weight:700;font-size:14px;text-decoration:none}
.gbc-link:hover,.gbc-link:focus-visible{border-color:var(--gbc-gold);outline:none}
