/* Shoobook demo controls for the Rillstone Plumbing demo. Written by scripts/postprocess-plumbing-demo.mjs (do not edit).
   The phone behaviour (compact icons that step aside over anything tappable) is in /demos/dental-v2/_demo/sbdemo-float.css. */
a.sbdemo-back{position:fixed;z-index:1200;left:calc(24px + env(safe-area-inset-left,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;justify-content:center;gap:.45rem;box-sizing:border-box;min-height:44px;min-width:44px;margin:0;padding:0 .95rem 0 .75rem;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#0d1d6e;color:#fff;font:700 14px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;box-shadow:0 4px 14px rgba(13,29,110,.24);transition:background-color .15s ease,box-shadow .15s ease}
a.sbdemo-back:hover{background:#13299a;color:#fff;text-decoration:none;box-shadow:0 6px 18px rgba(13,29,110,.32)}
a.sbdemo-back:focus{outline:none}
a.sbdemo-back:focus-visible{outline:3px solid #ffc531;outline-offset:2px}
.sbdemo-back__icon{flex:none;width:18px;height:18px}
/* Desktop: the controls are always shown (the phone guard is phone-only), so the page ends with clear space under the
   footers and their last row (the footer's own Back to Shoobook link) is never under them. Phones already keep 80 px. */
@media (min-width:782px){footer.ftr::after,footer.opsf::after{content:"";display:block;height:72px}}
@media (max-width:781px){
  a.sbdemo-back{left:calc(12px + env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  body:has(.sbchat--open) a.sbdemo-back,body:has(.sbchat--page-field) a.sbdemo-back{display:none}
}
@media (prefers-reduced-motion:reduce){a.sbdemo-back{transition:none}}
@media print{a.sbdemo-back,.sbchat-launcher,.sbchat{display:none!important}}
