:root {
  --bg: #f1f0ee;
  --card: #ffffff;
  --ink: #18171a;
  --soft: rgba(24, 23, 26, 0.58);
  --faint: rgba(24, 23, 26, 0.36);
  --line: rgba(24, 23, 26, 0.09);
  --accent: #d6336c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), 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;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.bb { position: relative; width: min(324px, 100%); padding: 14px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 #ffffff, 0 34px 54px -36px rgba(24, 23, 26, 0.55), 0 10px 18px -14px rgba(24, 23, 26, 0.22); }

.bb__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.bb__name { min-width: 0; display: grid; }
.bb__name b { font-size: 15px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.bb__hint { height: 15px; overflow: hidden; font-size: 11.500px; line-height: 15px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.bb__hint span { display: block; }
.bb__price { flex: none; display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.bb__price s { height: 14px; font-size: 11.500px; line-height: 14px; font-weight: 560; color: var(--faint); opacity: 0; }
.bb__price b { font-size: 21px; line-height: 24px; font-weight: 760; letter-spacing: -0.02em; }

.bb__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.bb__item { position: relative; display: grid; justify-items: center; align-content: start; height: 84px; padding: 8px 2px 0; border: 0; border-radius: 14px; background: #f6f5f3; color: inherit; font: inherit; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s ease, box-shadow 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bb__art { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 4px 8px -5px rgba(24, 23, 26, 0.4); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
.bb__art svg, .bb__chip svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.400; stroke-linecap: round; stroke-linejoin: round; }
.bb__item b { margin-top: 6px; font-size: 11.500px; line-height: 15px; font-weight: 660; white-space: nowrap; }
.bb__item > span:last-child { font-size: 11px; line-height: 14px; font-weight: 560; color: var(--soft); font-variant-numeric: tabular-nums; }
.bb__item[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 8%, #ffffff); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 60%, transparent); }
.bb__item[aria-pressed="true"] .bb__art { opacity: 0.35; transform: scale(0.88); }
.bb.is-full .bb__item[aria-pressed="false"] { opacity: 0.5; }
.bb__item:focus-visible, .bb__go:focus-visible, .bb__clear:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
@media (hover: hover) { .bb:not(.is-full) .bb__item[aria-pressed="false"]:hover { background: #efedea; } }

.bb__tray { margin-top: 10px; padding: 8px; border-radius: 16px; background: #f6f5f3; box-shadow: inset 0 0 0 1px var(--line); }
.bb__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bb__slot { position: relative; height: 44px; border-radius: 12px; border: 1.500px dashed rgba(24, 23, 26, 0.18); }
/* a product in the tray */
.bb__chip { position: absolute; inset: -1.500px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 8px 14px -9px rgba(24, 23, 26, 0.55); font-size: 11.500px; font-weight: 660; white-space: nowrap; will-change: transform; z-index: 2; }
.bb__chip svg { flex: none; width: 20px; height: 20px; }
.bb__tier { display: flex; align-items: center; gap: 10px; height: 18px; margin-top: 8px; padding: 0 2px; }
.bb__steps { flex: none; display: flex; gap: 3px; }
.bb__steps i { position: relative; width: 22px; height: 5px; border-radius: 2.500px; background: rgba(24, 23, 26, 0.12); overflow: hidden; }
.bb__steps i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
.bb__off { height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 640; color: var(--soft); white-space: nowrap; transition: color 0.3s ease; }
.bb__off span { display: block; }
.bb.has-off .bb__off { color: var(--accent); }

.bb__foot { display: flex; gap: 8px; margin-top: 10px; }
.bb__clear { flex: none; height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 660; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px rgba(24, 23, 26, 0.16); transition: opacity 0.3s ease, background-color 0.2s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bb__clear:disabled { opacity: 0.4; cursor: default; }
.bb__go { flex: 1 1 auto; height: 44px; border: 0; border-radius: 14px; background: #eeedea; color: var(--faint); font: inherit; font-size: 13.500px; font-weight: 700; cursor: pointer; outline: none; transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bb__go:disabled { cursor: default; }
.bb.has-items .bb__go { background: var(--ink); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 22px -14px rgba(24, 23, 26, 0.7); }
.bb__gotext { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.bb__gotext span { display: block; white-space: nowrap; }
@media (hover: hover) { .bb.has-items .bb__go:hover { background: #333136; } .bb__clear:not(:disabled):hover { background: rgba(24, 23, 26, 0.05); } }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #18171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(24, 23, 26, 0.3)); z-index: 5; }

@media (max-width: 340px) {
  .bb__item b { font-size: 10.500px; }
  .bb__chip { font-size: 10.500px; gap: 4px; }
  .bb__chip svg { width: 17px; height: 17px; }
}
