/* A horizontal shelf of the existing study images. */
.wholesale-site .trade-hero .assortment-shelf {
  display: flex;
  flex-direction: column;
  background: #e9e5d7;
  aspect-ratio: auto;
}
.assortment-window {
  position: relative;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  touch-action: pan-y;
}
.assortment-track {
  position: absolute;
  display: flex;
  inset: 0;
}
.assortment-slide {
  position: relative;
  flex: 0 0 100%;
}
.assortment-shelf:has([value="makeup"]:checked) .assortment-track {
  transform: translateX(-100%);
}
.assortment-shelf:has([value="bulk"]:checked) .assortment-track {
  transform: translateX(-200%);
}
.wholesale-site .trade-hero .assortment-shelf figcaption {
  flex: none;
  align-self: stretch;
  z-index: auto;
  margin: 0;
  padding: 11px clamp(14px, 2vw, 28px);
  background: #ece7d9;
  color: #173e35;
  border-top: 1px solid #c9bfac;
  font-size: .88rem;
}
.assortment-shelf figcaption > p {
  margin: 0 0 5px;
  color: #44534a;
  font-size: .75rem;
}
.assortment-shelf fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.assortment-shelf label {
  cursor: pointer;
}
.assortment-shelf input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  clip-path: inset(50%);
}
.assortment-shelf label span {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-inline: clamp(7px,1vw,12px);
  background: #f5f1e8;
  border: 1px solid #87938a;
  font-weight: 650;
}
.assortment-shelf input:checked + span {
  background: #173e35;
  color: #fff;
  border-color: #173e35;
}
.assortment-shelf input:focus-visible + span {
  outline: 2px solid #173e35;
  outline-offset: 2px;
}
.assortment-notes {
  margin-top: 8px;
}
.assortment-notes p {
  display: none;
  margin: 0;
}
.assortment-shelf:has([value="assortment"]:checked) .assortment-notes p:nth-child(1),
.assortment-shelf:has([value="makeup"]:checked) .assortment-notes p:nth-child(2),
.assortment-shelf:has([value="bulk"]:checked) .assortment-notes p:nth-child(3) {
  display: block;
}
@media (max-width: 760px) {
  .assortment-window {
    min-height: 0;
    flex: auto;
    aspect-ratio: 1.55;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .assortment-track {
    transition: transform .62s cubic-bezier(.28,.74,.23,1);
  }
}
