/* Keep off-screen theme panels from creating a horizontal page in WebKit.
 * clip preserves the document's vertical scroll owner and sticky positioning.
 * Nested carousels keep their own horizontal scrolling.
 */
html {
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* Warehouse parks the closed cart at translateX(115%). Keep its geometry
 * inside the viewport instead, with a fade and no focusable hidden controls.
 */
.ps-shoppingcart.side-cart #blockcart-content {
  transform: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.ps-shoppingcart.side-cart .show #blockcart-content {
  transform: none;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .ps-shoppingcart.side-cart #blockcart-content {
    transition: none;
  }
}
