/* step36: Chairside floating chat bubble (bottom-right). Holds the step33 Message box (same ids, same sending). */
.cb36{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:1200;font-family:inherit}
.cb36-fab{width:64px;height:64px;border-radius:50%;border:0;background:#1E88E5;color:#fff;box-shadow:0 8px 24px rgba(11,37,69,.28),0 2px 6px rgba(11,37,69,.18);cursor:pointer;display:flex;align-items:center;justify-content:center;position:relative;transition:transform .15s,background .15s}
.cb36-fab:hover{transform:scale(1.05);background:#1976D2}.cb36-fab:focus-visible{outline:3px solid #90CAF9;outline-offset:3px}.cb36-fab svg{width:30px;height:30px}
.cb36-fab .cb36-x{display:none;font-size:28px;line-height:1}.cb36.open .cb36-fab .cb36-x{display:block}.cb36.open .cb36-fab svg{display:none}
.cb36-badge{position:absolute;top:-4px;right:-4px;min-width:24px;height:24px;padding:0 6px;border-radius:12px;background:#E53935;color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-sizing:border-box}
.cb36-badge[hidden]{display:none}
body.t33 .cb36 .m33-msg.cb36-panel{position:absolute;right:0;bottom:78px;width:360px;max-width:calc(100vw - 40px);max-height:calc(100vh - 120px);overflow:auto;box-sizing:border-box;margin:0;padding:0 16px 16px;border-radius:20px;background:#fff;color:#14213D;box-shadow:0 18px 50px rgba(11,37,69,.28),0 2px 8px rgba(11,37,69,.12);display:block}
body.t33 .cb36 .m33-msg.cb36-panel[hidden]{display:none}
.cb36-head{display:flex;align-items:center;justify-content:space-between;margin:0 -16px 12px;padding:14px 16px;background:#1E88E5;color:#fff;border-radius:20px 20px 0 0;position:sticky;top:0;z-index:1}
body.t33 .cb36 .m33-msg .m33-msgh{display:block;color:#fff;font-size:18px;margin:0}
.cb36-close{border:0;background:rgba(255,255,255,.2);color:#fff;width:44px;height:44px;border-radius:50%;font-size:18px;cursor:pointer}
body.t33 .cb36 .m33-seg{background:#EEF4FB;border:1px solid #CFE3F7}body.t33 .cb36 .m33-seg button{color:#0D47A1;min-height:48px;font-size:16px}body.t33 .cb36 .m33-seg button.on{background:#1E88E5;color:#fff}
body.t33 .cb36 .m33-lbl{position:static;width:auto;height:auto;clip:auto;display:block;font-weight:700;font-size:14px;color:#41556B;margin:4px 0 4px}
body.t33 .cb36 .m33-msg select,body.t33 .cb36 .m33-msg textarea{border:1px solid #CFE3F7;min-height:50px;font-size:16px;color:#14213D;background:#fff}
body.t33 .cb36 .m33-msg textarea{min-height:90px}
body.t33 .cb36 .m33-msg .m33-send1,body.t33 .cb36 .m33-msg .m33-sendall{min-height:54px;font-size:17px}
body.t33 .cb36 .m33-msg .m33-send1{background:#1E88E5;color:#fff}body.t33 .cb36 .m33-msg .m33-sendall{background:#fff;color:#0D47A1;border:2px solid #CFE3F7}
body.t33 .cb36 .m33-out.ok{color:#14532D}body.t33 .cb36 .m33-out.bad{color:#8E1B1B}
body.t33 .cb36 .m33-call{display:block;margin-top:12px;color:#0D47A1!important;text-decoration:none;font-size:15px;font-weight:700;text-align:center}
@media (max-width:640px){
  .cb36{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}
  body.t33 .cb36 .m33-msg.cb36-panel{position:fixed;inset:0;width:auto;max-width:none;max-height:none;height:100%;border-radius:0;padding:0 18px calc(18px + env(safe-area-inset-bottom))}
  .cb36-head{border-radius:0;padding-top:max(14px,env(safe-area-inset-top))}
  .cb36.open .cb36-fab{display:none}
  body.cb36-lock{overflow:hidden}
}
/* the driver toast (routes-pwa .rt-opop) spans the bottom edge: let taps through its empty strip and sit it above the bubble */
.rt-opop{pointer-events:none}.rt-opop>div{pointer-events:auto}
body:has(#cb36) .rt-opop{bottom:96px}
@media (max-width:640px){body.cb36-lock .rt-opop{display:none}}
