:root {
  --bg: #ffffff;
  --ink: #15161b;
  --soft: #6c7080;
  --accent: #ff6a3d;
  --old: #c9b79b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* ---- the pill ---- */
.cmp {
  position: relative;
  width: min(326px, calc(100vw - 32px));
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 0 9px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(21, 22, 27, 0.08),
    0 1px 2px rgba(21, 22, 27, 0.08),
    0 12px 24px -12px rgba(21, 22, 27, 0.22),
    0 28px 48px -30px rgba(21, 22, 27, 0.3);
  transition: box-shadow 0.5s ease;
}
.cmp.is-in {
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent),
    0 1px 2px rgba(21, 22, 27, 0.08),
    0 14px 28px -12px color-mix(in srgb, var(--accent) 45%, transparent),
    0 28px 48px -30px color-mix(in srgb, var(--accent) 50%, transparent);
}
.cmp:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.cmp__body {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4f4f7);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(21, 22, 27, 0.05);
  z-index: -1;
}
/* a warm wash that stays on the sign's side while the product is in the bundle */
.cmp__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%);
  opacity: 0;
}
.cmp__light {
  position: absolute;
  inset: 0;
  background: radial-gradient(130px 80px at var(--px, 50%) var(--py, 0%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cmp.is-hot .cmp__light { opacity: 1; }

/* ---- the sign: two squares that come together ---- */
.sign {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #2d2f39, #15161b 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 5px rgba(21, 22, 27, 0.25);
  display: grid;
  place-items: center;
  transition: background-color 0.4s ease;
}
.sign svg { width: 23px; height: 23px; overflow: visible; }
.sign rect { fill: rgba(255, 255, 255, 0.55); stroke: #15161b; stroke-width: 1.2; transition: fill 0.4s ease; }
.sign rect[data-bar="b"] { fill: #ffffff; }
.cmp.is-in .sign rect[data-bar="b"] { fill: var(--accent); }

/* ---- the words ---- */
.label {
  flex: 1;
  min-width: 0;
  height: 22px;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 22px;
  font-weight: 620;
  font-stretch: 104%;
  letter-spacing: -0.008em;
}
.label__word { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- the tray: what is in the bundle and the discount earned ---- */
.tray {
  flex: none;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 5px 0 6px;
  border-radius: 99px;
  background: rgba(21, 22, 27, 0.05);
  box-shadow: inset 0 0 0 1px rgba(21, 22, 27, 0.05), inset 0 1px 2px rgba(21, 22, 27, 0.06);
}
.tile {
  --c: var(--old);
  flex: none;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  border-radius: 9px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 55%, #ffffff), var(--c));
  box-shadow: inset 0 0 0 1px rgba(21, 22, 27, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 4px -1px color-mix(in srgb, var(--c) 70%, #15161b);
  display: grid;
  place-items: center;
}
/* the product inside the tile: a small drawn bottle shape, the same for both, in two finishes */
.tile i {
  width: 9px;
  height: 15px;
  border-radius: 3px 3px 4px 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
  box-shadow: 0 -4px 0 -2.4px rgba(255, 255, 255, 0.9);
}
.tile--new { --c: var(--accent); width: 0; margin-right: 0; opacity: 0; overflow: hidden; }
.tray__count {
  min-width: 46px;
  height: 28px;
  padding: 0 5px;
  overflow: hidden;
  border-radius: 99px;
  font-size: 13.5px;
  line-height: 28px;
  font-weight: 680;
  text-align: center;
  color: var(--ink);
  transition: color 0.4s ease;
}
.cmp.is-in .tray__count { color: color-mix(in srgb, var(--accent) 80%, #15161b); }
.tray__count span { display: block; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (max-width: 360px) {
  .cmp { gap: 8px; padding: 0 7px; }
  .label { font-size: 14px; font-stretch: 98%; }
  .tray { padding: 0 2px 0 5px; }
  .tray__count { min-width: 40px; padding: 0 3px; font-size: 13px; }
}
