.cc_m7uskf44_rtuy7s62YW .nx-shade {
  background: var(--nx-shade-bg, var(--nx-bg));
  color: var(--nx-ink);
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__inner {
  padding-block: 40px;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade .nx-head {
  margin-bottom: 20px;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Models ---------- */

.cc_m7uskf44_rtuy7s62YW .nx-shade__models {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Models are child components placed through IkasComponentRenderer; on the
 * published site each sits in its own scope wrapper, which is then the flex
 * item. Wrappers share the row evenly; a wrapper whose model is hidden (its
 * shade does not exist on the product) gives its space back. */
.cc_m7uskf44_rtuy7s62YW .nx-shade__models > * > *, .cc_m7uskf44_rtuy7s62YW .nx-shade__model {
  flex: 1 1 0;
  min-width: 0;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__models > * > *:has(> .nx-shade__model[hidden]), .cc_m7uskf44_rtuy7s62YW .nx-shade__model[hidden] {
  display: none;
}

/* Media, copied from the Media part: in the editor a model is rendered
   without its own scope, so only this stylesheet reaches it. */
.cc_m7uskf44_rtuy7s62YW .nx-shade .nx-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--nx-fit, cover);
}

/* The "this is me" badge belongs to the chosen model only. */
.cc_m7uskf44_rtuy7s62YW .nx-shade__model:not(.is-active) .nx-shade__picked {
  display: none;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__model-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-raised);
  color: var(--nx-on-media);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__model-btn .nx-media {
  transition:
    transform var(--nx-dur-slow) var(--nx-ease),
    opacity var(--nx-dur-mid) var(--nx-ease);
  opacity: 0.7;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__model.is-active .nx-media {
  opacity: 1;
  transform: scale(1.03);
}

/* The chosen model gets a gold frame that fades in. */
.cc_m7uskf44_rtuy7s62YW .nx-shade__model-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--nx-accent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--nx-dur-mid) var(--nx-ease);
  pointer-events: none;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__model.is-active .nx-shade__model-btn::after {
  opacity: 1;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__model-btn:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 3px;
}

/* On phones the label lives in the line under the spectrum. */
.cc_m7uskf44_rtuy7s62YW .nx-shade__info {
  display: none;
}

/* ---------- Spectrum ---------- */

.cc_m7uskf44_rtuy7s62YW .nx-shade__spectrum {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__swatches {
  display: flex;
  align-items: center;
  gap: 4px;
  /* The chosen swatch is stretched 1.4x and wears an outline; the scroller
     clips both, so it needs 14px+ of room above and below. The negative
     margin hands the extra room back to the layout. */
  margin: -4px calc(-1 * var(--nx-gutter));
  padding: 14px var(--nx-gutter);
  overflow-x: auto;
  /* A horizontal scroller is never a vertical one: without this the
     browser makes the other axis scrollable too. */
  overflow-y: hidden;
  scrollbar-width: none;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__swatches::-webkit-scrollbar {
  display: none;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__cell {
  position: relative;
  flex: 1 0 28px;
  min-width: 28px;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__swatch {
  position: relative;
  display: block;
  height: 40px;
  border-radius: var(--nx-radius-xs);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform var(--nx-dur-mid) var(--nx-ease);
  -webkit-tap-highlight-color: transparent;
}

/* The chosen shade rises out of the row. */
.cc_m7uskf44_rtuy7s62YW .nx-shade__input:checked + .nx-shade__swatch {
  outline: 1.5px solid var(--nx-ink);
  outline-offset: 2px;
  transform: scaleY(1.4);
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__input:focus-visible + .nx-shade__swatch {
  outline: 2px solid var(--nx-accent);
  outline-offset: 3px;
}

/* Sold-out shades are crossed through, not hidden. */
.cc_m7uskf44_rtuy7s62YW .nx-shade__swatch.is-soldout::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1.5px;
  background: var(--nx-bg);
  transform: rotate(-35deg);
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__swatch.is-soldout {
  opacity: 0.6;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__scale {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  color: var(--nx-muted);
  font-size: 12px;
}

/* ---------- Selection and action ---------- */

.cc_m7uskf44_rtuy7s62YW .nx-shade__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__selected {
  /* Room for two lines, so a longer shade description never pushes the button
     down when the shopper moves from one shade to the next. */
  min-height: 3em;
  margin: 0;
  color: var(--nx-ink-2);
  font-size: 14px;
  line-height: 1.5;
  /* A fade only: a sliding line made the whole row look like it jumped. */
  animation: nx-shade-fade var(--nx-dur-mid) var(--nx-ease) both;
}

@keyframes cc_m7uskf44_rtuy7s62YW_nx-shade-fade {
  from {
    opacity: 0;
  }
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__selected-name {
  color: var(--nx-ink);
  font-weight: 700;
}

.cc_m7uskf44_rtuy7s62YW .nx-shade__flag {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px dashed var(--nx-muted);
  border-radius: var(--nx-radius-pill);
  font-size: 12px;
}

@media (min-width: 768px) {
  .cc_m7uskf44_rtuy7s62YW .nx-shade__models {
    gap: 20px;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__model-btn {
    height: clamp(320px, 36vw, 520px);
  }

  /* Caption over the foot of the photo: a soft dark fade instead of a pill,
     so the shade name has the full card width and never gets cut. The "this
     is me" badge sits in the top corner, out of the caption's way. */
  .cc_m7uskf44_rtuy7s62YW .nx-shade__info {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, transparent 52%, rgb(11 10 9 / 0.86) 100%);
    pointer-events: none;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__chip {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nx-on-media) 40%, transparent),
      0 0 0 3px rgb(11 10 9 / 0.35);
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__info-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__info-code {
    color: color-mix(in srgb, var(--nx-on-media) 82%, transparent);
    font-size: 13px;
    line-height: 1.3;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__picked {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 14px;
    border-radius: var(--nx-radius-pill);
    background: var(--nx-on-media-accent);
    color: var(--nx-photo-on-accent, #1a1208);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    animation: cc_m7uskf44_nx-fade-in var(--nx-dur-mid) var(--nx-ease) both;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__swatches {
    gap: 6px;
    margin: 0;
    padding: 12px 0;
    overflow: visible;
  }

  /* Description on its own centred line, button centred under it: the pair
     stays on the page's axis and the button never moves, however long the
     shade's description is. */
  .cc_m7uskf44_rtuy7s62YW .nx-shade__footer {
    align-items: center;
    gap: 18px;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__selected {
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .cc_m7uskf44_rtuy7s62YW .nx-shade__inner {
    padding-block: 0 120px;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade .nx-head {
    margin-bottom: 40px;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__body {
    gap: 40px;
  }
}

/* Slider toggled ON: the equal-share row becomes a per-view scroll strip. Off
   (default) keeps the flex:1 row above so every available shade model is shown. */
@media (max-width: 767px) {
  .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-m-slider="true"] {
    --nx-sl-gap: 8px;
    --nx-sl-pv: var(--nx-sl-pv-m, 3.5);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--nx-gutter));
    padding: 0 var(--nx-gutter) 8px;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-m-slider="true"]::-webkit-scrollbar {
    display: none;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-m-slider="true"] > *, .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-m-slider="true"] > * > *, .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-m-slider="true"] .nx-shade__model {
    flex: 0 0 calc((100% - (var(--nx-sl-pv) - 1) * var(--nx-sl-gap)) / var(--nx-sl-pv));
    scroll-snap-align: start;
  }
}

@media (min-width: 768px) {
  .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-d-slider="true"] {
    --nx-sl-gap: 20px;
    --nx-sl-pv: var(--nx-sl-pv-d, 5);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-d-slider="true"]::-webkit-scrollbar {
    display: none;
  }

  .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-d-slider="true"] > *, .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-d-slider="true"] > * > *, .cc_m7uskf44_rtuy7s62YW .nx-shade__models[data-d-slider="true"] .nx-shade__model {
    flex: 0 0 calc((100% - (var(--nx-sl-pv) - 1) * var(--nx-sl-gap)) / var(--nx-sl-pv));
    scroll-snap-align: start;
  }
}

/* Merchant-picked ratio replaces the fixed model photo height. */
.cc_m7uskf44_rtuy7s62YW [data-nx-ar] .nx-shade__model-btn {
  height: auto;
  aspect-ratio: var(--nx-ar);
}
