/* Left side keeps clear of the existing right-side WhatsApp control. */
#tm-back-to-top.tm-back-to-top {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8dce1;
  border-radius: 50%;
  background: #fff;
  color: #202124;
  box-shadow: 0 3px 14px #0002;
  font: 700 24px/1 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
#tm-back-to-top.tm-back-to-top[hidden] { display: none; }
#tm-back-to-top.tm-back-to-top:hover { background: #fff4eb; }
#tm-back-to-top.tm-back-to-top:focus-visible { outline: 3px solid #a7470d; outline-offset: 3px; }
@media (max-width: 760px) {
  #tm-back-to-top.tm-back-to-top {
    /* Leave 112px for the mobile purchase/cart strip, plus device safe area.
       Integration may override --tm-back-to-top-mobile-bottom for a taller bar. */
    bottom: calc(var(--tm-back-to-top-mobile-bottom, 112px) + env(safe-area-inset-bottom, 0px));
  }
}
@media print { #tm-back-to-top.tm-back-to-top { display: none; } }
