/* Back to top stays on the left; the cart keeps the right corner. */
.footer-bottom a.back-to-top{
  position:fixed;z-index:94;left:26px;right:auto;bottom:calc(26px + env(safe-area-inset-bottom,0px));
  display:grid;place-items:center;width:44px;height:44px;min-height:44px;
  padding:0;border:0;border-radius:50%;background:transparent;color:#7c7c7c;
  box-shadow:none;text-decoration:none;
  transition:background .18s,border-color .18s,box-shadow .18s,transform .18s,bottom .18s;
  animation:back-to-top-in .18s ease-out;
}
.footer-bottom a.back-to-top[hidden]{display:none!important}
.back-to-top>span:not(.back-to-top-icon){display:none}
.back-to-top-icon{display:grid;place-items:center;width:20px;height:20px;background:transparent;color:inherit}
.back-to-top-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* Keep the original footer height, with copyright between the two controls. */
.site-footer:has(.back-to-top) .footer-bottom{display:flex;justify-content:center;padding-inline:70px}
@media(hover:hover){
  .footer-bottom a.back-to-top:hover{transform:translateY(-2px);background:#88888818;color:#666}
}
.footer-bottom a.back-to-top:active{transform:translateY(0) scale(.97)}
.footer-bottom a.back-to-top:focus-visible:where(html:not([data-focus-managed]) *,html[data-keyboard-focus] *){outline:2px solid var(--red,#e1010d);outline-offset:4px}
/* Both controls respect the device's bottom safe area. */
.cart-fab{bottom:calc(26px + env(safe-area-inset-bottom,0px))}
@media(max-width:760px){
  .footer-bottom a.back-to-top{left:18px;right:auto;bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  .cart-fab{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
}
@keyframes back-to-top-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.footer-bottom a.back-to-top,.back-to-top-icon{transition:none;animation:none}}
@media(forced-colors:active){.footer-bottom a.back-to-top{color:ButtonText}}
