/* Yoli Studio — Promo displays (see assets/yoli-studio-promos.js). All classes are ypd- prefixed.
   Slots are empty (zero height) until the feed matches, so there is no layout shift when nothing shows. */

.ypd-slot:empty,
[data-ypd-tag]:empty,
[data-ypd-callout]:empty { display: none; }

.ypd-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.ypd-ico { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -0.125em; }

/* ---------- tag (shop cards + PDP) ---------- */
.ypd-tag {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 5px 8px;
  border: 1px solid var(--ypd-bd, #d9d6cc);
  border-radius: 8px;
  background: var(--ypd-bg, #f1f0ec);
  color: var(--ypd-fg, #44413a);
  font-family: var(--font-body, inherit);
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}
.ypd-tag__eyebrow {
  display: flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.ypd-tag__headline { font-size: 12px; font-weight: 700; }
.ypd-tag__fine { font-size: 10.5px; opacity: .85; }
.ypd-tag .ypd-chip { margin-top: 4px; }

.ypd-tag--mini {
  --ypd-bg: #f1f0ec; --ypd-fg: #44413a; --ypd-bd: #d9d6cc;
  display: inline-block;
  padding: 3px 7px;
  font-size: 10.5px; font-weight: 600;
}

/* ---------- PDP callout ---------- */
.ypd-callout {
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--ypd-bd, #d9d6cc);
  border-radius: 12px;
  background: var(--ypd-bg, #f1f0ec);
  color: var(--ypd-fg, #44413a);
  font-family: var(--font-body, inherit);
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}
.ypd-callout__eyebrow {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.ypd-callout__headline { font-size: 15px; font-weight: 700; margin-top: 2px; }
.ypd-callout__body { font-size: 13px; margin-top: 2px; }
.ypd-callout__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.ypd-callout__ends { font-size: 12px; opacity: .8; }

/* ---------- copyable code chip ---------- */
.ypd-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border: 1px dashed color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .ypd-chip { border-color: currentColor; }
}
.ypd-callout .ypd-chip { font-size: 12.5px; padding: 3px 9px; }
.ypd-chip:hover,
.ypd-chip:focus-visible { border-style: solid; border-color: currentColor; background: rgba(255, 255, 255, .45); }
.ypd-chip:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ypd-chip__ico { width: 1em; height: 1em; opacity: .5; }
.ypd-chip__ico--check { display: none; opacity: 1; }
.ypd-chip.ypd-copied .ypd-chip__ico--copy { display: none; }
.ypd-chip.ypd-copied .ypd-chip__ico--check { display: inline-block; }

/* ---------- strike-through prices ---------- */
.ypd-was {
  color: #c8102e;
  text-decoration: line-through;
  text-decoration-color: currentColor;
  margin-right: .35em;
  font-weight: inherit;
}
.ypd-then {
  display: block;
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 400;
  color: var(--clr-text-muted, #7a7067);
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ypd-chip { transition: none; }
}
