/* RC-V15-12.5e (Forge): sticky "Calculate trip cost" bar on phones (Alexandr's request).
   Off switch: <html data-sticky-calc="off"> or STICKY_CALC=false in sticky-calc.js, or drop the two tags.
   No CLS: position:fixed, appears only via opacity/transform; never moves in-flow content. */
.rc-stickycalc{display:none}
@media (max-width:720px){
html[data-theme] .rc-stickycalc{display:block;position:fixed;z-index:89;left:12px;right:12px;
  bottom:calc(var(--rc-sc-nav,calc(72px + env(safe-area-inset-bottom))) + 8px);
  opacity:0;transform:translateY(12px);visibility:hidden;pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
html[data-theme] .rc-stickycalc.is-on{opacity:1;transform:none;visibility:visible;pointer-events:auto;
  transition:opacity .18s ease,transform .18s ease,visibility 0s}
html[data-theme] .rc-stickycalc>button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  min-height:52px;margin:0;padding:12px 17px;border:0;border-radius:12px;cursor:pointer;
  font:inherit;font-size:16px;font-weight:760;letter-spacing:.02em;line-height:1.2;
  background:#ff6a3d;color:#0b1220;box-shadow:0 8px 24px rgba(16,40,66,.22);
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
html[data-theme=dark] .rc-stickycalc>button{box-shadow:0 8px 28px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08)}
html[data-theme] .rc-stickycalc>button:focus-visible{outline:3px solid #0b1220;outline-offset:3px}
html[data-theme=dark] .rc-stickycalc>button:focus-visible{outline-color:#f0f5fc}
html[data-theme] .rc-stickycalc>button:disabled{opacity:.6;cursor:progress}
}
/* 12.5e.1: sticky tap scrolls the total card to the top (html scroll-padding-top already clears the app bar); scroll-margin = no layout effect */
@media (max-width:720px){html[data-sticky-calc=on] .res[data-example]{scroll-margin-top:8px}}
@media (prefers-reduced-motion:reduce){html[data-theme] .rc-stickycalc,html[data-theme] .rc-stickycalc.is-on{transition:none;transform:none}}
@media print{.rc-stickycalc{display:none!important}}
