/* addons.html: the couple ticks add-ons and orders them on WhatsApp. Paper cards, serif type, one painted bow. */
.ad { padding-bottom: 24px; gap: 28px; max-width: 760px; }
.ad-intro { text-align: center; display: grid; gap: 14px; }
.ad-intro p { max-width: 40ch; margin: 0 auto; color: var(--taupe); }
.ad-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 16px; color: var(--taupe); }
.ad-steps li { counter-increment: s; white-space: nowrap; }
.ad-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; border: 1px solid var(--rose); color: var(--rose-deep); font-size: 13px; font-weight: 600; }
.ad-note { margin: 0; padding: 14px 18px; border-radius: var(--cut-b); background: var(--sage-tint); text-align: center; }

.ad-group { display: grid; gap: 12px; }
.ad-group h2.display { font-size: clamp(30px, 6vw, 42px); text-align: center; }
.ad-group > .muted { text-align: center; margin: -4px 0 4px; font-size: 17px; }
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* one add-on: a paper slip with a round tick */
.ad-item label, .ad-bundle {
  position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 18px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--champagne);
  border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.ad-item input, .ad-bundle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-tick { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--ivory); display: grid; place-items: center; }
.ad-tick::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--ivory); border-bottom: 2px solid var(--ivory); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
input:checked + .ad-tick { background: var(--rose-deep); border-color: var(--rose-deep); }
input:checked + .ad-tick::after { opacity: 1; }
input:focus-visible + .ad-tick { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.ad-item.is-picked label { border-color: var(--rose); background: #fff; }
.ad-item.is-on label { background: var(--sage-tint); border-color: transparent; cursor: default; }
.ad-item.is-on input:checked + .ad-tick { background: var(--olive); border-color: var(--olive); }
.ad-item.is-soon label { cursor: default; color: var(--taupe); }
.ad-item input:disabled:not(:checked) + .ad-tick { border-style: dashed; opacity: 0.6; }
.ad-name { min-width: 0; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.ad-price { white-space: nowrap; font-size: 18px; text-align: right; }
.ad-price s { display: block; font-size: 15px; color: var(--taupe); }
.ad-price b { font-size: 24px; font-weight: 600; color: var(--rose-deep); }
.ad-tag { display: inline-block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--rose); color: var(--rose-deep); white-space: nowrap; vertical-align: 2px; }
.ad-tag.on { border-color: var(--olive); color: var(--olive-deep); }
html[lang="zh-Hant"] .ad-tag { letter-spacing: 0.06em; font-size: 13px; }

/* the bundle: the one painted touch */
.ad-bundle { margin-top: 6px; padding: 20px 18px; background: linear-gradient(160deg, #fff 0%, var(--blush-tint) 100%); border-color: var(--blush); overflow: hidden; }
.ad-bundle.is-picked { border-color: var(--rose-deep); }
.ad-bundle-text { display: grid; gap: 4px; min-width: 0; position: relative; z-index: 1; }
.ad-bundle-text .label { font-size: 12px; color: var(--rose-deep); }
.ad-bundle-text strong { font-weight: 600; font-size: 21px; line-height: 1.25; }
.ad-bundle-text .muted { font-size: 15px; }
.ad-bundle .ad-price { position: relative; z-index: 1; }
.ad-bow { position: absolute; right: -18px; bottom: -26px; width: 110px; height: auto; opacity: 0.32; pointer-events: none; }

.ad-wish { margin-top: 4px; }
.ad-pay { text-align: center; font-size: 16px; margin: 0; }
.ad-pay .text-link { font-size: 18px; padding: 0 2px; }

/* the total + order button, stuck to the bottom of the screen */
.ad-bar {
  position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  margin: 0 calc(-1 * var(--gutter-l)) 0 calc(-1 * var(--gutter-r)); padding: 14px var(--gutter-r) calc(14px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: rgba(248, 243, 233, 0.96); border-top: 1px solid var(--champagne); box-shadow: 0 -10px 24px -18px rgba(74, 58, 45, 0.45);
}
@supports (backdrop-filter: blur(6px)) { .ad-bar { background: rgba(248, 243, 233, 0.86); backdrop-filter: blur(6px); } }
.ad-bar { flex-wrap: nowrap; }
.ad-bar.has-hint { flex-wrap: wrap; }
.ad-total { display: grid; gap: 0; flex: 0 0 auto; }
.ad-total .label { font-size: 12px; color: var(--taupe); }
.ad-total b { font-size: 28px; font-weight: 600; line-height: 1.05; white-space: nowrap; }
.ad-total .muted { font-size: 14px; }
.ad-bar .btn { flex: 1 1 auto; min-width: 0; max-width: 320px; min-height: 52px; padding: 0 18px; letter-spacing: 0.12em; }
html[lang="zh-Hant"] .ad-bar .btn { letter-spacing: 0.16em; }
.ad-bar .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.ad-hint { flex-basis: 100%; margin: 0; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--blush-tint); font-size: 15px; line-height: 1.35; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.ad-hint .chip { flex: 0 0 auto; min-height: 38px; padding: 0 14px; font-size: 15px; background: #fff; }

@media (max-width: 520px) {
  .ad-item label { grid-template-columns: 26px 1fr auto; gap: 12px; padding: 12px 14px; }
  .ad-bundle { grid-template-columns: 26px 1fr; gap: 6px 12px; padding: 16px 14px; }
  .ad-bundle .ad-price { grid-column: 2; text-align: left; }
  .ad-bundle .ad-price s { display: inline; margin-right: 8px; }
  .ad-tick { width: 26px; height: 26px; }
  .ad-name { font-size: 18px; }
  .ad-price { font-size: 16px; }
  .ad-bar .btn { max-width: none; }
}
.ad-perk { margin: 2px 0 0; text-align: center; font-size: 16px; color: var(--taupe); }
.ad-perk .text-link { font-size: 18px; padding: 0 2px; }

/* online payment: the pay button with WhatsApp as a quiet second choice under it */
.ad-actions { flex: 1 1 auto; min-width: 0; max-width: 320px; display: grid; gap: 4px; justify-items: center; }
.ad-actions .btn { width: 100%; max-width: none; }
.ad-err { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--rose-deep); text-align: center; }
.ad-waiting { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; }
.ad-waiting .chip { min-height: 38px; padding: 0 14px; font-size: 15px; background: #fff; }
