/*
 * Party Favor Box Shop (pages: src/features/favors/pages.js, behavior: shop.js). Built on the brand
 * tokens in public/static/site/brand.css (body.mk). Mobile-first, 44px targets, AA contrast.
 * Motion is transform/opacity only and switched off under prefers-reduced-motion.
 */
.fv { --fv-bg: var(--lilac); --fv-ink: var(--ink); --fv-ac: var(--grape); }
.fv .ic, .fv-glyph { width: 1.15em; height: 1.15em; flex: none; }
.fv-fine { font-size: .9rem; color: var(--ink-3); margin: 10px 0 0; }
.fv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- hero ---------- */
.fv-hero { position: relative; overflow: hidden; padding: 28px 0 40px; }
@media (min-width: 900px) { .fv-hero { padding: 64px 0 72px; } }
.fv-hero__in { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .fv-hero__in { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.fv-hero .mk-h1 { font-size: clamp(2.5rem, 4.6vw + .9rem, 4.9rem); max-width: 12ch; }
.fv-hero .mk-lede { max-width: 46ch; }
.fv-from { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 22px; color: var(--ink-2); font-size: 1rem; }
.fv-from b { color: var(--ink); font-family: var(--f-display); font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em; }
.fv-soon-note { margin: 16px 0 0; font-weight: 650; color: var(--grape-ink); }
.fv-confetti { opacity: .7; }

/* the fanned trio of boxes */
.fv-fan { position: relative; height: clamp(260px, 72vw, 340px); max-width: 520px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .fv-fan { height: 470px; } }
.fv-fan__card { position: absolute; top: 8%; left: 50%; width: 46%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--fv-bg); box-shadow: var(--sh-3);
  border: 5px solid #fff; transform-origin: 50% 110%;
  --tx: calc((var(--i) - 1) * 62%); --rot: calc((var(--i) - 1) * 9deg);
  transform: translateX(-50%) translateX(var(--tx)) rotate(var(--rot)); }
.fv-fan__card:nth-child(2) { z-index: 2; top: 0; width: 52%; }
.fv-fan__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-fan__name { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--fv-ink); font-weight: 750; font-size: .82rem; box-shadow: var(--sh-1); }
.js-motion .fv-fan__card { animation: fv-deal 1100ms var(--ease) both; animation-delay: calc(var(--i) * 140ms + 120ms); }
.js-motion .fv-fan__card:nth-child(2) { animation-name: fv-deal-mid; }
@keyframes fv-deal { from { opacity: 0; transform: translateX(-50%) translateY(60px) rotate(0deg) scale(.9); } to { opacity: 1; transform: translateX(-50%) translateX(var(--tx)) rotate(var(--rot)); } }
@keyframes fv-deal-mid { from { opacity: 0; transform: translateX(-50%) translateY(70px) scale(.9); } 70% { transform: translateX(-50%) translateY(-6px) scale(1.01); } to { opacity: 1; transform: translateX(-50%); } }
@media (hover: hover) { .fv-fan:hover .fv-fan__card:nth-child(1) { transform: translateX(-50%) translateX(calc(var(--tx) - 6%)) rotate(calc(var(--rot) - 3deg)); }
  .fv-fan:hover .fv-fan__card:nth-child(3) { transform: translateX(-50%) translateX(calc(var(--tx) + 6%)) rotate(calc(var(--rot) + 3deg)); }
  .fv-fan__card { transition: transform 600ms var(--ease-spring); } }

