/* ============================================================================
   lv.css -- the loyalty sign-up site and the voucher shop in the ORVO Online look (loyvou-1122, 22 Nov 2026).
   Their own shapes only: the side column, the form, the reward tiles, the mode line, How It Works, the done card,
   the wallet keys, the details switch, the amount boxes, the law line and the footer at the foot.
   Both sites load, in this order, from orvopos.com:
       https://orvopos.com/order/css/order.css?v=<order.css's stamp>
       https://orvopos.com/order/css/lv.css?v=1
       https://orvopos.com/order/css/designs.css?v=1
   Every colour here is an order.css token (its PART 4 and PART 5), so Light, Dark and Follow the phone work exactly as
   on Online (<html data-theme>). A design's own look is designs.css's, never this file's.
   No backdrop-filter, no see-through card, no pill shape: a box takes the page's corner, only round things are circles.
   (c) 2026 ORVO Software -- orvopos.com
   ============================================================================ */

/* custpages-1123 B4B: the Customise card's rows (orvoPageLookVars), each read with the design's own value as its fallback */
/* 1. THE SIDE COLUMN shows on every width: under the column on a phone and a tablet, beside it from 1024 (Online's
      .ol-aside, which Online hides under 1024 because its basket has a sheet there). The page: .ol-wrap.is-step.lv-twocol,
      the column .ol-aside.lv-always. */
.ol-aside.lv-always { display: block; }
@media (max-width: 1023px) {
    .lv-twocol .ol-main { padding-bottom: 0; }
    .ol-aside.lv-always { padding-bottom: 40px; }
}
/* From 1024 the two columns start level and the side column keeps the main column's 48px above the footer */
@media (min-width: 1024px) {
    .lv-twocol .ol-main > :first-child { margin-top: 0; }
    .ol-aside.lv-always { padding-bottom: 48px; }
}

/* 2. THE FORM. The tabs are Online's shop tabs (.card-tabs.ol-shops, 44px), the card's full width inside a card, equal
      widths but never a word on two lines (a tab is at least its own word wide). A heading and its line sit close, on the
      card or one box deeper in the card's panel: the loyalty join card's <div class="tab-panel">, the voucher card's
      <div class="card-panel"> (Buy, Check, Recover). */
.glass-card > .card-tabs.ol-shops { max-width: none; margin-bottom: 18px; }
.glass-card > .card-tabs.ol-shops .card-tab { flex: 1 1 0; min-width: max-content; padding: 10px 6px; white-space: nowrap; }
.glass-card > .section-title + .ol-say,
.glass-card > .tab-panel > .section-title + .ol-say,
.glass-card > .card-panel > .section-title + .ol-say { margin: -8px 0 16px; }
.lv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lv-hint { font-size: calc(12px * var(--ts, 1)); color: var(--mute); margin-top: 6px; line-height: 1.45; }
.lv-tick { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 12px; }
.lv-tick:last-child { margin-bottom: 2px; }
.lv-tick input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.lv-tick label { font-size: calc(13.5px * var(--ts, 1)); line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.lv-tick a, .lv-foot a, .lv-hintline a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.form-group.lv-labelonly { margin-bottom: 0; }
/* A heading the pages keep word for word (<h2>Welcome, <span id="success-name"></span>!</h2>, <h1 id="heading">) sits bare
   inside its title box (.section-title.ol-thanks) and wears the box's own type */
.section-title > h1, .section-title > h2 { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }

/* 3. REWARDS YOU CAN EARN: tiles on the card, two across, never a sideways scroll. The tile's inside is the loyalty page's
      own, kept word for word: <div class="lv-reward"><div class="pts">10</div><div class="pts-label">stamps</div>
      <div class="label">Free coffee</div></div>, in <div class="lv-rewards">. */
.lv-rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) and (max-width: 1023px) { .lv-rewards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lv-reward { background: var(--surface-2); border-radius: min(var(--radius), 12px); padding: 14px 10px 12px; text-align: center; }
.lv-reward .pts { display: block; font-size: calc(26px * var(--ts, 1)); line-height: 1.1; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.lv-reward .pts-label { display: block; margin-top: 2px; font-size: calc(11px * var(--ts, 1)); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--mute); }
.lv-reward .label { display: block; margin-top: 8px; font-size: calc(13.5px * var(--ts, 1)); font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }

/* 4. THE MODE LINE (loyalty .mode-info, and the voucher hint on the loyalty card page): a box on the page's paper */
.lv-mode { margin: 0 0 14px; padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 8%, var(--card-bg)); font-size: calc(13.5px * var(--ts, 1)); line-height: 1.55; color: var(--ink-2); }
.lv-mode strong:first-child { color: var(--accent-text); }

