/* The pass as Apple Wallet and Google Wallet show it (preview.js). Used by index.html and preview.html. */
/* No iOS text autosizing: in the app's web view it enlarged the text before the frame had its size, so preview.js shrank
   the lines to fit and they stayed about half size (the user's Card design, 2026-11-25). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.pv-apple, .pv-google { color: #fff; border-radius: 14px; overflow: clip; max-width: 320px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 13px; position: relative; }
/* Tap the card to see the rewards menu, like on a real pass. */
.pv-more { margin-left: auto; flex: none; border: 0; border-radius: 999px; padding: 2px 10px; background: rgba(255,255,255,.22); color: inherit; font: 700 14px/1.2 inherit; letter-spacing: .1em; cursor: pointer; }
.pv-back { display: none; position: absolute; inset: 0; z-index: 2; padding: 14px; overflow: auto; background: inherit; }
.show-back .pv-back { display: flex; flex-direction: column; } /* text at the top, hours then "Fermer" at the bottom */
.pv-hours { margin-top: auto; padding-top: 16px; }
.pv-back .pv-close { margin-top: 12px; align-self: flex-start; }
.pv-back ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.pv-back li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 6px; }
.pv-back button { border: 0; border-radius: 999px; padding: 6px 14px; background: rgba(255,255,255,.22); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.pv-google.menu { cursor: pointer; }
.pv-scans { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.pv-gmenu { padding: 0 14px 10px; font-size: 12px; opacity: .9; white-space: nowrap; }
.pv-end { margin-left: auto; text-align: right; font-weight: 600; line-height: 1.2; } .pv-end small { display: block; font-size: 9px; opacity: .8; letter-spacing: .04em; }
.pv-end + .pv-more { margin-left: 8px; }
.pv-next { margin: 0 14px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; gap: 2px; }
.pv-next small { font-size: 10px; opacity: .8; letter-spacing: .04em; margin-top: 4px; } .pv-next small:first-child { margin-top: 0; }
.pv-next b { font-size: 16px; line-height: 1.25; } .pv-google .pv-next b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* one row, like Apple; Google draws its own text size */ .pv-apple .pv-next, .pv-google .pv-next { background: none; padding: 0; margin: 0 14px 12px; } /* plain rows, like the real passes */ .pv-next span { font-size: 12px; opacity: .95; }
.pv-top { padding: 7px 11px; min-height: 39px; display: flex; align-items: center; gap: 8px; } .pv-top img { max-height: 42px; max-width: 152px; display: block; } /* as measured on the user's iPhone (2026-11-25): a logo up to 47.5% of the card wide and 13% high, a wide one shrunk to the width, never cut; the name after it is cut with … */
.pv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.3px; font-weight: 500; } /* the real header (2026-11-25): about 53 px tall with or without a logo, the name medium weight */
.pv-strip { aspect-ratio: 375 / 123; background: rgba(255,255,255,.12) center / cover; display: flex; align-items: flex-end; padding: 10px 14px; box-sizing: border-box; }
.pv-strip span { font-size: 22px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.pv-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.pv-row small, .pv-gpts small { display: block; opacity: .8; font-size: 10px; letter-spacing: .04em; }
.pv-row div:last-child:not(:only-child) { text-align: right; } .pv-row > div { min-width: 0; } .pv-row b { overflow-wrap: anywhere; }
.pv-qr { background: #fff; width: 96px; margin: 4px auto 16px; padding: 6px; border-radius: 8px; text-align: center; } .pv-qr small { color: #333; font-size: 10px; } .pv-qr svg { display: block; width: 100%; height: auto; }
.pv-ghead { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; font-size: 12px; }
.pv-dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #333; display: grid; place-items: center; overflow: hidden; font-weight: 700; }
.pv-dot img { width: 70%; height: 70%; object-fit: contain; } /* Google's round logo: 70 % by default, the owner's zoom when sent (2026-12-03) */
.pv-gwide { max-height: 36px; max-width: 100%; display: block; }
.pv-gtitle { padding: 8px 14px 4px; font-size: 18px; font-weight: 600; }
.pv-gpts { padding: 6px 14px 12px; display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 24px; }
.pv-gpts small { grid-row: 1; } .pv-gpts b { grid-row: 2; font-size: 16px; }
.pv-hero { aspect-ratio: 1032 / 336; background: center / cover; position: relative; }
.pv-strip, .pv-hero { position: relative; }
.pv-prow { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-top: 2px; } .pv-prow b { font-size: 12px; } .pv-prow span { font-size: 10px; color: #3a3a3c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-pbar { position: relative; height: 6px; margin: 4px 0 2px; background: color-mix(in srgb, currentColor 30%, transparent); border-radius: 3px; display: flex; justify-content: space-between; align-items: center; }
.pv-pbar i { width: 8px; height: 8px; border-radius: 50%; background: transparent; border: 1.5px solid color-mix(in srgb, currentColor 60%, transparent); box-sizing: border-box; }
.pv-pbar i.on { background: currentColor; border-color: currentColor; } /* knotted line (offersvg.js), when the SVG strip isn't drawn */
.pv-band { padding: 6px 14px 8px; }
.pv-cap { position: absolute; top: 6px; left: 32px; max-width: calc(100% - 64px); background: rgba(0,0,0,.6); color: #fff; font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pv-band .pv-prow b { font-size: 13px; } .pv-band .pv-prow span { font-size: 11px; color: inherit; opacity: .85; }
.pv-mark { box-shadow: 0 0 0 2.5px var(--pv-mark, #FF3B30); border-radius: 6px; } /* where the text goes (preview.js d.mark) */
.pv-mark.pv-in { box-shadow: inset 0 0 0 2.5px var(--pv-mark, #FF3B30); border-radius: 12px; } /* the full-width top line: inside, the card clips outside */
.pv-focus { outline: 2px solid #FFD60A; outline-offset: 2px; border-radius: 4px; } /* the part being typed */
/* The strip drawn by offersvg.js, in the pass's own font. Apple shows the strip at about 377x145 and crops its sides. */
@font-face { font-family: Poppins; font-weight: 400; src: url(/cards/fonts/poppins-400.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 600; src: url(/cards/fonts/poppins-600.ttf) format("truetype"); font-display: swap; }
.pv-svg { padding: 0; background: none; display: block; }
.pv-strip.pv-svg { aspect-ratio: 377 / 145; }
.pv-hero.pv-svg { aspect-ratio: 750 / 246; }
.pv-svg svg { display: block; width: 100%; height: 100%; }
.pv-1line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* a pass field value: one line */
/* Apple's back: Wallet's pass details sheet (preview.js appleSheet), in place of the front, no Close button. */
.pv-apple.show-back { background: #1c1c1e !important; color: #fff !important; }
.pv-apple.show-back > :not(.pv-sheet) { display: none; }
.pv-apple.show-back .pv-sheet { display: block; position: static; padding: 6px 16px; overflow: visible; }
.pv-field { display: grid; gap: 3px; padding: 11px 0; border-bottom: 0.5px solid #38383a; font-size: 15px; line-height: 1.3; }
.pv-field:last-child { border-bottom: 0; }
.pv-field b { font-weight: 400; color: #fff; overflow-wrap: anywhere; }
.pv-field span { color: #8e8e93; white-space: pre-line; overflow-wrap: anywhere; }
.pv-field.pv-row { grid-template-columns: 1fr auto; gap: 12px; } /* a menu item: name, then the price at the far right, as iOS shows a short value */

/* The Apple front at an iPhone's proportions (a store card is about 0.68 wide for 1 tall, the user's photo 2026-11-24): the
   offer row full width, its value large and light; the QR code low, near the bottom edge. Taller content still fits. */
.pv-apple:not(.show-back) { aspect-ratio: 755 / 1105; display: flex; flex-direction: column; }
.pv-apple:not(.show-back) > .pv-qr { margin: auto auto 12px; width: 111px; padding: 8px; } /* about 40% of the card wide with its margin */
.pv-info { display: block; } .pv-info > div { width: 100%; }
.pv-info b { display: block; font-weight: 300; font-size: 21px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-row:empty { display: none; } /* a points card with its bar: no row before the offer row, as on the iPhone */
/* The offer row on the Apple front sized like Wallet, measured on the user's real pass (2026-11-25): "Tap the card → ··· →
   Pass details" fills 91.5% of the width; the label "TO SEE OUR MENU & OFFERS" 42%. In px of the 320 px card (it's drawn
   320 wide and zoomed, preview.html fit): container units came out about half size in the app's web view (2026-11-25). */
/* --fit: the shrink preview.js sets when a line is too long (1 = full size); the size is never read back (2026-11-25). */
.pv-info b { font-size: calc(21.6px * var(--fit, 1)); }
.pv-info small { font-size: calc(9.5px * var(--fit, 1)); font-weight: 600; letter-spacing: 0 !important; } /* semibold, as on the real pass (2026-11-25) */
.pv-apple .pv-info { padding: 4px 12px 12px; } /* Wallet's margin, 30/754 of the card: the line fits without shrinking */