/* ---------- tiers band ---------- */
.fv-band { position: relative; z-index: 1; padding: 0 0 8px; }
.fv-tiers { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
@media (min-width: 720px) { .fv-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fv-tiers li { position: relative; padding: 14px 16px; border-radius: 20px; background: var(--frosting); display: grid; gap: 2px; min-width: 0; }
.fv-tiers li b { font-family: var(--f-display); font-size: 1.02rem; letter-spacing: -.01em; }
.fv-tiers li span { color: var(--ink-2); font-size: .92rem; }
.fv-tiers li:nth-child(n + 2) span { color: #0b6e57; font-weight: 700; }
.fv-tiers li:last-child { background: var(--midnight); color: #fff; }
.fv-tiers li:last-child span { color: var(--sunbeam); }
.js-motion .fv-tiers li { animation: mk-slide 600ms var(--ease) both; animation-delay: calc(var(--i) * 90ms + 500ms); }
.fv-band__note { margin: 12px 4px 0; font-size: .9rem; color: var(--ink-3); }
.fv-prefill { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: var(--mintwash); color: #0b4a3b; }
.fv-prefill p { margin: 0; }
.fv-prefill__dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 196, 160, .25); }

/* ---------- product cards ---------- */
.fv-sec-head { display: grid; gap: 4px; }
.fv-concept-note { margin: 0; font-size: .9rem; color: var(--ink-3); }
.fv-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .fv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.fv-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
@media (hover: hover) { .fv-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); } .fv-card:hover .fv-card__media img { transform: scale(1.045); } }
.fv-card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--fv-bg); overflow: hidden; }
@media (min-width: 620px) { .fv-card__media { aspect-ratio: 1 / 1; } }
.fv-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; display: block; transition: transform 900ms var(--ease); }
.fv-badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(26, 20, 51, .78); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fv-rec { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; background: var(--sunbeam); color: var(--midnight); font-size: .8rem; font-weight: 800; box-shadow: var(--sh-1); }
.fv-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.fv-card__age { margin: 0; font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--fv-ink); }
.fv-card__name { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.fv-card__name a { color: var(--ink) !important; text-decoration: none; }
.fv-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.fv-card__tag { margin: 0; color: var(--ink-2); }
.fv-card__inc { list-style: none; padding: 0; margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.fv-card__inc li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--fv-bg); color: var(--fv-ink); font-size: .84rem; font-weight: 650; }
.fv-card__inc li.more { background: var(--frosting); color: var(--ink-2); }
.fv-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fv-card__cta { position: relative; z-index: 1; --bb: var(--midnight); }
.fv-price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fv-price b { font-family: var(--f-display); font-size: 1.45rem; letter-spacing: -.02em; }
.fv-price span { color: var(--ink-2); font-size: .92rem; }
.fv-price--lg b { font-size: 2.1rem; }

/* how it works */
.fv-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .fv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.fv-steps li { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.fv-steps li p { color: var(--ink-2); margin: 0; }
.fv-steps__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--celebrate); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.fv-final__in { position: relative; z-index: 1; text-align: center; }
.fv-final__in .mk-lede { margin: 0 auto; }
.fv-final .mk-ctas { justify-content: center; margin-top: 24px; }