/* 5. HOW IT WORKS (loyalty .step): the number in a box, not a circle */
.lv-step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.lv-step + .lv-step { border-top: 1px solid var(--hair); }
.lv-step:last-child { padding-bottom: 0; }
.lv-num { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: min(var(--radius), 8px);
    background: var(--accent); color: var(--accent-ink, var(--btn-text)); font-size: calc(15px * var(--ts, 1)); font-weight: 700; }
.lv-step h3 { font-size: calc(15px * var(--ts, 1)); font-weight: 700; color: var(--ink); margin: 5px 0 2px; }
.lv-step p { font-size: calc(13.5px * var(--ts, 1)); line-height: 1.5; color: var(--ink-3); }

/* 6. THE DONE CARD: Online's thank-you (.ol-thanks) in the total card (.summary-card.ol-sum.lv-done). The pages' own marks,
      kept by name: the tick .status-indicator (and .success, .pending while the voucher is being made), the mark of a
      voucher not found .error-icon, the badge .status-badge with its .dot. A badge is green only when it says it is good
      (.status-active). A badge with no colour of its own is the plain neutral on the house's --surface-2, so a refunded
      gift or any later state never reads as good news. Its words are --ink-3 in Light (about 5:1 on the surface) and
      order.css's own --mute in Dark, said again for Follow the phone on a dark phone. The badge's colour for a used or
      ended gift (.status-expired, .status-redeemed, success.php's .status-cancelled) stays the pages' own rule; every
      neutral rule has no weight of its own (:where) so those always win. */
.lv-done { text-align: center; }
.lv-done .summary-label, .lv-done .summary-amount { text-align: center; }
.lv-done .summary-row { text-align: left; }
.lv-done > .ol-say { margin: 0 0 16px; }
.status-indicator, .error-icon { position: relative; width: 56px; height: 56px; margin: 4px auto 12px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, var(--card-bg)); color: var(--ok); }
.status-indicator svg, .error-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.status-indicator.pending { background: var(--surface-2); color: var(--accent-text); }
.status-indicator.pending::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent;
    border-top-color: var(--accent); animation: lv-spin 1s linear infinite; }
