/* Floating chat bubble widget — shared by insuredwithchris.com and watersavingswithchris.com.
 * All classes are prefixed with cb- to avoid collisions with site CSS.
 * Colors are driven by CSS variables set from the script tag's data attributes.
 * No emojis anywhere in this UI (owner rule). */
:root{
  --cb-accent:#c9a227;
  --cb-accent-2:#0b2447;
  --cb-header-bg:#0b2447;
}
#cb-root{position:fixed;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;}
#cb-bubble{
  position:fixed;right:22px;bottom:96px;width:64px;height:64px;border-radius:50%;
  border:3px solid #fff;cursor:pointer;display:block;padding:0;overflow:hidden;
  background:#fff;
  box-shadow:0 6px 24px rgba(0,0,0,.35);transition:transform .15s ease;
}
#cb-bubble:hover{transform:scale(1.06);}
#cb-bubble:focus-visible{outline:3px solid var(--cb-accent);outline-offset:2px;}
#cb-bubble img{width:100%;height:100%;object-fit:cover;object-position:center 18%;display:block;}
#cb-bubble .cb-dot{
  position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;
  background:#22c55e;border:2px solid #fff;
}
#cb-nudge{
  position:fixed;right:96px;bottom:100px;max-width:270px;
  background:#fff;border-radius:16px;box-shadow:0 8px 28px rgba(0,0,0,.28);
  display:none;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;
  border:1px solid #e3e8f0;
  opacity:0;transform:translateX(16px);transition:opacity .3s ease,transform .3s ease;
}
#cb-nudge.cb-show{display:flex;opacity:1;transform:translateX(0);}
#cb-nudge img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:center 18%;flex:none;}
#cb-nudge .cb-nudge-text{display:flex;flex-direction:column;font-size:.82rem;line-height:1.3;color:#1c2333;}
#cb-nudge .cb-nudge-text strong{font-size:.86rem;}
#cb-nudge-x{background:transparent;border:none;color:#8a94a6;font-size:1.2rem;cursor:pointer;line-height:1;padding:2px 4px;flex:none;}
#cb-panel{
  position:fixed;right:22px;bottom:168px;width:360px;max-width:calc(100vw - 44px);
  height:480px;max-height:calc(100vh - 200px);
  background:#fff;border-radius:18px;overflow:hidden;display:none;flex-direction:column;
  box-shadow:0 16px 60px rgba(0,0,0,.35);border:1px solid rgba(0,0,0,.08);
}
#cb-panel.cb-open{display:flex;}
#cb-head{
  background:var(--cb-header-bg);color:#fff;padding:14px 16px;display:flex;
  align-items:center;justify-content:space-between;gap:8px;flex:none;
}
#cb-head .cb-title{font-weight:800;font-size:1rem;line-height:1.2;}
#cb-head .cb-sub{font-size:.75rem;opacity:.75;font-weight:400;}
#cb-close{background:transparent;border:none;color:#fff;font-size:1.4rem;cursor:pointer;line-height:1;padding:4px 8px;}
#cb-compliance{
  flex:none;background:#fff8e1;color:#5d4a00;font-size:.68rem;line-height:1.35;
  padding:8px 14px;border-bottom:1px solid #f0e6c8;
}
#cb-compliance a{color:#0b5fff;}
#cb-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#f7f9fc;}
#cb-empty{color:#8a94a6;font-size:.85rem;text-align:center;margin:auto;}
#cb-offline{color:#8a94a6;font-size:.85rem;text-align:center;margin:auto;line-height:1.5;}
#cb-offline a{color:#0b5fff;font-weight:700;}
.cb-msg{max-width:85%;padding:9px 13px;border-radius:14px;background:#fff;border:1px solid #e3e8f0;font-size:.88rem;line-height:1.4;box-shadow:0 1px 3px rgba(0,0,0,.05);}
.cb-msg .cb-nick{font-size:.68rem;font-weight:800;color:#6b7688;margin-bottom:2px;}
.cb-msg .cb-time{font-size:.62rem;color:#a5adbb;margin-left:6px;font-weight:400;}
.cb-msg.cb-own{align-self:flex-end;background:var(--cb-accent-2);color:#fff;border-color:transparent;}
.cb-msg.cb-own .cb-nick{color:#fff;opacity:.8;}
.cb-msg.cb-own .cb-time{color:#fff;opacity:.6;}
.cb-msg.cb-einstein{border-color:var(--cb-accent);box-shadow:0 0 10px rgba(201,162,39,.25);}
.cb-msg.cb-einstein .cb-nick{color:var(--cb-accent-2);}
#cb-warn{flex:none;min-height:0;color:#b3261e;font-size:.75rem;padding:0 14px;}
#cb-nickrow{flex:none;display:flex;gap:8px;padding:10px 14px 0;}
#cb-nick{
  flex:1;padding:9px 12px;border-radius:10px;border:1px solid #d4dae3;font-size:.85rem;
  background:#fff;color:#111;
}
#cb-nicksave{
  padding:9px 14px;border-radius:10px;border:none;cursor:pointer;font-weight:700;
  background:var(--cb-accent-2);color:#fff;font-size:.85rem;white-space:nowrap;
}
#cb-inputrow{flex:none;display:flex;gap:8px;padding:10px 14px 14px;}
#cb-input{
  flex:1;padding:10px 12px;border-radius:10px;border:1px solid #d4dae3;font-size:.9rem;
  background:#fff;color:#111;
}
#cb-send{
  padding:10px 18px;border-radius:10px;border:none;cursor:pointer;font-weight:800;
  background:linear-gradient(135deg,var(--cb-accent-2),var(--cb-accent));color:#fff;font-size:.9rem;
}
#cb-send:disabled{opacity:.5;cursor:default;}
@media (max-width:759px){
  /* Clear the mobile sticky call/text/book bar on the insurance site */
  #cb-bubble{bottom:150px;right:16px;width:56px;height:56px;}
  #cb-panel{right:16px;bottom:218px;}
}
