/* Mirapages — the price list (home #services), the booking sheet's grouped picker, add-ons and estimate,
   the waiting list (sheet and dashboard), "Your VIP card", the nav/footer VIP link and order discounts.
   Spec: docs/prices-waitlist-vip-contract.md. Tokens in docs/design-tokens.md. */

/* Nav: "VIP", an icon pill like Shop */
.nav__vip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .9375rem; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav__vip:hover, .nav__vip[aria-current="page"] { color: var(--fg); background: rgba(29, 26, 20, .06); }
.nav__vip-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .nav__vip { justify-content: center; padding: 0; width: 44px; }
  .nav__vip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 400px) { .nav__vip { width: 36px; min-width: 36px; } .nav__shop, .nav__account { width: 36px; min-width: 36px; } }
@media (min-width: 1081px) { .nav__links ~ .nav__vip { padding-inline: 10px; } }

.footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__links a { color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: var(--accent-text); }

/* Home: the price list */
.services__note b { color: var(--accent-text); font-weight: 700; }
.group__title { display: grid; gap: 4px; min-width: 0; }
.group__sub { color: var(--muted); font-size: .9375rem; }
.group__rule { margin: 0 0 6px; font-size: .875rem; font-weight: 600; color: var(--accent-text); }
.svc__price { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.addon-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.addon-chips--svc { margin-top: 6px; }
.addon-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.group__addons { display: grid; gap: 8px; padding: 0 4px 18px; }
.group__label { font-size: .8125rem; font-weight: 600; color: var(--accent-text); }
.group__notes { margin: 0; padding: 0 4px 28px 22px; display: grid; gap: 4px; color: var(--muted); font-size: .875rem; }
.group__list + .group__notes, .group__list + .group__addons { margin-top: -14px; }

/* Booking sheet: groups that open and close */
.pick-group { border-bottom: 1px solid rgba(29, 26, 20, .1); }
.pick-group:first-child { border-top: 1px solid rgba(29, 26, 20, .1); }
.pick-group__head { width: 100%; min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; padding: 12px 2px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.pick-group__name { font-weight: 700; }
.pick-group__sub { font-weight: 500; color: rgba(29, 26, 20, .6); }
.pick-group__count { font-size: .8125rem; color: rgba(29, 26, 20, .6); white-space: nowrap; }
.pick-group__icon { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(29, 26, 20, .18); position: relative; transition: transform .35s var(--ease), background-color .25s; }
.pick-group__icon::before, .pick-group__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.pick-group__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.pick-group.is-open .pick-group__icon { background: var(--copper); border-color: var(--copper); }
.pick-group.is-open .pick-group__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.pick-group__body { display: grid; gap: 10px; padding: 0 0 16px; animation: stepFwd .35s var(--ease); }
.pick-group__rule { font-size: .8125rem; font-weight: 600; color: var(--copper-deep); }
.pick-group__notes { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: .8125rem; color: rgba(29, 26, 20, .62); }
.pick__price { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.pick-addons { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(196, 131, 90, .08); }
.pick-addons__label { font-size: .8125rem; font-weight: 600; color: var(--copper-deep); }
.pick-addons__list { display: flex; flex-wrap: wrap; gap: 8px; }
.addon-toggle { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(29, 26, 20, .15); background: #fff8ef; color: var(--ink); font: 600 .875rem/1.2 var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .2s, border-color .2s, color .2s; }
.addon-toggle:hover { border-color: var(--copper); }
.addon-toggle.is-on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.addon-toggle.is-on::before { content: "✓ "; }

/* The estimate: footer line, review block, dashboard card */
.est-foot { display: grid; gap: 2px; text-align: center; }
.est-foot__row { font-size: .875rem; color: rgba(29, 26, 20, .75); }
.est-foot__total { color: var(--ink); font-variant-numeric: tabular-nums; }
.est-foot__note { font-size: .75rem; color: rgba(29, 26, 20, .6); text-wrap: balance; }
.bk-review { margin-bottom: 20px; }
.bk-review .pay-summary { margin-bottom: 10px; }
.est { display: grid; gap: 4px; padding: 12px 16px; border-radius: 18px; border: 1.5px solid rgba(196, 131, 90, .35); background: #fff8ef; }
.est__row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.est__row--off { color: var(--copper-deep); font-weight: 600; }
.est__row--total b { font-size: 1.0625rem; }
.est__note { font-size: .8125rem; color: rgba(29, 26, 20, .65); text-wrap: pretty; }
.est__note b { color: var(--copper-deep); }
.est__note--pay { margin: -6px 0 12px; }
.est--compact { padding: 10px 14px; margin-top: 4px; text-align: left; }
.done .est { width: 100%; max-width: 420px; margin-top: 10px; }

/* Waiting list: offer under the calendar, the form, signed out */
.wl-offer { display: grid; justify-items: center; gap: 8px; margin-top: 22px; padding: 16px; border-radius: 18px; border: 1.5px dashed rgba(29, 26, 20, .2); text-align: center; }
.wl-offer__text { font-weight: 600; font-size: .9375rem; }
.wl-offer__btn { min-height: 44px; }
.wl-intro { color: rgba(29, 26, 20, .72); text-wrap: pretty; }
.wl-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-dates + .field__hint { margin-top: -10px; }
.wl-parts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wl-parts legend { margin-bottom: 8px; padding: 0; }
.wl-part { position: relative; }
.wl-part input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wl-part span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(29, 26, 20, .15); background: #fff8ef; font-weight: 600; font-size: .9375rem; transition: background-color .2s, border-color .2s, color .2s; }
.wl-part input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.wl-part input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.wl-out { display: grid; gap: 12px; text-align: center; justify-items: center; padding-top: 8px; }
.wl-out__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
@media (max-width: 380px) { .wl-dates { grid-template-columns: 1fr; } }

/* Dashboard: waiting list (and #vip): clear of the fixed nav when linked to */
#waitlist, #vip { scroll-margin-top: 96px; }
.awl__svcs { font-weight: 600; overflow-wrap: anywhere; }
.awl__meta { font-size: .875rem; color: var(--muted); }
.awpill--waiting { background: rgba(196, 131, 90, .18); color: var(--copper-deep); }
.awpill--offered { background: var(--copper); color: var(--ink); }
.awpill--booked { background: rgba(7, 193, 96, .14); color: #067a3d; }
.awl-offer { display: grid; gap: 10px; margin-top: 8px; padding: 16px; border-radius: 20px; background: rgba(196, 131, 90, .14); border: 1.5px solid rgba(196, 131, 90, .4); }
.awl-offer__text { font-weight: 600; text-wrap: pretty; }
.awl-offer__est { font-size: .875rem; color: var(--copper-deep); font-weight: 600; }
.awl-booked { margin-top: 8px; }
.awl .pay-cancel { justify-items: start; text-align: left; margin-top: 4px; }
.awl .pay-cancel__actions { justify-content: flex-start; }
@media (min-width: 900px) { .awl-offer, .awl-booked, .awl .pay-cancel.is-open { max-width: 560px; } }

/* Dashboard: your VIP card */
.vipm-list__cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .vipm-list__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vipm { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; border-radius: 22px; background: var(--card); border: 1.5px solid rgba(196, 131, 90, .4); }
.vipm--expired, .vipm--cancelled { opacity: .7; border-color: var(--hair); }
.vipm__img, .vipm__mark { width: 84px; height: 100px; border-radius: 42px 42px 12px 12px; object-fit: cover; background: var(--sand); }
.vipm__mark { display: block; border: 1.5px solid var(--line); }
.vipm__main { display: grid; gap: 6px; min-width: 0; }
.vipm__name { font: italic 600 1.375rem/1.15 var(--serif); color: var(--accent-text); overflow-wrap: anywhere; }
:lang(zh) .vipm__name { font: 700 1.125rem/1.3 var(--sans); }
.vipm__status { font-weight: 600; font-size: .9375rem; }
.vipm__perks { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: .875rem; }
.vipm__benefits { font-size: .875rem; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }

/* Orders: the VIP discount the server took off */
.order-discount { font-size: .875rem; font-weight: 600; color: var(--copper-deep); font-variant-numeric: tabular-nums; }
.co-total--sub span, .co-total--sub b { font-size: .9375rem; color: var(--muted); }
.co-total--off span, .co-total--off b { font-size: .9375rem; color: var(--copper-deep); }
.co-rule { font-size: .8125rem; color: var(--muted); text-wrap: pretty; }