.error-icon { background: color-mix(in srgb, #dc2626 12%, var(--card-bg)); color: #dc2626; }
.error-icon svg { stroke-width: 2; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status-indicator.pending::after { animation-duration: 3s; } }
.summary-row-label .lv-ic { width: 15px; height: 15px; margin: 0 6px -2px 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: min(var(--radius), 8px);
    font-size: calc(12px * var(--ts, 1)); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
:where(.status-badge) { background: var(--surface-2); color: var(--ink-3); }
:where(html[data-theme="dark"] .status-badge) { color: var(--mute); }
@media (prefers-color-scheme: dark) { :where(html[data-theme="auto"] .status-badge) { color: var(--mute); } }
.status-badge.status-active { background: color-mix(in srgb, var(--ok) 14%, var(--card-bg)); color: var(--ok); }
.status-badge.status-pending { background: color-mix(in srgb, var(--accent) 12%, var(--card-bg)); color: var(--accent-text); }
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 7. THE WALLET KEYS (loyalty .wallet-btn, voucher .btn-wallet): the wallets' own black and white, the page's corner.
      Which key shows (an iPhone Apple, an Android phone Google, a computer both) stays the pages' own script. */
.lv-wallets { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.lv-wallet { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px;
    border-radius: var(--radius); font-family: var(--font); font-size: calc(16px * var(--ts, 1)); font-weight: 600; text-decoration: none; }
.lv-wallet svg { width: 20px; height: 20px; flex: none; }
.lv-wallet.apple { background: #000; color: #fff; border: 1px solid var(--hair-3); }
.lv-wallet.google { background: #fff; color: #1a1a2e; border: 1px solid var(--line); }

/* 8. THE TIP UNDER THE KEYS (loyalty .success-tip, its words in their own <p>) and the loyalty line (voucher .loyalty-hint) */
.lv-tip { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, transparent);
    font-size: calc(13.5px * var(--ts, 1)); line-height: 1.5; color: var(--ink-2); text-align: center; }
.lv-hintline { margin: 0 0 14px; font-size: calc(13.5px * var(--ts, 1)); line-height: 1.5; color: var(--mute); text-align: center; }

/* 9. YOUR DETAILS (loyalty .details-block, .details-switch): Online's card; the switch is the page's own (a track, a knob) */
.lv-switchrow { display: flex; align-items: center; gap: 14px; }
.lv-switchrow > span:first-child { flex: 1; font-size: calc(14px * var(--ts, 1)); line-height: 1.5; color: var(--ink-2); }
.lv-switch { position: relative; flex: none; }
.lv-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.lv-switch .track { display: block; width: 48px; height: 28px; border-radius: 14px; background: var(--hair-3); }
.lv-switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.lv-switch input:checked ~ .track { background: var(--accent); }
.lv-switch input:checked ~ .knob { transform: translateX(20px); }
.lv-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: calc(12.5px * var(--ts, 1)); line-height: 1.8; color: var(--mute); }

/* 10. THE AMOUNTS (voucher .amount-btn, .custom-amount-row): Online's picked-choice edge (.delivery-radio.selected) */
.lv-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.lv-amount { min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--field-bg); color: var(--ink);
    font-family: var(--font); font-size: calc(18px * var(--ts, 1)); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.lv-amount.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--field-bg)); box-shadow: inset 0 0 0 1px var(--accent); }
.form-group.lv-other { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.form-group.lv-other > span { font-size: calc(18px * var(--ts, 1)); font-weight: 700; color: var(--mute); }
.form-group.lv-other input { font-weight: 700; font-size: calc(18px * var(--ts, 1)); }

/* 11. THE LAW LINE under Continue (voucher .legal-note), the section title's icon (.section-title.lv-withic), the choice
       with an icon (.delivery-radio .lv-ic), the total card's foot line (voucher .summary-note) */
.lv-legal { display: flex; gap: 8px; margin-top: 14px; font-size: calc(12px * var(--ts, 1)); line-height: 1.6; color: var(--mute); }
.lv-legal svg, .section-title svg, .delivery-radio .lv-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lv-legal svg { margin-top: 2px; }
.section-title.lv-withic { display: flex; align-items: center; gap: 8px; }
.section-title.lv-withic svg { stroke: var(--accent); }
.ol-pair .delivery-radio { justify-content: flex-start; }
.delivery-radio .lv-ic { color: var(--ink-3); }
.summary-card.ol-sum .summary-note { margin-top: 10px; font-size: calc(12px * var(--ts, 1)); color: var(--mute); }

/* 12. THE WAY BACK under the keys (voucher success "Back to ..."), a quiet line */
.lv-back-link { display: block; margin: 14px 0 0; text-align: center; font-size: calc(13px * var(--ts, 1)); color: var(--mute); text-decoration: none; }

/* 13. A SHORT PAGE KEEPS ITS FOOTER AT THE FOOT OF THE SCREEN: the banner, the column and the footer are the body's own
       children (the footer is the two sites' includes/footer.php) */
body { display: flex; flex-direction: column; }
body > .ol-wrap { width: 100%; }
body > .site-footer { margin-top: auto; }
