/* Mr. PlayRight floating helper — compact so a later site redesign can restyle it. */
.mpr-root{position:fixed;z-index:9400;right:max(12px,env(safe-area-inset-right));
  bottom:max(16px,env(safe-area-inset-bottom));font-family:inherit;line-height:1.4}
.mpr-root[hidden]{display:none!important}
.mpr-root *,.mpr-root *::before,.mpr-root *::after{box-sizing:border-box}
.mpr-bot{position:relative;width:56px;height:56px;padding:0;border:0;border-radius:50%;
  background:#4c1d95;box-shadow:0 8px 22px rgba(76,29,149,.35);cursor:pointer;display:grid;place-items:center;
  overflow:visible}
.mpr-bot img{width:40px;height:46px;object-fit:contain;pointer-events:none;transform:translateY(1px)}
.mpr-bot:focus-visible{outline:3px solid #c4b5fd;outline-offset:3px}
.mpr-ring{position:absolute;inset:-4px;border-radius:50%;border:2px solid #a78bfa;opacity:0;pointer-events:none}
.mpr-root.is-talking .mpr-ring,.mpr-root.is-listen .mpr-ring{opacity:1;animation:mpr-pulse 1.1s ease-in-out infinite}
.mpr-root.is-talking .mpr-bot img{animation:mpr-bob .45s ease-in-out infinite alternate}
@keyframes mpr-pulse{0%,100%{transform:scale(.92);opacity:.35}50%{transform:scale(1.08);opacity:1}}
@keyframes mpr-bob{from{transform:translateY(1px)}to{transform:translateY(-2px)}}
.mpr-hint{position:absolute;right:64px;bottom:10px;background:#1e1b4b;color:#fff;font-size:12px;font-weight:600;
  padding:6px 10px;border-radius:12px;white-space:nowrap;box-shadow:0 6px 16px rgba(15,23,42,.2);pointer-events:none}
.mpr-hint::after{content:"";position:absolute;right:-5px;bottom:12px;border:6px solid transparent;border-left-color:#1e1b4b;border-right:0}
.mpr-panel{position:absolute;right:0;bottom:68px;width:min(360px,calc(100vw - 24px));max-height:min(70vh,520px);
  background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 18px 50px rgba(15,23,42,.22);
  display:flex;flex-direction:column;overflow:hidden}
.mpr-panel[hidden]{display:none!important}
.mpr-head{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#4c1d95;color:#fff;font-size:14px}
.mpr-head b{flex:0 0 auto}
.mpr-status{flex:1;font-size:12px;opacity:.85;font-weight:500}
.mpr-icon{background:transparent;border:0;color:#fff;font-size:12px;cursor:pointer;padding:4px 6px;opacity:.9}
.mpr-icon[aria-pressed="true"]{opacity:1;text-decoration:underline}
.mpr-log{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#f8fafc;min-height:120px}
.mpr-msg{max-width:92%;padding:8px 10px;border-radius:12px;font-size:14px}
.mpr-msg.you{align-self:flex-end;background:#4c1d95;color:#fff}
.mpr-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e2e8f0}
.mpr-form{display:flex;gap:6px;padding:8px 10px;border-top:1px solid #e2e8f0}
.mpr-form input{flex:1;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font:inherit;font-size:14px}
.mpr-send,.mpr-talk,.mpr-stop,.mpr-handoff button{border:0;border-radius:10px;padding:8px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;background:#4c1d95;color:#fff}
.mpr-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 10px 10px}
.mpr-stop{background:#9f1239}
.mpr-link{font-size:12px;font-weight:600;color:#5b21b6;margin-left:auto}
.mpr-handoff{padding:0 10px 10px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.mpr-handoff[hidden]{display:none!important}
.mpr-handoff input,.mpr-handoff textarea{border:1px solid #cbd5e1;border-radius:8px;padding:7px 8px;font:inherit}
.mpr-hp{position:absolute;left:-9999px;height:0;width:0;opacity:0}
.mpr-thanks{color:#166534;font-weight:600}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Demo / tour: sit below the header, never on the control bar. */
.mpr-root.mpr-demo,
body.tour-body .mpr-root,
body.has-tour-bar .mpr-root,
body:has(#tour-bar) .mpr-root,
body:has(.tour-bar) .mpr-root,
body:has(.fs-sticky) .mpr-root{
  right:max(12px,env(safe-area-inset-right));
  bottom:auto;
  top:118px;
}
.mpr-root.mpr-demo .mpr-panel,
body.tour-body .mpr-panel,
body.has-tour-bar .mpr-panel,
body:has(#tour-bar) .mpr-panel,
body:has(.tour-bar) .mpr-panel,
body:has(.fs-sticky) .mpr-panel{
  bottom:auto; top:68px;
}
@media (max-width:640px){
  .mpr-root.mpr-demo,
  body.tour-body .mpr-root,
  body.has-tour-bar .mpr-root,
  body:has(#tour-bar) .mpr-root,
  body:has(.tour-bar) .mpr-root,
  body:has(.fs-sticky) .mpr-root{ top:168px; }
}
@media (max-width:480px){
  .mpr-bot{width:56px;height:56px}
  .mpr-panel{width:min(100vw - 16px, 360px)}
}
