.sam-product-carousel-frame {
  position: relative;
}

[data-product-carousel-track],
:where(.sam-product-reference .related) ul.products {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}
[data-product-carousel-track]::-webkit-scrollbar,
:where(.sam-product-reference .related) ul.products::-webkit-scrollbar {
  display: none;
}

.sam-product-carousel-track {
  cursor: grab;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  overflow-anchor: none;
}
.sam-product-carousel-track img {
  -webkit-user-drag: none;
}
.sam-product-carousel-track.is-dragging,
.sam-product-carousel-track.is-reordering {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.sam-product-carousel-track.is-dragging {
  cursor: grabbing;
}

.sam-product-carousel-controls {
  position: absolute;
  inset-inline: 0;
  z-index: 3;
  pointer-events: none;
}
.sam-product-carousel-controls[hidden] {
  display: none;
}
.sam-product-carousel-controls button {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #dfe3e7;
  border-radius: 50%;
  background: #fff;
  color: #17191d;
  box-shadow: 0 2px 7px rgba(23, 25, 29, .15);
  cursor: pointer;
  pointer-events: auto;
}
.sam-product-carousel-controls button:hover,
.sam-product-carousel-controls button:focus-visible {
  border-color: #ff790b;
  background: #ffe6d2;
  color: #b95300;
}
.sam-product-carousel-controls button::before {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  content: "";
}
.sam-product-carousel-controls [data-carousel-arrow="left"] { left: 8px; }
.sam-product-carousel-controls [data-carousel-arrow="right"] { right: 8px; }
.sam-product-carousel-controls [data-carousel-arrow="left"]::before { transform: translateX(2px) rotate(-135deg); }
.sam-product-carousel-controls [data-carousel-arrow="right"]::before { transform: translateX(-2px) rotate(45deg); }