/* ---------- product page ---------- */
.fv-crumbs { padding-top: 16px; }
.fv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; color: var(--ink-3); }
.fv-crumbs li { display: flex; align-items: center; min-height: 44px; }
.fv-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.fv-crumbs a { color: var(--ink-2); font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.fv-pdp { padding: 8px 0 48px; }
.fv-pdp__in { display: grid; gap: 28px; }
@media (min-width: 900px) { .fv-pdp__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } .fv-pdp__media { position: sticky; top: 96px; } }
.fv-pdp__hero { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--fv-bg); box-shadow: var(--sh-2); }
.fv-pdp__hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.fv-pdp__hero figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: .82rem; }
.fv-pdp__hero figcaption:empty { display: none; }
.js-motion .fv-pdp__hero { animation: fv-rise 900ms var(--ease) both; }
@keyframes fv-rise { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.98); } to { opacity: 1; transform: none; } }
.fv-inside { margin-top: 18px; }
.fv-inside__h { font-size: 1.1rem; margin-bottom: 12px; }
.fv-inside__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .fv-inside__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fv-inside__grid li { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); font-weight: 650; font-size: .92rem; line-height: 1.3; }
.fv-inside__grid .fv-glyph { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--fv-bg); color: var(--fv-ink); }
.js-motion .fv-inside__grid li { animation: mk-pop 500ms var(--ease-spring) both; animation-delay: calc(var(--i) * 70ms + 400ms); }
.fv-pdp__name { font-size: clamp(2.6rem, 4vw + 1rem, 4.2rem); margin-bottom: 4px; }
.fv-pdp__tag { font-family: "Instrument Serif", serif; font-style: italic; font-size: 1.5rem; color: var(--fv-ink); margin: 0 0 10px; }
.fv-qty { margin: 20px 0; padding: 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-2); }
.fv-qty__q { font-weight: 750; margin: 0 0 10px; }
.fv-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fv-preset { min-height: 64px; display: grid; place-items: center; align-content: center; gap: 0; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--frosting); cursor: pointer; padding: 6px 4px;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), border-color var(--t-fast); }
.fv-preset b { font-family: var(--f-display); font-size: 1.35rem; line-height: 1; }
.fv-preset small { font-size: .72rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.fv-preset:active { transform: scale(.96); }
.fv-preset[aria-checked="true"] { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.fv-preset[aria-checked="true"] small { color: var(--sunbeam); }
.fv-qty__out { margin: 14px 0; color: var(--ink-2); min-height: 1.6em; }
.fv-qty__out b { color: var(--ink); font-family: var(--f-display); font-size: 1.15rem; }
.fv-matrix { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.fv-matrix caption { text-align: left; font-weight: 750; margin-bottom: 8px; }
.fv-matrix th, .fv-matrix td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.fv-matrix td:last-child, .fv-matrix th:last-child { text-align: right; }
.fv-matrix thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.fv-matrix small { color: #0b6e57; font-weight: 700; }
.fv-allergen { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: #fff4d6; color: #5c3f00; margin: 16px 0; text-align: left; }
.fv-allergen .fv-glyph { width: 24px; height: 24px; margin-top: 2px; }
.fv-allergen p { margin: 0; }
.fv-pairs p { font-weight: 750; margin: 0 0 8px; }
.fv-pairs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fv-pairs .b-chip { text-decoration: none; }
.fv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.fv-grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .fv-grid--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fv-grid--mini { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fv-more .fv-grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .fv-more .fv-grid--mini { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fv-mini { display: grid; gap: 8px; padding: 8px 8px 12px; border-radius: 22px; background: #fff; box-shadow: var(--sh-1); color: var(--ink) !important; text-decoration: none !important; transition: transform var(--t-med) var(--ease); min-width: 0; }
a.fv-mini:hover { transform: translateY(-4px); }
.fv-mini img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--fv-bg); display: block; }
.fv-mini span { display: grid; padding: 0 6px; }
.fv-mini small { color: var(--ink-2); font-size: .84rem; }

/* ---------- coming soon / waitlist ---------- */
.fv-wait { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 480px; margin: 22px 0 0; }
@media (min-width: 480px) { .fv-wait { grid-template-columns: minmax(0, 1fr) auto; } }
.fv-wait__in { min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; color: var(--ink); width: 100%; }
.fv-wait__in:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.fv-wait__msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-weight: 650; color: #0b6e57; }
.fv-wait__msg.err { color: #a8193f; }

/* ---------- builder ---------- */
.fv-build { padding: 4px 0 120px; }
@media (min-width: 1000px) { .fv-build { padding-bottom: 72px; } }
.fv-build__h { margin: 4px 0 16px; }
.fv-stepper { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: s; }
.fv-stepper li { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.fv-stepper li span { display: none; }
.fv-stepper li::before { content: ""; display: block; height: 6px; border-radius: 6px; background: var(--line); }
.fv-stepper li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px; background: var(--celebrate); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.fv-stepper li.done::after, .fv-stepper li[aria-current="step"]::after { transform: scaleX(1); }
.fv-stepper li[aria-current="step"], .fv-stepper li.done { color: var(--ink); }
.fv-build__grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .fv-build__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; } }
.fv-panel { animation: fv-panel 520ms var(--ease) both; }
.fv-panel.back { animation-name: fv-panel-back; }
@keyframes fv-panel { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fv-panel-back { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: none; } }
.fv-panel h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); margin-bottom: 6px; }
.fv-panel > p.sub { color: var(--ink-2); margin: 0 0 18px; }
.fv-guests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .fv-guests { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fv-guest { position: relative; min-height: 96px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 14px 8px; border-radius: 22px; border: 2px solid var(--line-2); background: #fff;
  cursor: pointer; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-med); }
.fv-guest b { font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.fv-guest small { font-weight: 700; color: var(--ink-2); font-size: .8rem; }
.fv-guest i { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--sunbeam); color: var(--midnight); white-space: nowrap; }
.fv-guest:hover { border-color: var(--ink-3); }
.fv-guest:active { transform: scale(.97); }
.fv-guest[aria-checked="true"] { border-color: var(--balloon); background: var(--blush); box-shadow: 0 0 0 4px rgba(212, 47, 104, .12); }
.fv-custom { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; flex-wrap: wrap; }
.fv-step { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.fv-step button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.fv-step button:disabled { opacity: .35; cursor: not-allowed; }
.fv-step button:not(:disabled):active { transform: scale(.9); }
.fv-step input { width: 52px; text-align: center; border: 0; background: transparent; font: 750 1.1rem var(--f-display); color: var(--ink); -moz-appearance: textfield; min-height: 44px; }
.fv-step input::-webkit-outer-spin-button, .fv-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fv-progress { position: relative; margin: 6px 0 16px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); overflow: hidden; }
.fv-progress__row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.fv-progress__bar { position: relative; height: 10px; margin-top: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.fv-progress__bar i { position: absolute; inset: 0; border-radius: 10px; background: var(--celebrate); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 600ms var(--ease); }
.fv-progress__bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; opacity: .9; }
.fv-nudge { margin: 10px 0 0; font-size: .92rem; color: var(--grape-ink); font-weight: 700; }
.fv-nudge.ok { color: #0b6e57; }
.fv-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fv-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1); transition: box-shadow var(--t-med), transform var(--t-med) var(--ease); }
@media (min-width: 520px) { .fv-row { grid-template-columns: 76px minmax(0, 1fr) auto; } }
.fv-row.on { box-shadow: 0 0 0 2px var(--fv-ac), var(--sh-2); }
.fv-row img { width: 64px; height: 80px; object-fit: cover; border-radius: 14px; background: var(--fv-bg); display: block; }
@media (min-width: 520px) { .fv-row img { width: 76px; height: 95px; } }
.fv-row__t { min-width: 0; }
.fv-row__t b { display: block; font-family: var(--f-display); font-size: 1.12rem; }
.fv-row__t small { display: block; color: var(--ink-2); font-size: .86rem; }
.fv-row__t .px { color: var(--ink); font-weight: 700; }
.fv-row__t .px em { font-style: normal; color: #0b6e57; }
.fv-row .fv-step { grid-column: 1 / -1; justify-self: end; }
@media (min-width: 520px) { .fv-row .fv-step { grid-column: auto; } }
.fv-row__rec { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--sunbeam); color: var(--midnight); font: 800 .7rem var(--f-body); vertical-align: 2px; }
.fv-fill { margin: 12px 0 0; }
.fv-btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.fv-btnrow .b-btn { flex: 1 1 auto; }
@media (min-width: 640px) { .fv-btnrow .b-btn { flex: 0 0 auto; } }
.fv-err { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #ffe9ec; color: #a8193f; font-weight: 650; }
.fv-err:empty { display: none; }

/* extras */
.fv-extras { display: grid; gap: 12px; }
.fv-x { border-radius: 22px; background: #fff; box-shadow: var(--sh-1); overflow: hidden; transition: box-shadow var(--t-med); }
.fv-x.on { box-shadow: 0 0 0 2px var(--balloon), var(--sh-2); }
.fv-x__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; }
.fv-x__head b { display: block; font-size: 1.05rem; }
.fv-x__head small { display: block; color: var(--ink-2); font-size: .9rem; }
.fv-x__price { font-weight: 750; color: var(--ink); white-space: nowrap; }
.fv-x__rec { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--mintwash); color: #0b6e57; font-size: .72rem; font-weight: 800; vertical-align: 2px; }
.fv-switch { position: relative; width: 56px; height: 34px; border-radius: 999px; border: 0; background: #8a82a3; /* 3:1+ against white (non-text contrast) */ cursor: pointer; flex: none; transition: background-color var(--t-fast); }
.fv-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(26, 20, 51, .25); transition: transform 320ms var(--ease-spring); }
.fv-switch[aria-checked="true"] { background: var(--balloon); }
.fv-switch[aria-checked="true"]::after { transform: translateX(22px); }
.fv-switch-hit { min-width: 56px; min-height: 44px; display: grid; place-items: center; }
.fv-x__body { padding: 0 18px 18px; display: grid; gap: 12px; animation: mk-slide 420ms var(--ease) both; }
.fv-x__body[hidden] { display: none; }
.fv-x__body label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.fv-x__body label small { font-weight: 500; color: var(--ink-3); }
.fv-x__body textarea, .fv-x__body select, .fv-zip input { font: inherit; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--frosting); color: var(--ink); min-height: 48px; }
.fv-x__body textarea { min-height: 96px; resize: vertical; }
.fv-x__body textarea:focus-visible, .fv-x__body select:focus-visible, .fv-zip input:focus-visible { outline: 3px solid var(--grape); outline-offset: 1px; }
.fv-x__qty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 650; }
.fv-x__msg { margin: 0; font-size: .88rem; color: #a8193f; font-weight: 650; min-height: 1.2em; }
.fv-x__msg:empty { display: none; }
.fv-x__expand { font-size: .9rem; }
.fv-x__expand input { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; accent-color: var(--balloon); }
/* live previews */
.fv-prev { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; border-radius: 18px; background: repeating-linear-gradient(45deg, var(--frosting) 0 10px, #fff 10px 20px); }
.fv-prev__label { width: 100%; margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fv-sticker { display: inline-grid; place-items: center; min-width: 120px; max-width: 100%; padding: 12px 18px; border-radius: 999px; background: var(--fv-ac, var(--balloon)); color: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 18px -8px rgba(26, 20, 51, .45);
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; overflow-wrap: anywhere; animation: fv-stick 420ms var(--ease-spring) both; }
.fv-sticker small { font: 700 .62rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
@keyframes fv-stick { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.fv-card-prev { width: 100%; max-width: 320px; padding: 18px 20px; border-radius: 10px; background: #fff; box-shadow: var(--sh-2); transform: rotate(-1.5deg); border-top: 6px solid var(--balloon); }
.fv-card-prev p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.fv-card-prev.note p { font-family: "Instrument Serif", serif; font-style: italic; font-size: 1.3rem; line-height: 1.3; color: #26336f; }
.fv-card-prev small { display: block; margin-top: 10px; color: var(--ink-3); font-size: .78rem; }

/* review */
.fv-review { display: grid; gap: 14px; }
.fv-offers { display: grid; gap: 10px; }
.fv-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--lilac); animation: mk-pop 500ms var(--ease-spring) both; }
.fv-offer b { display: block; }
.fv-offer small { color: var(--ink-2); }
.fv-zip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.fv-zip label { display: grid; gap: 6px; font-weight: 700; }
.fv-ship { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* summary (sidebar on desktop, sheet on review) */
.fv-summary { position: relative; }
@media (min-width: 1000px) { .fv-summary { position: sticky; top: 100px; } }
.fv-sum { padding: 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-2); }
.fv-sum h2 { font-size: 1.2rem; margin: 0 0 12px; }
.fv-sum dl { margin: 0; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.fv-sum dl > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fv-sum dt { color: var(--ink-2); min-width: 0; }
.fv-sum dt small { display: block; color: var(--ink-3); font-size: .8rem; }
.fv-sum dd { margin: 0; font-weight: 700; white-space: nowrap; }
.fv-sum .save dd, .fv-sum .save dt { color: #0b6e57; }
.fv-sum .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.fv-sum .total dt { color: var(--ink); font-weight: 750; }
.fv-sum .total dd { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -.02em; }
.fv-sum .empty { color: var(--ink-3); margin: 0; }
.fv-bump { animation: fv-bump 420ms var(--ease-spring); display: inline-block; }
@keyframes fv-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (max-width: 999px) { .fv-summary { display: none; } .fv-summary.show { display: block; } }
@media (min-width: 1000px) { .fv-sum-inline { display: none; } }

/* the sticky mobile bar */
.fv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 -10px 30px -12px rgba(26, 20, 51, .25); display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: fv-up 500ms var(--ease) both; }
.fv-bar[hidden] { display: none; }
@keyframes fv-up { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
.fv-bar__t { min-width: 0; line-height: 1.2; }
.fv-bar__t b { display: block; font-family: var(--f-display); font-size: 1.25rem; }
.fv-bar__t small { color: var(--ink-2); font-size: .82rem; }
.fv-bar .b-btn { flex: none; }
@media (min-width: 1000px) { .fv-bar { display: none !important; } }

/* burst on reaching a new tier */
.fv-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fv-burst i { position: absolute; left: var(--x); top: 50%; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0; animation: fv-burst 900ms var(--ease) both; animation-delay: var(--d); }
@keyframes fv-burst { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(220deg) scale(1); } }

/* ---------- thanks ---------- */
.fv-thanks { position: relative; overflow: hidden; padding: 48px 0 80px; text-align: center; }
.fv-thanks__in { position: relative; z-index: 1; }
.fv-thanks .mk-lede { margin: 0 auto; }
.fv-thanks__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px auto; max-width: 480px; }
.fv-thanks__facts div { padding: 14px 8px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); }
.fv-thanks__facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.fv-thanks__facts dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; overflow-wrap: anywhere; }
.fv-thanks__box { position: relative; width: 120px; height: 110px; margin: 0 auto 20px; }
.fv-thanks__box .base { position: absolute; left: 10px; right: 10px; bottom: 0; height: 64px; border-radius: 10px; background: var(--balloon); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08); }
.fv-thanks__box .lid { position: absolute; left: 2px; right: 2px; top: 22px; height: 26px; border-radius: 8px; background: var(--balloon-hi); transform-origin: 10% 100%; }
.fv-thanks__box .bow { position: absolute; left: 50%; top: 22px; bottom: 0; width: 16px; margin-left: -8px; background: var(--sunbeam); }
.js-motion .fv-thanks__box .lid { animation: fv-lid 1400ms var(--ease-spring) 300ms both; }
@keyframes fv-lid { 0% { transform: none; } 60% { transform: translate3d(-8px, -26px, 0) rotate(-22deg); } 100% { transform: translate3d(-6px, -20px, 0) rotate(-16deg); } }
.fv-noscript { padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); }

@media (prefers-reduced-motion: reduce) {
  .fv *, .fv *::before, .fv *::after { animation: none !important; transition: none !important; }
}

/* Phones: the price and quantity come right after the photo; "What's inside" follows. */
@media (max-width: 899px) {
  .fv-pdp__media { display: contents; }
  .fv-pdp__hero { order: 1; }
  .fv-pdp__buy { order: 2; }
  .fv-inside { order: 3; margin-top: 0; }
}
@media (max-width: 459px) { .fv-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* body.mk sets `.mk p { margin: 0 0 1em }`; these need their own spacing. */
.fv .fv-qty__out { margin: 14px 0 16px; }
.fv .fv-card__age, .fv .fv-card__tag, .fv .fv-price, .fv .fv-concept-note, .fv .fv-x__msg, .fv .fv-ship, .fv .fv-nudge, .fv .fv-prefill p, .fv .fv-allergen p, .fv .fv-pairs p { margin-top: 0; margin-bottom: 0; }
.fv .fv-pairs p { margin-bottom: 8px; }
.fv .fv-nudge { margin-top: 10px; }
.fv .fv-fine { margin: 10px 0 0; }
.fv .fv-from { margin: 0 0 22px; }
.fv .fv-band__note { margin: 12px 4px 0; }
.fv .fv-wait__msg { margin: 0; }
@media (max-width: 479px) { .fv-from { flex-direction: column; align-items: flex-start; gap: 2px; } .fv-from > span { display: none; } }
