/* Final skincare advisor polish.
   Step cards use the earlier thematic photography; concrete packshots belong
   in the recommendation result, not in the questions. */

body[data-cosmetics-demo] .cx-option-photo {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
body[data-cosmetics-demo] .cx-option-photo > img {
  opacity: 0 !important;
}

body[data-cosmetics-demo] .cx-option[data-value="white"] .cx-option-photo { background-image:url('/assets/vino/choice-white.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="red"] .cx-option-photo { background-image:url('/assets/vino/choice-red.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="rose"] .cx-option-photo { background-image:url('/assets/vino/choice-rose.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="sparkling"] .cx-option-photo { background-image:url('/assets/vino/choice-sparkling.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="crisp"] .cx-option-photo { background-image:url('/assets/vino/choice-crisp.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="fruity"] .cx-option-photo { background-image:url('/assets/vino/choice-fruity.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="bold"] .cx-option-photo { background-image:url('/assets/vino/choice-bold.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="sweet"] .cx-option-photo { background-image:url('/assets/vino/choice-sweet.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="simple"] .cx-option-photo { background-image:url('/assets/vino/choice-simple.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="basic"] .cx-option-photo { background-image:url('/assets/vino/choice-basic.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="full"] .cx-option-photo { background-image:url('/assets/vino/choice-full.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="target"] .cx-option-photo { background-image:url('/assets/vino/choice-target.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="fish"] .cx-option-photo { background-image:url('/assets/vino/choice-fish.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="meat"] .cx-option-photo { background-image:url('/assets/vino/choice-meat.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="cheese"] .cx-option-photo { background-image:url('/assets/vino/choice-cheese.jpg') !important; }
body[data-cosmetics-demo] .cx-option[data-value="any"] .cx-option-photo { background-image:url('/assets/vino/choice-any.jpg') !important; }

/* Multi-step selections must look like a routine, not like one product with an
   unrelated "2–3 kroky" tag. The first product stays the main card; the rest
   are compact, numbered steps below it. */
body[data-cosmetics-demo] .cx-routine-intro {
  margin: 5px 1px 8px;
  color: color-mix(in srgb,var(--cx-ink) 62%,transparent);
  font-size: 10.2px;
  line-height: 1.35;
}
body[data-cosmetics-demo] .cx-product { position: relative; }
body[data-cosmetics-demo] .cx-step-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--cx-brand);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .03em;
}
body[data-cosmetics-demo] .cx-routine-set {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}
body[data-cosmetics-demo] .cx-routine-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  background: #fff;
}
body[data-cosmetics-demo] .cx-routine-card-photo {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cx-soft);
}
body[data-cosmetics-demo] .cx-routine-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-cosmetics-demo] .cx-routine-card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
body[data-cosmetics-demo] .cx-routine-card-copy small {
  color: var(--cx-accent);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}
body[data-cosmetics-demo] .cx-routine-card-copy b {
  overflow: hidden;
  color: var(--cx-ink);
  font-size: 10.4px;
  line-height: 1.18;
  text-overflow: ellipsis;
}
body[data-cosmetics-demo] .cx-routine-card-copy span {
  color: color-mix(in srgb,var(--cx-ink) 58%,transparent);
  font-size: 9px;
  line-height: 1.2;
}
body[data-cosmetics-demo] .cx-routine-card > a {
  min-width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--cx-soft);
  color: var(--cx-ink);
  font-size: 8.5px;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 520px) {
  body[data-cosmetics-demo] .cx-routine-card {
    grid-template-columns: 52px minmax(0,1fr) auto;
  }
  body[data-cosmetics-demo] .cx-routine-card-photo {
    width: 52px;
    height: 52px;
  }
}
