.hudson-order-gallery {
  min-width: 0;
  max-width: 100%;
}

.hudson-order-gallery-track {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #be185d #fce7f3;
  padding-bottom: 10px;
}

.hudson-order-gallery-item {
  flex: 0 0 84%;
  min-width: 0;
  scroll-snap-align: start;
}

.hudson-order-gallery-item:only-child {
  flex-basis: min(100%, 320px);
}

.hudson-order-gallery-frame {
  aspect-ratio: 9 / 16;
  position: relative;
}

.hudson-order-gallery-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

@media (hover: hover) {
  .hudson-order-gallery-item:hover img { transform: scale(1.045); }
}

.hudson-order-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.hudson-order-gallery-controls[hidden] { display: none; }
.hudson-order-gallery-arrows { display: flex; gap: 8px; flex-shrink: 0; }

.hudson-order-gallery-position {
  font-size: .875rem;
  font-weight: 700;
  color: #4b5563;
  font-variant-numeric: tabular-nums;
}

.hudson-order-gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #f9a8d4;
  border-radius: 8px;
  background: #fff7fb;
  color: #be185d;
  cursor: pointer;
}

.hudson-order-gallery-arrow:hover:not([aria-disabled="true"]) { background: #fce7f3; }
.hudson-order-gallery-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }

.hudson-order-gallery-arrow:focus-visible,
.hudson-order-gallery-track:focus-visible {
  outline: 2px solid #be185d;
  outline-offset: 3px;
}

.hudson-order-gallery-item:focus-visible {
  outline: 3px solid #be185d;
  outline-offset: -3px;
}

.hudson-order-gallery .hudson-gallery-price-card-label {
  color: #6b7280;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.hudson-order-gallery-price-card {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  max-width: calc(100% - 1.1rem);
  max-height: calc(100% - 1.1rem);
  overflow-y: auto;
  overflow-wrap: anywhere;
  padding: .55rem .7rem;
  border: 1px solid rgba(236, 72, 153, .18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 26px rgba(190, 24, 93, .15);
  backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .hudson-order-gallery-item { flex-basis: calc((100% - 12px) / 2); }
}

@media (prefers-reduced-motion: reduce) {
  .hudson-order-gallery-frame > img { transition: none; }
  .hudson-order-gallery-item:hover img { transform: none; }
}
