.customer-carousel[hidden] { display: none !important; }
.customer-carousel {
  --carousel-image-height: 196px;
  --carousel-gap: 16px;
  margin: clamp(36px, 5vw, 72px) auto;
  padding-block: 12px;
  color: var(--wp--preset--color--ink, #292825);
}
.customer-carousel__header {
  max-width: 1152px;
  margin: 0 auto 22px;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.customer-carousel__header h2 {
  margin: 0 0 8px;
  font-family: var(--wp--preset--font-family--ettermale-serif, Baskerville, serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 400;
}
.customer-carousel__header p { margin: 0; color: var(--wp--preset--color--ink-soft, #66635e); font-size: 15px; }
.customer-carousel__header button {
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
/* Match the theme's existing Studio video play/pause icon shapes. */
.customer-carousel__motion-icon {
  display: block;
  box-sizing: border-box;
  width: 14px;
  height: 16px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.customer-carousel__header button[aria-pressed="true"] .customer-carousel__motion-icon {
  width: 12px;
  margin-left: 3px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.customer-carousel__viewport {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  direction: ltr;
}
.customer-carousel.is-dragging .customer-carousel__viewport { cursor: grabbing; user-select: none; }
.customer-carousel__viewport:focus-visible, .customer-carousel__header button:focus-visible {
  outline: 3px solid var(--wp--preset--color--focus, #355d55);
  outline-offset: 4px;
}
.customer-carousel__track { display: flex; will-change: transform; }
.customer-carousel__group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--carousel-gap);
  margin: 0 !important;
  padding: 0 var(--carousel-gap) 0 0 !important;
  box-sizing: border-box;
  list-style: none;
}
.customer-carousel__group li {
  flex: 0 0 auto;
  height: var(--carousel-image-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}
.customer-carousel__group img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 600px) {
  .customer-carousel { --carousel-image-height: 168px; --carousel-gap: 12px; }
  .customer-carousel__header { padding-inline: 20px; gap: 16px; flex-wrap: wrap; }
  .customer-carousel__header h2 { font-size: 28px; }
}

/* Keep social proof close to the upload action on the dedicated order page. */
.etp-order-page:has(> .customer-carousel) {
  padding-bottom: 72px;
}
.etp-order-page:has(> .customer-carousel) .etp-configurator__section[data-etp-panel="upload"] {
  padding-bottom: 0;
}
.etp-order-page > .etp-order-reviews {
  width: min(calc(100% - 40px), 1104px);
  margin: 20px auto 0;
}
.etp-order-reviews .etp-review-strip { margin: 0; }
.etp-order-reviews:not(:has(.etp-review-strip)) { display: none; }
/* The product step already has its own reviews beside the purchase actions. */
.etp-order-page:has(.etp-configurator[data-etp-current-step="product"]) > .etp-order-reviews {
  display: none;
}
.etp-order-page > .customer-carousel {
  margin-top: 28px;
  margin-bottom: 0;
  padding-block: 0;
}
.etp-order-page > .customer-carousel .customer-carousel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
}
