/* Gift voucher pages: /studio/place/cadeaubon/. Built on studio.css tokens and place.css's form parts. */

/* Gold as text needs more weight on cream than gold as decoration: #8a6210 is 4.85:1 on the page and the card
   (WCAG AA for any size); the brighter golds stay for dots, rules and the dark theme, where they already pass. */
main.vc { --venture: #8a6210; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main.vc { --venture: #d4a531; } }
:root[data-theme="dark"] main.vc { --venture: #d4a531; }

/* ---------- The card, as it prints (the PDF's face, drawn in HTML) ---------- */
.vc-card {
  --card-bg: #f4f1ea; --card-ink: #16201e; --card-ink-2: #4b5551; --card-gold: #c08a1e; --card-gold-text: #8a6210;
  display: grid; grid-template-columns: 45% 1fr; aspect-ratio: 190 / 134; width: 100%; max-width: 620px;
  border-radius: 10px; overflow: hidden; background: var(--card-bg); color: var(--card-ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 18px 40px -18px rgb(0 0 0 / 0.35);
  container-type: inline-size;
}
.vc-card__img { position: relative; background: #8d8f8c; min-height: 0; }
.vc-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-card__face { display: flex; flex-direction: column; gap: 1.6cqi; padding: 4.2cqi 4cqi 3.6cqi; min-width: 0; }
.vc-card__brand { font: 700 1.35cqi/1 var(--font-text); letter-spacing: 0.14em; color: var(--card-ink-2); }
.vc-card__title { font: 600 6.6cqi/1 var(--font-display); letter-spacing: -0.01em; color: var(--card-ink); margin-top: 0.8cqi; }
.vc-card__title::after { content: "."; color: var(--card-gold); }
.vc-card__line { font: italic 400 2.05cqi/1.3 var(--font-display); color: var(--card-ink-2); padding-bottom: 1.4cqi; border-bottom: 1px solid rgb(22 32 30 / 0.15); }
.vc-card__for { font: 600 3cqi/1.15 var(--font-display); }
.vc-card__note { font: italic 400 2.1cqi/1.35 var(--font-display); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.vc-card__from { font: italic 400 2.1cqi/1.3 var(--font-display); color: var(--card-ink-2); }
.vc-card__hint { font: 400 2.05cqi/1.3 var(--font-display); }
.vc-card__hint::before { content: attr(data-label); display: block; font: 700 1.3cqi/1.4 var(--font-text); letter-spacing: 0.1em; color: #1f6f63; }
.vc-card__foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 2cqi; }
.vc-card__value { font: 700 4.8cqi/1 var(--font-display); color: var(--card-gold-text); font-variant-numeric: tabular-nums; }
.vc-card__kind { font: 700 1.5cqi/1.3 var(--font-text); margin-top: 0.8cqi; }
.vc-card__scan { font: 700 1.5cqi/1.3 var(--font-text); color: #1f6f63; margin-top: 1.6cqi; }
.vc-card__small { font: 400 1.4cqi/1.35 var(--font-text); color: var(--card-ink-2); }
.vc-card__qr { flex: none; width: 15cqi; display: grid; gap: 0.6cqi; justify-items: center; }
.vc-card__qr > :first-child { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 0.8cqi; padding: 0.9cqi; display: grid; place-items: center; }
.vc-card__qr svg { width: 100%; height: auto; display: block; }
.vc-card__qr .vc-qr-ph { width: 100%; height: 100%; background:
  repeating-conic-gradient(var(--card-ink) 0 25%, #fff 0 50%) 0 0 / 18% 18%; opacity: 0.18; border-radius: 2px; }
.vc-card__code { font: 700 1.45cqi/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- Hero ---------- */
.vc-hero .pl-hero__grid { align-items: center; }
.vc-hero__card { display: grid; gap: var(--space-xs); justify-items: center; }
.vc-hero__card .vc-card { transform: rotate(-1.6deg); }
.vc-hero__caption { font-size: 0.86rem; color: var(--ink-2); text-align: center; }
.vc-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--ink-2); }
.vc-facts li { display: flex; align-items: center; gap: 0.45rem; }
.vc-facts li::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--venture); }

/* ---------- The form ---------- */
.vc-buy { display: grid; gap: var(--space-l); align-items: start; }
.vc-form { display: grid; gap: var(--space-m); padding: var(--space-m); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.vc-form .pm-card { align-items: flex-start; }
.vc-form .pm-card .pm-price { color: var(--ink); font-size: 1.05rem; }
.vc-pair { display: grid; gap: var(--space-xs); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.vc-amount { display: flex; align-items: center; gap: 0.5rem; max-width: 14rem; }
.vc-amount span { font-weight: 650; font-size: 1.15rem; }
.vc-count { font-size: 0.8rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.vc-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); padding-top: var(--space-s); border-top: 1px solid var(--line); }
.vc-total .btn { flex: 1 1 16rem; justify-content: center; }
.vc-error { padding: 0.75rem 0.9rem; border-radius: var(--radius-s); background: color-mix(in oklab, #c2342c 12%, var(--surface)); color: var(--ink); font-size: 0.95rem; }
.vc .pm-input[aria-invalid="true"] { border-color: #c2342c; box-shadow: inset 0 0 0 1px #c2342c; }
.vc-notice { padding: 0.75rem 0.9rem; border-radius: var(--radius-s); background: var(--surface-2); font-size: 0.95rem; }
.vc-preview { position: sticky; top: var(--space-m); display: grid; gap: var(--space-xs); justify-items: center; }
.vc-preview__label { font: 650 0.82rem/1.2 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); justify-self: start; }

/* ---------- The journey and the honest dates ---------- */
.vc-journey { display: grid; gap: var(--space-m); list-style: none; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.vc-journey li { counter-increment: s; display: grid; gap: var(--space-2xs); align-content: start; padding-top: var(--space-s); border-top: 2px solid var(--ink); }
.vc-journey li::before { content: counter(s); font: 600 var(--step-3)/1 var(--font-display); color: var(--venture); }
.vc-journey h3 { font-size: var(--step-1); }
.vc-journey p { color: var(--ink-2); }
.vc-journey .vc-when { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.vc-dates { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.vc-dates > div { display: grid; gap: 0.2rem var(--space-m); grid-template-columns: minmax(9rem, 14rem) 1fr; padding-block: var(--space-xs); border-bottom: 1px solid var(--line); }
.vc-dates dt { font-weight: 650; }
.vc-dates dd { margin: 0; color: var(--ink-2); }
.vc-faq { display: grid; gap: var(--space-2xs); }
.vc-faq details { border-bottom: 1px solid var(--line); padding-block: var(--space-xs); }
.vc-faq summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.vc-faq details p { color: var(--ink-2); margin-top: var(--space-2xs); max-width: var(--measure); }
.vc-lang { font-size: 0.9rem; }
.vc-lang a { color: var(--ink-2); }

/* ---------- Thank-you page ---------- */
.vc-thanks { display: grid; gap: var(--space-l); align-items: start; }
.vc-thanks__card { display: grid; gap: var(--space-s); justify-items: center; }
.vc-wait { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-2); }
.vc-wait::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: vc-spin 0.9s linear infinite; }
@keyframes vc-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .vc-wait::before { animation: none; } .vc-hero__card .vc-card { transform: none; } }
.vc-code { font: 700 clamp(1.3rem, 1rem + 1.5vw, 1.9rem)/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.05em; overflow-wrap: anywhere; }
.vc-summary { display: grid; gap: 0; margin: 0; }
.vc-summary > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-s); padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
.vc-summary dt { color: var(--ink-2); }
.vc-summary dd { margin: 0; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .vc-hero .pl-hero__grid { grid-template-columns: 1.05fr 1fr; }
  .vc-buy { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .vc-thanks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .vc-preview { position: static; }
}

/* ---------- Consent banner (only when a pixel id is set) ---------- */
.vc-consent { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; justify-content: space-between;
  padding: var(--space-s) max(16px, env(safe-area-inset-right, 0px)) calc(var(--space-s) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgb(0 0 0 / 0.35); }
.vc-consent__text { flex: 1 1 28rem; min-width: 0; display: grid; gap: 0.2rem; }
.vc-consent h2 { font: 650 1rem/1.3 var(--font-text); }
.vc-consent p { font-size: 0.92rem; color: var(--ink-2); max-width: 70ch; }
.vc-consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.vc-consent__actions .btn { min-width: 9rem; justify-content: center; }
.vc-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* The till: big targets for a phone at a busy table. */
.vc-till__code { font-family: ui-monospace, monospace; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.vc-till__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.vc-till__chips label { position: relative; }
.vc-till__chips input { position: absolute; opacity: 0; inset: 0; }
.vc-till__chips span { display: inline-block; min-width: 4.5rem; padding: .8rem 1rem; text-align: center; font-weight: 700; border: 2px solid var(--line, #d6d2c8); border-radius: 999px; background: var(--surface, #fffdf8); cursor: pointer; }
.vc-till__chips input:checked + span { border-color: var(--accent, #1f6f63); background: var(--accent, #1f6f63); color: #fff; }
.vc-till__chips input:focus-visible + span { outline: 3px solid var(--accent, #1f6f63); outline-offset: 2px; }
.vc-till__status { min-height: 1.5em; font-weight: 700; }
.vc-till__charge { margin: .5rem 0 0; font-size: 1.25rem; font-weight: 700; }
.vc-markt { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid currentColor; border-radius: 8px; }
.vc-till__status[data-kind="good"] { color: var(--accent, #1f6f63); }
.vc-till__status[data-kind="bad"] { color: #a1331f; }
.vc-till__list { padding-left: 1.2rem; font-family: ui-monospace, monospace; font-size: .9rem; }
