/* Yoli Studio — Ribbons (promo overlays drawn over product images).
   Hosts are any element with [data-yoli-ribbon="<product id>"]; the script adds .ysr-host + one .ysr child. */
.ysr-host { position: relative; }
.ysr-host { overflow: hidden; }

.ysr {
  --ysr-bg: var(--clr-neutral-dark, #1f1f1f);
  --ysr-fg: #fff;
  --ysr-size: 12px;
  position: absolute;
  z-index: 6;
  pointer-events: none;
  background: var(--ysr-bg);
  color: var(--ysr-fg);
  font-family: var(--font-family-body, 'basis grotesque regular', sans-serif);
  font-size: var(--ysr-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: none; /* text renders exactly as typed in Studio */
  text-align: center;
  white-space: nowrap;
  animation: ysr-in .25s ease both;
}
.ysr__text, .ysr__sub { display: block; text-transform: none; }
/* Optional fine-print second line. */
.ysr__sub {
  font-size: .7em;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.15;
  opacity: .92;
  margin-top: .2em;
}
@keyframes ysr-in { from { opacity: 0; } to { opacity: 1; } }
.ysr--s { --ysr-size: 10px; }
.ysr--m { --ysr-size: 12px; }
.ysr--l { --ysr-size: 14px; }

/* Sash: a band rotated 45° across the corner.
   --ysr-d is how far the band's centre line sits from the corner; it grows with the text length
   (--ysr-chars, set by the script) so the visible part of the band always fits the words. */
.ysr--sash {
  --ysr-chars: 16;
  --ysr-pad: 2.4;
  --ysr-h: calc(var(--ysr-size) * 2.1);
  --ysr-d: calc(var(--ysr-size) * (var(--ysr-chars) * .74 + var(--ysr-pad)) / 2.83);
  --ysr-w: calc(var(--ysr-d) * 4);
  width: var(--ysr-w);
  height: var(--ysr-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
/* Two lines: slightly taller band, pushed a little further from the corner so both lines fit. */
.ysr--sash.ysr--two { --ysr-h: calc(var(--ysr-size) * 2.9); --ysr-pad: 3.6; }
.ysr--sash.ysr--top-left,
.ysr--sash.ysr--top-right    { top: calc(var(--ysr-d) - var(--ysr-h) / 2); }
.ysr--sash.ysr--bottom-left,
.ysr--sash.ysr--bottom-right { bottom: calc(var(--ysr-d) - var(--ysr-h) / 2); }
.ysr--sash.ysr--top-left     { left: calc(var(--ysr-d) - var(--ysr-w) / 2); transform: rotate(-45deg); }
.ysr--sash.ysr--top-right    { right: calc(var(--ysr-d) - var(--ysr-w) / 2); transform: rotate(45deg); }
.ysr--sash.ysr--bottom-left  { left: calc(var(--ysr-d) - var(--ysr-w) / 2); transform: rotate(45deg); }
.ysr--sash.ysr--bottom-right { right: calc(var(--ysr-d) - var(--ysr-w) / 2); transform: rotate(-45deg); }

/* Pill: a rounded label inset from the corner. */
.ysr--pill {
  padding: calc(var(--ysr-size) * .5) calc(var(--ysr-size) * 1);
  border-radius: 999px;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  overflow: hidden;
}
.ysr--pill .ysr__text, .ysr--pill .ysr__sub { overflow: hidden; text-overflow: ellipsis; }
.ysr--pill.ysr--two { border-radius: 1.1em; padding-top: calc(var(--ysr-size) * .45); padding-bottom: calc(var(--ysr-size) * .45); }
.ysr--pill.ysr--top-left,
.ysr--pill.ysr--top-right    { top: 12px; }
.ysr--pill.ysr--bottom-left,
.ysr--pill.ysr--bottom-right { bottom: 12px; }
.ysr--pill.ysr--top-left,
.ysr--pill.ysr--bottom-left  { left: 12px; }
.ysr--pill.ysr--top-right,
.ysr--pill.ysr--bottom-right { right: 12px; }

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