/* Skipped (covered by shared chunk CSS): ../../sub-components/Media/styles.css */
/* Skipped (covered by shared chunk CSS): ../../sub-components/Icon/styles.css */
/* Skipped (covered by shared chunk CSS): ../../sub-components/RollText/styles.css */

/*
 * The root is the real slider item: the feed sizes it (flex-basis) because the renderer containers
 * above it are box-less. width: 100% is only the standalone default (the feed overrides it).
 */
.cc_ha5dwmyj_XR0oTPPsav .shoppable-look {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-image);
  isolation: isolate;
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look.is-shoppable {
  cursor: pointer;
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__media {
  border-radius: inherit;
  /* Media also sets this inline; repeated here so the 4:5 box never depends on that style. */
  aspect-ratio: 4 / 5;
}

/* No image/video yet: a visible scheme-tinted 4:5 tile (text@10% on the scheme bg) so the card,
   and its bag button, still read as a card instead of an empty band. */
.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__media.media--empty {
  background-color: var(--c-text-10);
}

/* 40px round bag button, 16px from the bottom-left; grows into a "Shop the look" pill. */
.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__button {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 40px;
  min-width: 40px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--c-bg);
  color: var(--c-text);
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__button:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__icon {
  flex-shrink: 0;
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__label {
  display: block;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition:
    max-width var(--dur-200) var(--ease-out-quart),
    margin var(--dur-200) var(--ease-out-quart),
    opacity var(--dur-120) var(--ease-out-quart);
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__label-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__button:focus-visible .shoppable-look__label {
  max-width: 16em;
  margin-left: 12px;
  margin-right: 4px;
  opacity: 1;
  transition:
    max-width var(--dur-200) var(--ease-out-quart),
    margin var(--dur-200) var(--ease-out-quart),
    opacity var(--dur-200) var(--ease-out-quart) var(--dur-40);
}

@media (hover: hover) {
  .cc_ha5dwmyj_XR0oTPPsav .shoppable-look.is-shoppable:hover .shoppable-look__label {
    max-width: 16em;
    margin-left: 12px;
    margin-right: 4px;
    opacity: 1;
    transition:
      max-width var(--dur-200) var(--ease-out-quart),
      margin var(--dur-200) var(--ease-out-quart),
      opacity var(--dur-200) var(--ease-out-quart) var(--dur-40);
  }
}

/*
 * Letter roll: the pill opens on card hover (not only button hover), so the letters roll on the
 * same trigger. They start 40ms in, with the label's fade, so the copy rises into the opening pill
 * instead of the first letters rolling while it is still collapsed.
 */
@media (hover: hover) and (pointer: fine) {
  .cc_ha5dwmyj_XR0oTPPsav .shoppable-look.is-shoppable:hover .roll-text__char {
    transform: translateY(calc(-1 * var(--roll-shift)));
    transition-duration: var(--roll-in);
    transition-delay: calc(var(--dur-40) + var(--i, 0) * min(16ms, 180ms / var(--n, 1)));
  }
}

.cc_ha5dwmyj_XR0oTPPsav .shoppable-look__button:focus-visible .roll-text__char {
  transition-delay: var(--dur-40);
}

@media (prefers-reduced-motion: reduce) {
  .cc_ha5dwmyj_XR0oTPPsav .shoppable-look.is-shoppable:hover .roll-text__char {
    transform: none;
    transition: none;
  }

  .cc_ha5dwmyj_XR0oTPPsav .shoppable-look__label, .cc_ha5dwmyj_XR0oTPPsav .shoppable-look__button:focus-visible .shoppable-look__label, .cc_ha5dwmyj_XR0oTPPsav .shoppable-look.is-shoppable:hover .shoppable-look__label {
    transition: opacity var(--dur-120) linear;
  }
}
