/* Customer-facing Pay at Table demo. Scoped under .pat; tokens follow the Figma file. */

.pat {
  --c-primary: #000;
  --c-secondary: rgba(0, 0, 0, 0.58);
  --c-bg-2: rgba(0, 0, 0, 0.04);
  --c-btn-2: rgba(0, 0, 0, 0.08);
  --c-stroke: rgba(0, 0, 0, 0.14);
  --c-success: #127c3a;
  --c-success-bg: #b3f3c4;
  --status: 54px; /* iPhone 17 status bar height */
  --urlbar: 58px; /* Safari's bottom address pill */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: var(--c-primary);
  font-family: Inter, system-ui, sans-serif; /* Inter everywhere in the demo */
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.pat * { box-sizing: border-box; }
.pat button { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.pat h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.1; }
.pat h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.15; }
.pat h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.pat p { margin: 0; }
.pat hr { border: 0; border-top: 1px solid var(--c-btn-2); margin: 0; }

.pat-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.pat-scroll::-webkit-scrollbar, .pat-drawer::-webkit-scrollbar { display: none; }
.pat-footer { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; background: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06); }
.pat-footer-total { font-size: 18px; }

.pat-content { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.pat-center { text-align: center; align-items: center; }
.pat-stack { display: flex; flex-direction: column; gap: 8px; }
.pat-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pat-muted { color: var(--c-secondary); }
.pat-error { color: #c62828; }
.pat-h2 { font-size: 24px; font-weight: 600; }
.pat-h3 { font-size: 20px; font-weight: 600; }

/* buttons */
.pat-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 48px; font-weight: 600 !important; font-size: 17px !important; }
.pat-btn--primary, .pat-btn--pay { background: var(--c-primary); color: #fff !important; }
.pat-btn--secondary { background: var(--c-btn-2); min-height: 48px; font-size: 16px !important; }
.pat-btn:disabled { background: #b8b8b8; color: #eee !important; cursor: default; }
.pat-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; }
.pat-icon-btn--soft { background: var(--c-btn-2); font-size: 22px !important; }
.pat-icon-btn:disabled { opacity: 0.3; cursor: default; }
.pat-chip { display: inline-block; padding: 8px 16px; border-radius: 48px; background: var(--c-primary); color: #fff; font-size: 14px; font-weight: 600; }
.pat-link-muted { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--c-secondary) !important; }

/* venue header */
.pat-venue { position: relative; display: flex; flex-direction: column; align-items: center; }
.pat-cover { width: 100%; height: 204px; margin-bottom: -72px; background: #ddd center / cover no-repeat; }
.pat-venue-sheet { position: absolute; left: 0; right: 0; top: 196px; height: 8px; background: #fff; border-radius: 24px 24px 0 0; }
.pat-logo { position: relative; border-radius: 50%; border: 2px solid var(--c-stroke); object-fit: cover; background: #fff; }
.pat-logo--text { display: grid; place-items: center; font-weight: 700; font-size: 24px; background: #f6f3c6; }

/* navigation header */
.pat-nav { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; height: 56px; padding: 0 4px; }
.pat-nav > div:last-child { display: flex; justify-content: flex-end; }
.pat-nav-title { text-align: center; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* bill */
.pat-progress { height: 8px; border-radius: 16px; background: var(--c-btn-2); overflow: hidden; }
.pat-progress > div { height: 100%; background: var(--c-primary); border-radius: 16px; transition: width 0.4s; }
.pat-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pat-item { display: flex; align-items: center; gap: 8px; }
.pat-qty { min-width: 24px; padding: 3px 6px; border-radius: 8px; background: var(--c-bg-2); font-size: 14px; font-weight: 600; text-align: center; }
.pat-item-name { flex: 1; }
.pat-item strong { font-weight: 600; min-width: 72px; text-align: right; }

/* split: items */
.pat-select { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 0 16px; border: 1px solid var(--c-stroke); border-radius: 12px; background: #fff; text-align: left; }
.pat-select-name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pat-select-name small { color: var(--c-secondary); font-size: 13px; }
.pat-select:disabled { opacity: 0.45; cursor: default; }
.pat-checkbox { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--c-stroke); border-radius: 6px; }
.pat-select.is-selected { border-color: #000; }
.pat-select.is-selected .pat-checkbox, .pat-select:disabled .pat-checkbox { background: #000; border-color: #000; color: #fff; }

/* split: equal / custom */
.pat-stepper-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--c-btn-2); }
.pat-stepper { display: flex; align-items: center; gap: 16px; }
.pat-stepper strong { min-width: 20px; text-align: center; font-size: 18px; }
.pat-big-amount { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 0; }
.pat-big-amount strong { font-size: 40px; font-weight: 600; }
.pat-amount-input { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 56px 0 12px; font-size: 56px; font-weight: 600; }
.pat-amount-input input { width: 200px; border: 0; outline: 0; padding: 0; text-align: right; font: inherit; letter-spacing: -0.04em; background: none; }
.pat-amount-input span { color: var(--c-secondary); }
.pat-amount-input span:first-child + input { text-align: left; } /* symbol before the amount (£, $) */

/* confirmation */
.pat-section { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; border-bottom: 8px solid var(--c-bg-2); }
.pat-section:last-child { border-bottom: 0; }
.pat-section strong { font-weight: 600; }
.pat-radio { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--c-stroke); border-radius: 12px; background: #fff; font-weight: 500; }
.pat-radio.is-selected { border-color: #000; background: var(--c-bg-2); }
.pat-radio-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c-stroke); }
.pat-radio.is-selected .pat-radio-dot { border: 7px solid #000; }
.pat-note { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: var(--c-bg-2); font-size: 15px; line-height: 1.35; }
.pat-note svg { flex: none; }
.pat-legal { gap: 10px; font-size: 12px; color: var(--c-secondary); line-height: 1.4; letter-spacing: -0.01em; }
.pat-legal label { display: flex; gap: 8px; align-items: flex-start; }
.pat-legal input { margin: 2px 0 0; }

/* drawers */
.pat-backdrop { position: absolute; inset: 0; z-index: 4; background: rgba(0, 0, 0, 0.45); animation: pat-fade 0.2s; }
.pat-drawer { z-index: 5; scrollbar-width: none; position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; border-radius: 24px 24px 0 0; background: #fff; animation: pat-up 0.25s ease-out; }
.pat-drawer-body { display: flex; flex-direction: column; gap: 16px; padding: 8px 16px 32px; }
@keyframes pat-up { from { transform: translateY(100%); } }
@keyframes pat-fade { from { opacity: 0; } }

/* success */
.pat-success { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; height: 100%; background: var(--c-success-bg); color: var(--c-success); animation: pat-fade 0.3s; }
.pat-success h2 { font-size: 30px; font-weight: 500; }
.pat-success-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-success); color: #fff; }

/* toast */
.pat-toast { position: absolute; left: 16px; right: 16px; bottom: calc(var(--urlbar) + 120px); padding: 14px 16px; border-radius: 12px; background: #222; color: #fff; font-size: 14px; text-align: center; animation: pat-fade 0.2s; }

/* venue header actions (decorative, as in Figma) */
.pat-venue-actions { position: absolute; top: 12px; left: 8px; right: 8px; display: flex; justify-content: space-between; pointer-events: none; }
.pat-round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.pat-round--flat { background: none; }

/* tab bar */
.pat-tabbar { flex: none; display: flex; height: 58px; padding-bottom: 2px; border-top: 1px solid rgba(0, 0, 0, 0.12); background: #fff; }
.pat-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--c-secondary) !important; font-size: 12px !important; font-weight: 600; }
.pat-tab.is-active { color: var(--c-primary) !important; }
.pat-tab-icon { position: relative; display: flex; }
.pat-dot { position: absolute; top: -3px; right: -5px; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; border: 1.5px solid #fff; }
.pat-footer--above-tabs { box-shadow: none; padding-bottom: 12px; }

/* loyalty banner (Figma "Banner") */
.pat-loyalty-banner { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 16px; min-height: 56px; border-radius: 0 0 12px 12px; background: #f5f5f5; font-weight: 500; }
.pat-loyalty-banner span { flex: 1; }
.pat-loyalty-banner + .pat-venue { margin-top: -12px; }
.pat-loyalty-banner + .pat-venue .pat-venue-actions { top: 24px; }
.pat-small-btn { height: 32px; padding: 0 16px; border: 0; border-radius: 48px; background: var(--c-btn-2); font-size: 14px !important; font-weight: 600; }

/* dynamic menu */
.pat-welcome { font-size: 28px !important; font-weight: 500 !important; letter-spacing: -0.05em; }
.pat-featured { padding: 16px 0 32px; }
.pat-featured h3 { margin: 0 16px 16px; font-size: 21px; font-weight: 500; }
.pat-carousel { display: flex; gap: 16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.pat-product { flex: none; width: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; border: 0; background: none; text-align: left; }
.pat-product-img { width: 150px; height: 150px; border-radius: 12px; object-fit: cover; }
.pat-product-name { max-width: 100%; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pat-product strong { font-size: 14px; font-weight: 600; }
.pat-divider { height: 8px; background: var(--c-bg-2); }
.pat-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px 16px; }
.pat-category { padding: 0; border: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 18px; font-weight: 600; }
.pat-category img { width: 100%; height: 92px; border-radius: 12px; object-fit: cover; }

/* loyalty sign-up drawer */
.pat-drawer--grey { background: #f4f4f4; }
.pat-phone { display: flex; gap: 8px; width: 100%; }
.pat-phone-country { display: grid; place-items: center; width: 88px; height: 64px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; font-size: 24px; }
.pat-phone-field { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 16px; height: 64px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; text-align: left; }
.pat-phone-field small { font-size: 12px; color: var(--c-secondary); }
.pat-phone-field span { display: flex; gap: 6px; font-size: 16px; }
.pat-phone-field b { font-weight: 400; color: var(--c-secondary); }
.pat-phone-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; font: inherit; background: none; }

/* Figma crop for product photos (pancakes) */
.pat-crop { position: relative; display: block; overflow: hidden; }
.pat-crop img { position: absolute; max-width: none; }

/* Sucré category page (Figma "Menu") */
.pat-sticky-head { position: sticky; top: 0; z-index: 2; background: #fff; }
.pat-nav .is-on { background: var(--c-btn-2); }
.pat-cat-tabs { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--c-btn-2); }
.pat-cat-tabs button { padding: 8px 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 16px !important; font-weight: 500; color: rgba(0, 0, 0, 0.3) !important; }
.pat-cat-tabs button.is-active { color: #000 !important; border-color: #000; }
.pat-chips { display: flex; gap: 8px; padding: 12px 16px; }
.pat-chip-btn { height: 32px; padding: 0 12px; border: 1px solid var(--c-stroke); border-radius: 8px; background: #fff; font-size: 14px !important; font-weight: 500; }
.pat-chip-btn.is-active { background: #000; border-color: #000; color: #fff !important; }
.pat-section-cover { height: 96px; background: center / cover no-repeat; }
.pat-menu-section { display: flex; flex-direction: column; gap: 16px; padding: 32px 16px; }
.pat-menu-section h2 { font-size: 21px !important; font-weight: 500 !important; }
.pat-group-title { display: flex; align-items: center; gap: 12px; color: var(--c-secondary); font-size: 14px; }
.pat-group-title i { flex: 1; height: 1px; background: var(--c-btn-2); }
.pat-menu-card { display: flex; gap: 8px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.pat-menu-card-text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pat-menu-card-text .pat-muted { font-size: 14px; line-height: 1.2; }
.pat-menu-card-name { font-weight: 500; }
.pat-menu-card strong { font-size: 14px; font-weight: 600; }
.pat-menu-card-img { flex: none; width: 112px; height: 112px; border-radius: 12px; object-fit: cover; }
.pat-explore { display: flex; flex-direction: column; gap: 16px; }
.pat-explore-tile { display: flex; flex-direction: column; gap: 8px; font-size: 18px; font-weight: 600; }
.pat-explore-tile img { width: 100%; height: 192px; border-radius: 12px; object-fit: cover; }

/* product page (Figma "Product" / "Video header") */
.pat-product-cover { position: relative; height: 375px; }
.pat-product-cover--video { height: 564px; background: #e9ecef; }
.pat-product-cover > img, .pat-product-cover > video, .pat-product-cover > .pat-crop { display: block; width: 100%; height: 100%; object-fit: cover; }
.pat-round--float { position: absolute; top: 8px; left: 8px; border: 0; }
.pat-product-info { display: flex; flex-direction: column; gap: 8px; padding: 32px 16px; }
.pat-product-info h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.05em; }
.pat-product-price { margin-top: 8px; font-size: 21px; font-weight: 600; }
.pat-tag { align-self: flex-start; padding: 4px 6px; border-radius: 8px; background: var(--c-bg-2); font-size: 14px; font-weight: 600; }
.pat-options { display: flex; flex-direction: column; gap: 8px; padding: 32px 16px; }
.pat-options h2, .pat-options h3 { margin: 0 0 8px; font-size: 21px; font-weight: 500; }
.pat-options h3 { font-size: 18px; font-weight: 600; margin: 0; }
.pat-options hr { margin: 0; }
.pat-small { font-size: 14px; }
.pat-option { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 0; min-height: 40px; border: 0; background: none; font-weight: 600; text-align: left; }
.pat-option-label { display: flex; align-items: center; gap: 8px; }
.pat-option-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c-stroke); }
.pat-option.is-selected .pat-option-dot { border: 7px solid #000; }
.pat-check { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--c-stroke); border-radius: 4px; color: #fff; }
.pat-check.is-on { background: #000; border-color: #000; }
.pat-featured--pairings { padding-top: 32px; }
.pat-featured--pairings h3 { font-size: 18px; font-weight: 600; }

/* footers */
.pat-footer--flat { box-shadow: none; }
.pat-footer--sheet { border-radius: 16px 16px 0 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.12); }
.pat-btn--icon { flex: 1; min-height: 56px; width: auto; padding: 0; }
.pat-btn--google { width: auto; min-height: 40px; padding: 0 24px; border-radius: 20px; background: #1a73e8; color: #fff !important; font-size: 15px !important; }

/* pay button with the Apple Pay wordmark */
.pat-btn--pay { gap: 6px; font-size: 20px !important; font-weight: 500 !important; }
.pat-apple-pay { display: inline-flex; align-items: center; gap: 2px; font-size: 23px; font-weight: 600; letter-spacing: -0.05em; }
.pat-apple-logo { display: inline-block; width: 17px; height: auto; margin-top: -4px; }
.pat-apple-logo--white { filter: invert(1); }

/* tips drawer (Figma "Tips drawer small") */
.pat-drawer--tips { display: flex; flex-direction: column; gap: 32px; }
.pat-nav--end { display: flex; justify-content: flex-end; padding: 8px; height: 64px; align-items: center; }
.pat-tips-title { margin: -16px 0 0 !important; padding: 0 16px; text-align: center; font-size: 28px !important; font-weight: 600 !important; line-height: 1.1 !important; letter-spacing: -0.05em; }
.pat-tips-options { display: flex; flex-direction: column; gap: 32px; width: 327px; max-width: calc(100% - 32px); margin: 0 auto; }
.pat-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pat-tip { position: relative; display: flex; align-items: center; justify-content: center; height: 120px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; }
.pat-tip-amount { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; }
.pat-tip-emoji { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 100%); font-size: 24px; line-height: 26px; }
.pat-tip.is-selected { border-color: #000; background: var(--c-btn-2); }
.pat-tips-secondary { display: flex; gap: 8px; }
.pat-tip--small { height: 48px; flex: 1; font-size: 16px !important; font-weight: 600; white-space: nowrap; }
.pat-tip--custom { flex: none; width: 180px; }
.pat-tips-pay { display: flex; flex-direction: column; }
.pat-tips-summary { text-align: center; font-size: 12px; line-height: 14px; letter-spacing: -0.03em; }
.pat-tips-summary span { color: var(--c-secondary); }
.pat-tips-sheet { padding: 16px 16px 28px; }

/* Apple Pay sheet + Face ID */
.pat-backdrop--dark { background: rgba(0, 0, 0, 0.35); z-index: 5; }
.pat-toast { z-index: 8; }
.pat-applepay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 32px; border-radius: 14px 14px 0 0; background: #f2f2f7; letter-spacing: -0.01em; animation: pat-up 0.3s ease-out; }
.ap-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; }
.ap-logo { display: inline-flex; align-items: center; gap: 2px; font-size: 22px; font-weight: 600; }
.ap-head button { border: 0; background: none; color: #007aff !important; font-size: 17px !important; }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #fff; font-size: 15px; }
.ap-row div { display: flex; flex-direction: column; gap: 2px; }
.ap-row span { color: #8e8e93; font-size: 13px; }
.ap-card { width: 44px; height: 28px; border-radius: 4px; background: linear-gradient(135deg, #1a1f71, #3b4bc8); }
.ap-total b { font-size: 28px; font-weight: 600; }
.ap-faceid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0 8px; color: #007aff; font-size: 15px; }
.ap-faceid span { color: #000; }
.ap-faceid--scan svg { animation: pat-faceid 0.9s ease-in-out infinite; }
.ap-faceid--done { color: #34c759; }
@keyframes pat-faceid { 50% { transform: scale(0.88); opacity: 0.6; } }

/* review (Figma "Leave a review") */
.pat-review { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: calc(100% - 64px); padding: 0 16px 64px; text-align: center; }
.pat-review h2 { font-size: 24px; font-weight: 500; }
.pat-stars { display: flex; justify-content: center; gap: 8px; height: 40px; }
.pat-star { padding: 0; border: 0; background: none; line-height: 0; }
.pat-review-details { display: flex; flex-direction: column; align-items: center; gap: 32px; padding-top: 16px; }
.pat-review-head { display: flex; flex-direction: column; gap: 8px; width: 343px; max-width: calc(100% - 32px); text-align: center; }
.pat-review-head h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.05em; }
.pat-criteria-list { display: flex; flex-direction: column; gap: 8px; width: 343px; max-width: calc(100% - 32px); }
.pat-criteria { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; font-weight: 500; }
.pat-criteria > div { display: flex; gap: 2px; }
.pat-face { width: 20px; height: 20px; padding: 0; border: 0; background: none; line-height: 0; }

/* Google review redirect */
.pat-google { display: flex; flex-direction: column; gap: 24px; padding: 8px 16px 16px; min-height: 100%; letter-spacing: 0; }
.g-head { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.g-head .pat-icon-btn { margin-left: -12px; }
.g-user { display: flex; align-items: center; gap: 12px; }
.g-user > div { display: flex; flex-direction: column; gap: 2px; }
.g-user span { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #5f6368; }
.g-user .g-avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #7b1fa2; color: #fff; font-size: 18px; font-weight: 500; line-height: 1; text-align: center; }
.g-stars { display: flex; justify-content: center; gap: 10px; }
.g-stars button { padding: 0; border: 0; background: none; color: #dadce0 !important; line-height: 0; }
.g-stars button.is-on { color: #fbbc04 !important; }
.g-text { width: 100%; padding: 12px; border: 1px solid #80868b; border-radius: 4px; font: inherit; font-size: 16px; resize: none; }
.g-date { display: flex; gap: 12px; }
.g-date label { position: relative; flex: 1; display: flex; align-items: center; height: 56px; padding: 0 12px; border: 1px solid #80868b; border-radius: 4px; }
.g-date small { position: absolute; top: -8px; left: 8px; padding: 0 4px; background: #fff; font-size: 12px; color: #5f6368; }
.g-date span { flex: 1; }
.g-date i { font-style: normal; color: #5f6368; }
.g-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.g-foot em { font-size: 13px; color: #5f6368; }
.pat-google-done { display: flex; flex-direction: column; align-items: center; gap: 16px; height: 100%; padding: 120px 32px 0; background: #3c78d8; color: #fff; text-align: center; letter-spacing: 0; }
.g-check { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 24px; border-radius: 50%; background: #fff; color: #3c78d8; box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.12); }
.g-check svg { width: 40px; height: 40px; }
.pat-google-done h2 { font-size: 22px; font-weight: 400; }
.pat-google-done p { font-size: 14px; line-height: 1.45; opacity: 0.9; }
.g-white { margin-top: 24px; padding: 10px 24px; border: 0; border-radius: 4px; background: #fff; color: #1a73e8 !important; font-size: 15px !important; }
.g-link { border: 0; background: none; color: #fff !important; font-size: 15px !important; }

/* post-payment (Figma "Post payment" / "Fully paid") */
.pat-done { display: flex; flex-direction: column; gap: 16px; padding: 0 16px 24px; }
.pat-done-head { display: flex; flex-direction: column; gap: 4px; }
.pat-done-head h1 { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -0.05em; }
.pat-h21 { font-size: 21px; font-weight: 600; letter-spacing: -0.05em; }
.pat-h24 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.pat-tip-note { margin-top: -12px; font-size: 14px; }
.pat-ticket { margin: 0 1px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.03)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.06)); }
/* Zigzag edge drawn in plain white (a repeating white triangle), the same white as the ticket body, whatever the venue's colours. */
.pat-ticket-edge { height: 6.75px; background: conic-gradient(from 142.4deg at 50% 0, var(--ticket-bg, #fff) 0 75.2deg, transparent 75.2deg) 0 0 / 10.392px 6.75px repeat-x !important; }
.pat-ticket-edge--bottom { transform: scaleY(-1); }
.pat-ticket-body { display: flex; flex-direction: column; gap: 24px; padding: 32px 16px; background: var(--ticket-bg, #fff); }
.pat-ticket-sum { display: flex; flex-direction: column; gap: 8px; }
.pat-ticket-body .pat-progress { margin-top: -8px; }
.pat-items--tight { margin: 0; gap: 8px; }
.pat-plus { width: 24px; }
.pat-ticket-actions { display: flex; gap: 8px; }
.pat-ticket-actions .pat-btn--secondary:first-child { flex: none; width: 234px; max-width: 75%; min-height: 56px; font-weight: 500 !important; }
.pat-loyalty-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 8px; overflow: hidden; border-radius: 16px; background: var(--c-bg-2); text-align: center; }
.pat-loyalty-card .pat-muted { font-size: 14px; font-weight: 600; }
.pat-loyalty-card strong { font-size: 28px; font-weight: 500; letter-spacing: -0.05em; }
.pat-loyalty-icon { display: grid; place-items: center; padding: 10px; }
.coin { position: absolute; pointer-events: none; }
.coin--1 { left: -60px; top: 14px; width: 119px; transform: rotate(-17deg); }
.coin--2 { right: 20px; top: -28px; width: 53px; transform: rotate(-17deg); filter: blur(4.8px); }
.coin--3 { right: -50px; top: 48px; width: 104px; transform: scaleY(-1) rotate(-163deg); filter: blur(3.3px); }

/* receipt form (Figma "Get the receipt") */
.pat-receipt-form { display: flex; flex-direction: column; gap: 24px; padding: 0 16px 24px; }
.pat-receipt-head { display: flex; flex-direction: column; gap: 4px; }
.pat-receipt-head h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.05em; }
.pat-receipt-fields { display: flex; flex-direction: column; gap: 8px; }
.pat-receipt-group { display: flex; flex-direction: column; gap: 8px; }
.pat-field { width: 100%; height: 64px; padding: 0 16px; border: 1px solid var(--c-stroke); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; }
.pat-field:focus { outline: 2px solid #000; outline-offset: -1px; }
.pat-field-wrap { position: relative; }
.pat-field-wrap img { position: absolute; right: 16px; top: 22px; }
.pat-field-row { display: flex; gap: 8px; }
.pat-expense { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; }
.pat-expense > div { display: flex; flex-direction: column; gap: 4px; }
.pat-expense strong { font-weight: 500; }
.pat-expense .pat-muted { font-size: 14px; }
.pat-outline-btn { height: 32px; padding: 0 16px; border: 1px solid var(--c-stroke); border-radius: 48px; background: #fff; color: var(--c-secondary) !important; font-size: 14px !important; font-weight: 500; }
.pat-outline-btn--fill { border-color: transparent; background: var(--c-btn-2); color: #000 !important; }
.pat-labelled-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--c-secondary); font-size: 14px; }
.pat-labelled-divider i { flex: 1; height: 1px; background: var(--c-btn-2); }
.pat-receipt-consents { display: flex; flex-direction: column; gap: 8px; }
.pat-checkbox-label { display: flex; align-items: flex-start; gap: 8px; padding: 0; border: 0; background: none; text-align: left; font-size: 12px !important; line-height: 14px; color: var(--c-secondary) !important; letter-spacing: -0.03em; }
.pat-checkbox-label span { padding-top: 3px; }

/* receipt document (Figma "Receipt downloaded") */
.pat-receipt-bg { min-height: calc(100% - 56px); padding: 24px 0 40px; background: #f2f2f2; }
.pat-receipt-doc { display: flex; flex-direction: column; gap: 14px; padding: 28px 20px 16px; background: #fff; font-size: 10px; line-height: 1.35; letter-spacing: 0; color: #111; }
.rc-head { display: flex; justify-content: space-between; gap: 12px; }
.rc-right { text-align: right; }
.rc-muted { color: #888; }
.rc-rule { height: 1px; background: #111; }
.rc-small { font-size: 8px; }
.rc-tiny { font-size: 7px; letter-spacing: 0.05em; }
.rc-block { padding: 8px 0; border-top: 1px solid #eee; font-size: 9px; }
.rc-lines { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid #eee; font-size: 10px; }
.rc-line { display: flex; justify-content: space-between; gap: 8px; }
.rc-strong { font-size: 12px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.rc-paid { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 14px 12px; border: 1px solid #111; }
.rc-paid-amount { font-size: 15px; }
.rc-paid .rc-line { margin-top: 10px; }
.rc-foot { display: flex; justify-content: space-between; margin-top: 60px; font-size: 8px; }
.rc-foot span:last-child { font-size: 11px; }

/* iPhone 17 status bar + Dynamic Island (rendered by the demo, above every screen) */
.pat-status { position: relative; z-index: 7; flex: none; display: flex; align-items: center; justify-content: space-between; height: var(--status); padding: 0 30px 0 44px; background: var(--status-bg, #fff); color: #000; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; pointer-events: none; }
.pat-status--clear { background: transparent; }
.pat-status-time { width: 54px; text-align: center; }
.pat-status-icons { display: flex; align-items: center; gap: 6px; }
.pat-battery { position: relative; width: 25px; height: 12px; border: 1px solid rgba(0, 0, 0, 0.35); border-radius: 3.5px; }
.pat-battery::before { content: ''; position: absolute; inset: 1.5px; border-radius: 2px; background: #000; }
.pat-battery::after { content: ''; position: absolute; right: -3.5px; top: 3.5px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(0, 0, 0, 0.4); }
.pat-island { position: absolute; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; }

/* venue header buttons */
.pat-venue-actions { pointer-events: auto; }
.pat-venue-right { display: flex; gap: 4px; }
.pat-venue-actions .pat-round { border: 0; }

/* product options are informative only (no ordering in Pay at Table) */
.pat-option--static { cursor: default; }

/* marketing card + drawer */
.pat-marketing-card { display: flex; align-items: stretch; width: 100%; min-height: 128px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--c-bg-2); text-align: left; }
.pat-marketing-card-text { flex: 1; display: flex; align-items: center; padding: 16px; font-size: 21px; font-weight: 500; line-height: 1.1; letter-spacing: -0.05em; }
.pat-marketing-card-img { position: relative; flex: none; width: 132px; overflow: hidden; }
.pat-marketing-card-img img { position: absolute; top: 0; left: -5.19%; width: 133.55%; height: 100%; max-width: none; object-fit: cover; }
.pat-drawer--media { padding: 16px 16px 0; }
.pat-drawer--media .pat-drawer-body { padding: 24px 16px 40px; }
.pat-drawer-media { position: relative; }
.pat-drawer-media > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px 16px 0 0; }
.pat-drawer-close { position: absolute; top: 8px; right: 8px; border: 0; }
.pat-lang-list { gap: 8px; padding-top: 0; }
.pat-lang-list hr { margin: 0; }

/* restaurant page (burger menu) */
.pat-venue-page { display: flex; flex-direction: column; }
.pat-venue-id { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 16px; }
.pat-venue-id h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.05em; }
.pat-socials { display: flex; gap: 15.6px; }
/* The icons are black SVGs: drawn as a mask so they take the venue's content colour (cream on Maison Rare). */
.pat-social { display: block; width: 19.557px; height: 19.557px; background: var(--brand-ink, #000); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.pat-venue-cards { display: flex; flex-direction: column; gap: 16px; padding: 0 16px; }
.pat-info-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 16px; background: var(--c-bg-2); }
.pat-info-card strong { font-size: 18px; font-weight: 500; }
.pat-info-card--image { flex-direction: row; align-items: stretch; gap: 0; min-height: 128px; padding: 0; overflow: hidden; }
.pat-info-card--image > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 16px; }
.pat-info-card--image strong { font-size: 18px; font-weight: 600; line-height: 1.2; }
.pat-info-card--image img { width: 132px; object-fit: cover; }
.pat-cells { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.pat-cells hr { margin: 0; }
.pat-cell { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0; border: 0; background: none; text-align: left; font-weight: 500; }
.pat-cell-icon { display: grid; place-items: center; width: 40px; height: 40px; }
.pat-cell-label { flex: 1; }

/* UK checkout: consent preferences + Challenge 21/25 */
.pat-checkbox-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--c-secondary) !important; font-size: 16px !important; line-height: 1.3; }
.pat-checkbox-row img { flex: none; margin-top: 1px; }
.pat-checkbox-row--small { font-size: 12px !important; line-height: 1.35; letter-spacing: -0.02em; }
.pat-checkbox-row--small img { margin-top: 0; }
.pat-checkbox-row--pref { font-size: 16px !important; }
.pat-inline-link { color: #1a2a8a; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pat-checkbox-row:not(.pat-checkbox-row--small) .pat-inline-link { color: inherit; text-decoration-color: currentColor; }
.pat-consent { display: flex; flex-direction: column; gap: 10px; }
.pat-terms { font-size: 12px; line-height: 1.35; color: var(--c-secondary); text-align: center; letter-spacing: -0.02em; }
.pat-terms u { color: #1a2a8a; }
.pat-prefs { display: flex; flex-direction: column; gap: 18px; padding: 8px 0 16px; }
.pat-challenge-badge { display: block; }

/* ordering: mode banner, order bar, add-to-order row, cart, order status */
.pat-mode-banner { align-self: center; padding: 6px 12px; border-radius: 999px; background: var(--c-bg-2); font-size: 13px; font-weight: 600; }
.pat-btn[data-variant="order"] { justify-content: space-between; padding: 0 20px 0 12px; }
.pat-order-count { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.2); font-size: 15px; }
.pat-add-row { display: flex; align-items: center; gap: 12px; }
.pat-add-row .pat-btn { flex: 1; }
.pat-stepper--small { gap: 10px; }
.pat-stepper--small .pat-icon-btn { width: 32px; height: 32px; font-size: 18px !important; }
.pat-cart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pat-cart-line { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--c-btn-2); }
.pat-cart-line > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.pat-cart-line .pat-stepper { align-self: flex-start; }
.pat-add-more { align-self: flex-start; margin-top: 8px; font-weight: 600; color: var(--c-primary) !important; }
.pat-order-sent .pat-success-icon { width: 56px; height: 56px; }
.pat-order-sent .pat-success-icon svg { width: 28px; height: 28px; }
.pat-steps { list-style: none; display: flex; margin: 0; padding: 0; }
.pat-steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--c-secondary); }
.pat-steps li i { height: 6px; margin-right: 4px; border-radius: 3px; background: var(--c-btn-2); }
.pat-steps li.is-done i { background: var(--c-success); }
.pat-steps li.is-current i { background: linear-gradient(90deg, var(--c-success) 50%, var(--c-btn-2) 50%); }
.pat-steps li.is-done span, .pat-steps li.is-current span { color: var(--c-primary); font-weight: 600; }
.pat-explore-tile { padding: 0; border: 0; background: none; text-align: left; }

/* Labelled text fields (Figma "Personal details", card fields, identity check) */
.pat-labelled { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; height: 64px; padding: 0 16px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; text-align: left; cursor: text; }
.pat-labelled:focus-within { border-color: #000; }
.pat-labelled-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pat-labelled-text small { font-size: 12px; color: var(--c-secondary); }
.pat-labelled-text input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; font: inherit; font-size: 16px; background: none; }
.pat-labelled-check { display: inline-flex; color: var(--c-primary); }
.pat-card-fields { display: flex; flex-direction: column; gap: 8px; }
.pat-field-row .pat-labelled, .pat-phone .pat-labelled { flex: 1; }
.pat-phone-input { display: flex; gap: 6px; font-size: 16px; }
.pat-phone-input b { font-weight: 400; color: var(--c-secondary); }
.pat-phone-input input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; font: inherit; background: none; }

/* Verify your identity */
.pat-verify { display: flex; flex-direction: column; gap: 24px; }
.pat-verify-head { text-align: center; }
.pat-verify-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.pat-verify-head p { margin: 0; }
.pat-verify .pat-phone-country { display: flex; align-items: center; justify-content: center; gap: 10px; width: 92px; }

/* Receipts list */
.pat-receipts { list-style: none; margin: 0; padding: 8px 16px; }
.pat-receipts li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-stroke); }
.pat-receipts li:last-child { border-bottom: 0; }
.pat-receipts-venue { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.pat-receipts-download { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 500; }
.pat-receipts-download > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.pat-receipts-download .pat-muted { font-weight: 400; }

/* Loyalty sign-in from the restaurant page: full screen */
.pat-drawer--full { top: 54px; max-height: none; display: flex; flex-direction: column; }
.pat-drawer--full .pat-drawer-body { flex: 1; justify-content: center; padding-bottom: 96px; }

/* Payment methods (Figma "Payer avec": the selected card opens its fields inside the row) */
.pat-method { border: 1px solid var(--c-stroke); border-radius: 12px; background: #fff; }
.pat-method.is-selected { border-color: #000; background: var(--c-bg-2); }
.pat-method-head { display: flex; align-items: center; gap: 6px; width: 100%; height: 56px; padding: 0 16px; border: 0; background: none; font-weight: 500; text-align: left; }
.pat-method-label { flex: 1; }
.pat-method-head .pat-radio-dot { flex: none; margin-left: 6px; }
.pat-method.is-selected .pat-radio-dot { border: 7px solid #000; }
.pat-method .pat-card-fields { padding: 0 12px 12px; }
.pat-method .pat-labelled { background: transparent; }
.pat-badge { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 34px; height: 22px; padding: 0 5px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); font-size: 11px; font-weight: 600; color: #000; }
.pat-badge svg { height: 11px; width: auto; }
.pat-badge--visa { color: #1a1f71; font-style: italic; font-weight: 800; letter-spacing: -0.02em; }
.pat-badge--amex { background: #1f72cd; color: #fff; font-size: 5.5px; line-height: 1.05; text-align: center; font-weight: 800; }

/* One-time code */
.pat-otp { position: relative; display: flex; gap: 8px; }
.pat-otp-box { flex: 1; display: grid; place-items: center; height: 64px; border: 1px solid var(--c-stroke); border-radius: 12px; background: #fff; font-size: 36px; color: var(--c-secondary); }
.pat-otp-box.is-filled { color: var(--c-primary); }
.pat-otp:focus-within .pat-otp-box.is-current { border-color: #000; }
.pat-otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; color: transparent; caret-color: transparent; }
.pat-otp-resend { align-self: center; }

/* iOS share sheet (inside the phone frame) */
.pat-drawer--share { background: #f2f2f7; padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 16px; border-radius: 14px 14px 0 0; }
.pat-share-head { display: flex; align-items: center; gap: 12px; }
.pat-share-head img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.pat-share-head div { flex: 1; display: flex; flex-direction: column; font-size: 15px; }
.pat-share-head span { color: rgba(60, 60, 67, 0.6); font-size: 13px; }
.pat-share-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(120, 120, 128, 0.16); color: rgba(60, 60, 67, 0.6); font-size: 13px; font-weight: 700; }
.pat-share-apps { display: flex; justify-content: space-between; padding: 4px 4px 0; }
.pat-share-apps button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 11px; }
.pat-share-icon svg { display: block; width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.pat-share-actions { display: flex; flex-direction: column; border-radius: 12px; background: #fff; overflow: hidden; }
.pat-share-action { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 16px; border: 0; border-bottom: 0.5px solid rgba(60, 60, 67, 0.2); background: none; font-size: 16px; text-align: left; }
.pat-share-action:last-child { border-bottom: 0; }
.pat-badge img { height: 10px; width: auto; margin-top: -1px; }
.pat-bill-legal { margin: 0; padding: 40px 32px 24px; border-top: 8px solid var(--c-bg-2); font-size: 14px; }

/* Hybrid: empty bill */
.pat-bill-empty { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
.pat-bill-empty h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

/* Basket (Figma "Your basket") */
.pat-basket { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.pat-basket-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pat-basket-line { display: flex; align-items: flex-start; gap: 16px; }
.pat-basket-img { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; overflow: hidden; }
.pat-basket-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.pat-basket-info strong { font-weight: 500; line-height: 1.25; }
.pat-basket-info .pat-muted { font-size: 15px; }
.pat-basket-info .pat-muted b { font-weight: 600; }
.pat-pill-stepper { flex: none; display: flex; align-items: center; height: 32px; border-radius: 16px; background: var(--c-btn-2); }
.pat-pill-stepper button { display: grid; place-items: center; width: 36px; height: 32px; padding: 0; border: 0; background: none; color: #000; }
.pat-pill-stepper strong { min-width: 20px; text-align: center; font-weight: 500; font-size: 16px; }
.pat-basket-more { align-self: flex-end; }
.pat-note-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 16px; padding: 18px 16px; border: 0; border-radius: 12px; background: var(--c-btn-2); text-align: left; }
.pat-note-card > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pat-note-card strong { font-weight: 500; }
.pat-note-card .pat-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pat-basket-upsell { border-top: 8px solid var(--c-bg-2); padding-top: 24px; padding-bottom: 24px; }
.pat-note-input { height: auto; padding: 14px 16px; resize: none; line-height: 1.4; }

/* Hybrid: confirm before sending to the kitchen */
.pat-confirm-order h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.pat-confirm-order p { margin: 0; }
.pat-confirm-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pat-confirm-lines li { display: flex; align-items: center; gap: 12px; }
.pat-confirm-lines li span:nth-child(2) { flex: 1; }
.pat-confirm-note { font-size: 14px; color: var(--c-secondary); }

/* Quick add on product photos (Hybrid video) */
.pat-product-wrap, .pat-menu-card-wrap { position: relative; flex: none; }
.pat-menu-card-wrap { width: 100%; }
.pat-tile-add, .pat-tile-stepper { position: absolute; top: 6px; right: 6px; }
.pat-tile-add { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #000; color: #fff !important; animation: pat-pop 0.2s ease-out; }
.pat-tile-add svg, .pat-tile-stepper svg { width: 18px; height: 18px; }
.pat-tile-stepper { display: flex; align-items: center; height: 32px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); animation: pat-pop 0.2s ease-out; }
.pat-tile-stepper button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; }
.pat-tile-stepper strong { min-width: 14px; text-align: center; font-size: 15px; font-weight: 500; }
@keyframes pat-pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Floating basket button: "1 Spritz added!" then "View basket · 1" */
.pat-basket-bar { position: absolute; left: 16px; right: 16px; bottom: calc(var(--urlbar) + 20px); z-index: 3; display: flex; justify-content: center; pointer-events: none; }
.pat-basket-bar--tabs { bottom: calc(var(--urlbar) + 76px); }
.pat-basket-pill { pointer-events: auto; overflow: hidden; height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: #000; color: #fff !important; font-weight: 500; font-size: 17px; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.pat-basket-pill span { display: block; overflow: hidden; text-overflow: ellipsis; }
.pat-basket-pill.is-added { width: 100%; animation: pat-added-in 0.22s ease-out; }
.pat-basket-pill[data-shrink] span { animation: pat-label-in 0.4s ease-out; }
@keyframes pat-added-in { from { opacity: 0.6; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes pat-label-in { 0%, 40% { opacity: 0; } 100% { opacity: 1; } }
.pat-basket-spacer { height: 88px; }

/* Hybrid: confirm your order (auto-sends after 30 s) */
.pat-confirm-order { display: flex; flex-direction: column; gap: 12px; text-align: center; padding-top: 28px; }
.pat-confirm-order h1 { font-weight: 600; }
.pat-confirm-order .pat-items { text-align: left; margin-top: 16px; }
.pat-send-btn { position: relative; overflow: hidden; width: 100%; height: 56px; padding: 0; border: 0; border-radius: 999px; background: var(--c-btn-2); font-weight: 600; font-size: 17px; }
.pat-send-fill { position: absolute; inset: 0; display: grid; place-items: center; background: #000; color: #fff; clip-path: inset(0 100% 0 0); animation: pat-send-fill var(--duration) linear var(--elapsed) forwards; }
@keyframes pat-send-fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Processing */
.pat-processing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; }
.pat-spinner { width: 26px; height: 26px; border: 2.5px solid rgba(0, 0, 0, 0.15); border-top-color: rgba(0, 0, 0, 0.6); border-radius: 50%; animation: pat-spin 0.8s linear infinite; }
@keyframes pat-spin { to { transform: rotate(360deg); } }

/* Order sent (green) */
.pat[data-screen="orderSent"] { background: var(--c-success-bg); }
.pat[data-screen="orderSent"] .pat-footer { background: transparent; }
.pat-order-sent { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 100%; padding: 56px 16px 24px; text-align: center; animation: pat-fade 0.3s; }
.pat-order-sent p { color: rgba(0, 0, 0, 0.62); }
.pat-order-sent-close { position: absolute; top: 4px; right: 8px; }
.pat-sent-lines { list-style: none; width: 100%; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pat-sent-lines li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.25); text-align: left; }
.pat-sent-lines .pat-qty { background: rgba(0, 0, 0, 0.06); }

/* Hybrid intro (video: 3 steps over the menu, story-style progress bars) */
.pat-intro { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 16px 28px; text-align: center; }
.pat-intro-bars { display: flex; gap: 4px; width: 128px; margin-bottom: 16px; }
.pat-intro-bars i { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.18); overflow: hidden; }
.pat-intro-bars i.is-done { background: #000; }
.pat-intro-bars b { position: absolute; inset: 0; background: #000; transform-origin: left; animation: pat-intro-bar 6s linear forwards; }
@keyframes pat-intro-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pat-intro h2 { font-size: 22px; line-height: 1.2; }
.pat-intro p { font-size: 14px; }
.pat-intro-art { display: grid; place-items: center; width: 100%; height: 230px; }
.pat-intro .pat-btn { width: 100%; }
.pat-art-rows { display: flex; flex-direction: column; gap: 6px; width: 190px; }
.pat-art-row { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; border: 1px solid var(--c-stroke); border-radius: 8px; background: #fff; opacity: 0; animation: pat-art-in 0.4s ease-out forwards; }
.pat-art-row > i { width: 26px; height: 26px; border-radius: 6px; background: var(--c-btn-2); }
.pat-art-row > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pat-art-row b { display: block; height: 5px; border-radius: 3px; background: var(--c-btn-2); }
.pat-art-row b + b { width: 50%; }
.pat-art-row em { display: flex; align-items: center; gap: 3px; padding: 2px 4px; border-radius: 8px; background: var(--c-btn-2); font-style: normal; font-size: 9px; }
.pat-art-row em svg { width: 9px; height: 9px; }
@keyframes pat-art-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pat-art-bill { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; padding: 18px 14px; border: 1px solid var(--c-stroke); border-radius: 12px; font-size: 10px; animation: pat-art-in 0.4s ease-out; }
.pat-art-bill s { color: var(--c-secondary); }
.pat-art-bill strong { font-size: 22px; font-weight: 500; margin-bottom: 8px; animation: pat-fade 0.6s 0.3s both; }
.pat-art-bill div { display: flex; align-items: center; gap: 6px; width: 100%; }
.pat-art-bill div span:nth-child(2) { flex: 1; text-align: left; }
.pat-art-bill i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-style: normal; font-size: 7px; }
.pat-art-card { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 160px; height: 84px; padding: 10px; border: 1px solid var(--c-stroke); border-radius: 10px; background: #fff; transform: rotate(-6deg); animation: pat-art-in 0.4s ease-out; }
.pat-art-card > span { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.pat-art-card b { display: block; height: 6px; border-radius: 3px; background: var(--c-btn-2); }
.pat-art-card b + b { width: 60%; }
.pat-art-card > i { width: 56px; height: 56px; border-radius: 8px; background: var(--c-btn-2); }
.pat-art-card em { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; animation: pat-tap 1.6s ease-in-out infinite; }
.pat-art-card em svg { width: 14px; height: 14px; stroke: #fff; }
@keyframes pat-tap { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(0.8); } 80% { transform: scale(1.1); } }

/* UK: allergy question */
.pat-allergy { display: flex; flex-direction: column; gap: 12px; padding: 28px 16px 28px; text-align: center; }
.pat-allergy p { font-size: 14px; margin-bottom: 12px; }
.pat-mode-banner--off { background: #fff1d6; color: #7a4a00; }

/* US: full-screen tip page before checkout */
.pat-tip-page { display: flex; flex-direction: column; justify-content: center; gap: 48px; min-height: 100%; padding: 0 20px 40px; }
.pat-tip-page h1 { text-align: center; font-size: 44px; line-height: 1.02; letter-spacing: -0.06em; font-weight: 600; }
.pat-tip--big { height: 112px; border-radius: 24px; }
.pat-tip--big .pat-tip-amount { font-size: 19px; font-weight: 500; gap: 6px; }
.pat-tip--big .pat-tip-emoji { bottom: 14px; font-size: 32px; line-height: 34px; }
.pat-tip-popular { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 8px; background: #000; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.pat-link-btn { padding: 0 8px; border: 0; background: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.pat-nav:has(.pat-link-btn) { grid-template-columns: 120px 1fr 120px; }
.pat[data-screen="tipScreen"] .pat-tips-summary { font-size: 17px; line-height: 1.5; }

/* Click and Collect: time drawer (Figma "Select time for pick up") */
.pat-pickup { display: flex; flex-direction: column; max-height: 88%; }
.pat-day-chips { display: flex; gap: 8px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.pat-day { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 16px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; text-align: left; }
.pat-day strong { font-size: 17px; font-weight: 500; }
.pat-day span { font-size: 14px; color: var(--c-secondary); }
.pat-day.is-selected { border-color: #000; background: var(--c-btn-2); }
.pat-slot-list { flex: 1; overflow-y: auto; padding: 0 16px; }
.pat-slot-list .pat-option { height: 56px; }
.pat-pickup-cta { padding: 12px 16px 28px; }

/* Landing: pickup row and the green ongoing-order bar */
.pat-pickup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px 20px; }
.pat-pickup-row > div { display: flex; flex-direction: column; gap: 2px; }
.pat-pickup-row strong { font-weight: 500; font-size: 17px; }
.pat-ongoing { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 16px 22px; border: 0; background: #137a35; color: #fff !important; text-align: left; }
.pat-ongoing > i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pat-blink 1.6s ease-in-out infinite; }
.pat-ongoing > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pat-ongoing strong { font-size: 17px; font-weight: 500; }
.pat-ongoing small { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.pat-ongoing + .pat-venue { margin-top: -12px; }
.pat-ongoing + .pat-venue .pat-venue-actions { top: 24px; }
@keyframes pat-blink { 50% { opacity: 0.35; } }

/* Checkout (Figma "Place your order") */
.pat-cc-block { gap: 4px; }
.pat-cc-block h3 { margin-bottom: 8px; }
.pat-cc-block strong { font-weight: 500; }
.pat-cc-time { display: flex; align-items: flex-start; gap: 10px; padding: 0; border: 0; background: none; text-align: left; }
.pat-cc-time > span { display: flex; flex-direction: column; gap: 2px; }
.pat-cc-time strong { font-weight: 500; }
.pat-cc-hint { margin-top: -10px; font-size: 15px; }
.pat-cc-remember { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 4px 0; border: 0; background: none; font-weight: 500; }
.pat-cc-loyalty { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 12px; padding: 16px; border: 0; border-radius: 16px; background: var(--c-bg-2); text-align: left; }
.pat-cc-loyalty > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pat-cc-loyalty strong { font-weight: 500; }
.pat-cc-loyalty .pat-muted { font-size: 14px; }
.pat-cc-totals { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pat-cc-promo-btn { align-self: flex-end; }
.pat-cc-promo { display: flex; align-items: center; gap: 8px; }
.pat-cc-promo .pat-labelled { flex: 1; }

/* Order page after payment (Figma pick up confirmation) */
.pat-cc-map { position: relative; height: 236px; overflow: hidden; background: #f2efe9; }
.pat-cc-map > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pat-cc-pin { position: absolute; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.pat-cc-osm { position: absolute; right: 6px; bottom: 20px; padding: 1px 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.75); font-size: 9px; color: #333; letter-spacing: 0; }
.pat-cc-close { position: absolute; top: 12px; right: 12px; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.pat-cc-ticket { position: relative; z-index: 1; margin: -16px 16px 8px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.03)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.06)); }
.pat-cc-ticket-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 20px; background: var(--ticket-bg, #fff); }
.pat-cc-ticket h1 { font-size: 30px; font-weight: 500; line-height: 1.12; letter-spacing: -0.04em; }
.pat-cc-how { display: flex; gap: 10px; margin-top: 8px; padding: 14px; border-radius: 12px; background: #e8ebfb; color: #2f3fbf; font-size: 15px; }
.pat-cc-how svg { flex: none; margin-top: 1px; }
.pat-cc-how strong { display: block; margin-bottom: 4px; font-weight: 500; font-size: 17px; }
.pat-cc-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pat-cc-lines li { display: flex; align-items: center; gap: 16px; }
.pat-cc-lines li > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pat-cc-lines strong { font-weight: 500; }
.pat-cc-qty { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-btn-2); font-weight: 500; }
.pat-cc-row { flex-direction: row !important; align-items: flex-start; justify-content: space-between; }
.pat-cc-row > div { display: flex; flex-direction: column; gap: 4px; }
.pat-cc-row strong { font-weight: 500; }
.pat-cc-cards { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; }
.pat-cc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 16px; background: var(--c-bg-2); overflow: hidden; }
.pat-cc-card h3 { margin: 0; font-size: 20px; font-weight: 500; }
.pat-cc-card img { width: calc(100% + 0px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-top: 12px; }
.pat-cc-card--reward { flex-direction: row; align-items: center; }
.pat-cc-card--reward > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pat-cc-coins { position: relative; width: 96px; height: 96px; }
.pat-cc-coins i { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9d9d9); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15); }
.pat-cc-coins i:first-child { top: 4px; left: 6px; }
.pat-cc-coins i:last-child { bottom: 2px; right: 0; width: 40px; height: 40px; }
.pat-btn--small { width: auto !important; min-height: 36px; height: 36px; padding: 0 18px; font-size: 15px !important; }

/* Ongoing orders drawer */
.pat-ongoing-drawer { background: #f5f5f5; }
.pat-ongoing-card { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; }
.pat-ongoing-card > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pat-ongoing-card h3 { margin: 0; font-size: 20px; font-weight: 500; }
.pat-ongoing-bars { display: flex; gap: 4px; margin: 4px 0 6px; }
.pat-ongoing-bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--c-btn-2); }
.pat-ongoing-bars i.is-on { background: #000; }
.pat-ongoing-actions { display: flex; align-items: center; gap: 8px; }

/* Order and Pay: page after payment */
.pat-op-head { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 28px; border-bottom: 8px solid var(--c-bg-2); }
.pat-op-head h1 { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.05em; }
.pat-op-rate { gap: 4px; }
.pat-op-rate h3 { margin: 0; font-weight: 500; }
.pat-op-rate .pat-stars { justify-content: flex-start; margin-top: 12px; }
.pat-op-note { display: flex; align-items: center; gap: 20px; padding: 12px 10px 0; font-weight: 500; }
.pat-cc-qty--square { border-radius: 8px; }

/* Safari's bottom address pill: floats over the content on every screen (hidden on a real phone).
   Whatever sits at the bottom (footer, tab bar, drawer, page end) extends underneath it. */
.pat-urlbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; align-items: center; height: var(--urlbar); padding-bottom: 6px; background: transparent; pointer-events: none; }
.pat-urlbar span { display: grid; place-items: center; height: 34px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12); font-size: 15px; letter-spacing: -0.01em; color: #000; }
.pat-tabbar { height: calc(58px + var(--urlbar)); padding-bottom: var(--urlbar); }
.pat-footer:not(.pat-footer--above-tabs) { padding-bottom: calc(12px + var(--urlbar)); }
.pat-scroll--end::after, .pat-drawer::after { content: ''; display: block; flex: none; height: var(--urlbar); }

/* Buttons whose icon sits at the left edge, label centred (Figma order page footer) */
.pat-btn[data-lead-icon] { position: relative; }
.pat-btn[data-lead-icon] > svg { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
/* Confetti around the reward coins */
.pat-cc-coins b { position: absolute; width: 4px; height: 9px; border-radius: 2px; }

@font-face { font-family: 'Apfel Grotezk'; src: url('../fonts/ApfelGrotezk-Fett.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Venue branding (Uptown) across the whole guest app ----------
   Cream / chocolate / warm-orange palette, an elegant serif for titles (matches the logo) and a warm grotesque for text
   (inspired by Holy Belly and Kozy). The Apple Pay button and sheet, the Google pages and the paper
   receipt keep their own look. */
.pat[data-brand] {
  --font-display: 'Apfel Grotezk', 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --c-primary: var(--brand-ink);
  --c-secondary: color-mix(in srgb, var(--brand-ink) 64%, transparent);
  --c-bg-2: color-mix(in srgb, var(--brand-ink) 5%, transparent);
  --c-btn-2: color-mix(in srgb, var(--brand-ink) 10%, transparent);
  --c-stroke: var(--brand-line);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}
.pat[data-brand]:not([data-screen="receiptDoc"]):not([data-screen="google"]):not([data-screen="googleDone"]) { background: var(--brand-bg); color: var(--brand-ink); }
.pat[data-brand]:not([data-screen="receiptDoc"]):not([data-screen="google"]):not([data-screen="googleDone"]) :is(.pat-footer, .pat-tabbar, .pat-sticky-head, .pat-venue-sheet, .pat-drawer, .pat-status) { background: var(--brand-bg); }
.pat[data-brand] .pat-drawer--grey, .pat[data-brand] .pat-ongoing-drawer { background: var(--brand-soft); }
.pat[data-brand] .pat-tabbar { border-top-color: var(--brand-line); }
.pat[data-brand] .pat-muted { color: var(--c-secondary); }
.pat[data-brand] .pat-divider, .pat[data-brand] .pat-section { border-color: var(--brand-soft); }
.pat[data-brand] .pat-divider { background: var(--brand-soft); }

/* Titles in the slab */
.pat[data-brand]:not([data-screen="receiptDoc"]):not([data-screen="google"]):not([data-screen="googleDone"]) :is(h1, h2, .pat-welcome, .pat-featured h3, .pat-section h3, .pat-product-info h1, .pat-venue-id h1, .pat-nav-title, .pat-tips-title, .pat-cc-card h3, .pat-ongoing-card h3) { font-family: var(--font-display); font-weight: 400 !important; letter-spacing: -0.005em; }
.pat[data-brand] .pat-welcome { font-size: 32px; line-height: 1.05; }
.pat[data-brand] .pat-category span { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: 0.01em; text-transform: uppercase; }
.pat[data-brand] :is(.pat-menu-card-name, .pat-product-name, .pat-basket-info strong) { font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: 0; line-height: 1.15; }
.pat[data-brand] .pat-group-title { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; font-weight: 600; color: var(--brand-ink); }
.pat[data-brand] :is(.pat-menu-card strong, .pat-product strong, .pat-product-price) { font-weight: 700; }

/* Photos sit on a soft cream frame */
.pat[data-brand] :is(.pat-product-img, .pat-menu-card-img, .pat-category img) { background: var(--brand-soft); }

/* Buttons, selections, chips and tabs in chocolate and yolk (Apple Pay stays black) */
.pat[data-brand] .pat-btn--primary, .pat[data-brand] .pat-btn[data-variant="order"] { background: var(--brand-primary); color: var(--brand-onPrimary) !important; }
.pat[data-brand] .pat-btn--secondary { background: var(--brand-soft); color: var(--brand-ink) !important; }
.pat[data-brand] .pat-btn:disabled { background: color-mix(in srgb, var(--brand-ink) 22%, var(--brand-bg)); color: var(--brand-bg) !important; }
.pat[data-brand] :is(.pat-basket-pill, .pat-tile-add, .pat-upsell-add) { background: var(--brand-primary); color: var(--brand-onPrimary) !important; }
.pat[data-brand] .pat-tile-add svg { stroke: var(--brand-bg); }
.pat[data-brand] :is(.pat-radio, .pat-method, .pat-tip, .pat-day, .pat-option).is-selected { border-color: var(--brand-ink); background: var(--brand-soft); }
.pat[data-brand] .pat-radio.is-selected .pat-radio-dot, .pat[data-brand] .pat-method.is-selected .pat-radio-dot { border-color: var(--brand-ink); }
.pat[data-brand] .pat-tip-popular { background: var(--brand-primary); }
.pat[data-brand] .pat-chip-btn { border-color: var(--brand-ink); border-radius: 999px; background: transparent; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px !important; font-weight: 600; }
.pat[data-brand] .pat-chip-btn.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-onPrimary) !important; }
.pat[data-brand] .pat-cat-tabs { border-bottom-color: var(--brand-line); }
.pat[data-brand] .pat-cat-tabs button { font-family: var(--font-display); font-weight: 400 !important; color: color-mix(in srgb, var(--brand-ink) 35%, transparent) !important; }
.pat[data-brand] .pat-cat-tabs button.is-active { color: var(--brand-ink) !important; border-bottom-color: var(--brand-accent); }
.pat[data-brand] :is(.pat-small-btn, .pat-loyalty-banner, .pat-marketing-card, .pat-note-card, .pat-cc-card, .pat-cc-loyalty, .pat-note) { background: var(--brand-soft); color: var(--brand-ink); }
/* Tags look like secondary buttons: the soft tint of the brand, content colour text. */
.pat[data-brand] .pat-tag { background: var(--brand-soft); color: var(--brand-ink); }
.pat[data-brand] .pat-progress > div { background: var(--brand-accent); }
.pat[data-brand] .pat-send-fill { background: var(--brand-primary); color: var(--brand-onPrimary); }
.pat[data-brand] .pat-ongoing { background: var(--brand-primary); }
.pat[data-brand] .pat-intro-bars b, .pat[data-brand] .pat-intro-bars i.is-done, .pat[data-brand] .pat-ongoing-bars i.is-on { background: var(--brand-ink); }
.pat[data-brand] :is(.pat-field, .pat-labelled, .pat-otp-box) { background: #fffdf8; }

/* Dishes without a photo: emoji on the soft brand colour */
.pat-emoji-img { display: grid; place-items: center; overflow: hidden; background: var(--brand-soft, #f2f2f2); }
.pat-emoji-img > span { font-size: 44px; line-height: 1; transform: rotate(-8deg); }
.pat-product-img.pat-emoji-img > span { font-size: 64px; }
.pat-basket-img.pat-emoji-img > span { font-size: 30px; }
.pat-product-cover > .pat-emoji-img { width: 100%; height: 100%; }
.pat-product-cover > .pat-emoji-img > span { font-size: 140px; }
/* Interfaces that imitate someone else keep their own type */
.pat[data-brand] .pat-applepay { font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; }
.pat[data-brand]:is([data-screen="google"], [data-screen="googleDone"]) { font-family: Roboto, Arial, sans-serif; }
.pat[data-brand]:is([data-screen="google"], [data-screen="googleDone"]) :is(h1, h2) { font-family: Roboto, Arial, sans-serif; font-weight: 500 !important; }
.pat[data-brand] .pat-btn:has(.pat-apple-pay) { background: #000; color: #fff !important; } /* Apple Pay button stays black (Apple guidelines) */
/* Quick-add "+" on photos: cream button with a brown plus, readable on dark and light shots */
.pat[data-brand] .pat-tile-add { background: var(--brand-bg); color: var(--brand-ink) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.pat[data-brand] .pat-tile-add svg { stroke: var(--brand-ink); }

/* Serif titles: slightly larger and tighter than the slab they replace; the logo image carries its own ring */
.pat[data-brand] .pat-welcome { font-size: 34px; letter-spacing: -0.015em; }
.pat[data-brand] .pat-category span { font-size: 19px; letter-spacing: 0.02em; }
.pat[data-brand] :is(.pat-menu-card-name, .pat-product-name, .pat-basket-info strong) { font-size: 18px; }
.pat[data-brand] .pat-logo { border: 0; background: transparent; }

/* Every button on the venue's colours: no white buttons left (Apple Pay, Google and the paper receipt excepted) */
.pat[data-brand] :is(.pat-round, .pat-tip, .pat-outline-btn, .pat-radio, .pat-method, .pat-select, .pat-day, .pat-tile-stepper, .pat-share-close, .pat-chip-btn, .pat-phone-country, .pat-option) { background-color: var(--brand-bg); }
.pat[data-brand] .pat-round { box-shadow: 0 2px 10px rgba(55, 42, 26, 0.18); }
.pat[data-brand] .pat-outline-btn { border-color: var(--brand-line); color: var(--brand-ink) !important; }
.pat[data-brand] :is(.pat-outline-btn--fill, .pat-tip--small) { background-color: var(--brand-soft); border-color: transparent; }
.pat[data-brand] :is(.pat-radio, .pat-method, .pat-tip, .pat-day, .pat-option).is-selected { background-color: var(--brand-soft); border-color: var(--brand-ink); }
.pat[data-brand] .pat-chip-btn.is-active { background-color: var(--brand-primary); }
.pat-phone-country img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

/* Brand source V2 (Figma): rust primary from the logo, mustard accents, warm peach surfaces */
.pat[data-brand] .pat-tile-add { background: var(--brand-bg); color: var(--brand-primary) !important; }
.pat[data-brand] .pat-tile-add svg { stroke: var(--brand-primary); }
.pat[data-brand] .pat-chip-btn { border-color: var(--brand-line); }
.pat[data-brand] :is(.pat-radio, .pat-method, .pat-tip, .pat-day, .pat-option).is-selected { border-color: var(--brand-primary); }
.pat[data-brand] :is(.pat-radio, .pat-method).is-selected .pat-radio-dot { border-color: var(--brand-primary); }

/* Menu push card: title + subtitle + square photo (Figma "Marketing Card · Menu push") */
.pat-marketing-card-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; letter-spacing: -0.02em; }
.pat-marketing-card-text strong { font-size: 18px; font-weight: 600; }
.pat-marketing-card-text .pat-muted { font-size: 16px; font-weight: 400; line-height: 1.25; }

/* Post-payment push card (Figma "Marketing Card · Post payment") */
.pat-post-push { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--brand-soft, rgba(0, 0, 0, 0.04)); }
.pat-post-push-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 16px 12px; }
.pat-post-push-text strong { font-size: 18px; font-weight: 600; }
.pat-post-push-text .pat-muted { font-size: 16px; line-height: 1.25; }
.pat-post-push-text .pat-small-btn { margin-top: 8px; }
.pat-post-push img { display: block; width: calc(100% - 8px); margin: 0 4px 4px; aspect-ratio: 289 / 240; object-fit: cover; border-radius: 12px; }
.pat-cc-cards .pat-post-push, .pat-done .pat-post-push { width: 100%; }
.pat[data-brand] .pat-post-push .pat-small-btn, .pat[data-brand] .pat-marketing-card .pat-small-btn { background: var(--brand-bg); }

/* Modifiers on the product page: group title + rule, options with extra price, radio or checkbox */
.pat-mod-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.pat-mod-head .pat-muted { font-size: 14px; }
.pat-mod { gap: 12px; }
.pat-mod .pat-option-label { flex: 1; font-weight: 500; }
.pat-mod > .pat-muted { font-weight: 500; font-size: 15px; }
.pat-mod:disabled { opacity: 0.4; }
.pat-mod-check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--c-stroke); color: #fff; }
.pat-mod.is-selected .pat-mod-check { border-color: var(--brand-primary, #000); background: var(--brand-primary, #000); }
.pat-mod-check svg { width: 14px; height: 14px; }
.pat-option--static { justify-content: space-between; }
.pat[data-brand] .pat-option.pat-mod.is-selected { background: transparent; }
.pat[data-brand] .pat-option.is-selected .pat-option-dot { border-color: var(--brand-primary); }

/* Loyalty banner: the "Rejoindre" button sits on Loyalty/Background/Button secondary */
.pat-loyalty-banner { --loyalty-bg-button-secondary: var(--brand-bg, #fff); }
.pat[data-brand] .pat-loyalty-banner .pat-small-btn { background: var(--loyalty-bg-button-secondary); color: var(--brand-ink); }

/* Menu push on the menu (landing card and in-category card): rust background, cream type */
.pat-menu-push-wrap { padding: 32px 16px 0; }
.pat .pat-menu-title { margin: 32px 16px 0; font-size: 21px; font-weight: 500; }
.pat .pat-menu-title + .pat-categories { padding-top: 16px; }
.pat[data-brand]:not([data-screen="receiptDoc"]) .pat-menu-title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.005em; }
.pat[data-brand] :is(.pat-menu-push, .pat-marketing-card) { background: #B04A22; color: #F7E8D0; }
.pat[data-brand] :is(.pat-menu-push, .pat-marketing-card) :is(strong, span, .pat-muted) { color: #F7E8D0; }
.pat[data-brand] .pat-menu-push .pat-small-btn { background: #F7E8D0; color: #B04A22; }

/* Article drawer: the photo fills the whole top of the sheet, no margin or padding */
.pat-drawer--media { padding: 0; }
.pat-drawer-media > img { border-radius: 24px 24px 0 0; }
.pat-drawer--media .pat-drawer-close { top: 16px; right: 16px; }

/* Restaurant page cocktails push: same marketing background as the other pushes */
.pat[data-brand] .pat-venue-cards .pat-info-card--image { background: #B04A22; color: #F7E8D0; }
.pat[data-brand] .pat-venue-cards .pat-info-card--image strong { color: #F7E8D0; }
.pat[data-brand] .pat-venue-cards .pat-info-card--image .pat-small-btn { background: #F7E8D0; color: #B04A22; }

/* Re-render inside an open drawer (typing a phone number, Apple Pay steps): no slide-up replay */
.pat[data-still] :is(.pat-drawer, .pat-backdrop, .pat-applepay) { animation: none; }

/* Restaurant page push: subtitle under the title */
.pat[data-brand] .pat-venue-cards .pat-info-card--image .pat-muted { color: #F7E8D0; opacity: 0.85; font-size: 15px; line-height: 1.25; margin-top: -8px; }

/* Post-payment push: same marketing background as the other pushes */
.pat[data-brand] .pat-post-push { background: #B04A22; color: #F7E8D0; }
.pat[data-brand] .pat-post-push :is(strong, .pat-muted) { color: #F7E8D0; }
.pat[data-brand] .pat-post-push .pat-muted { opacity: 0.85; }
.pat[data-brand] .pat-post-push .pat-small-btn { background: #F7E8D0; color: #B04A22; }

/* Face ID simulation: iOS-style HUD in the middle of the screen while Apple Pay authenticates */
.ap-hud { position: absolute; z-index: 8; top: 34%; left: 50%; width: 152px; height: 152px; margin-left: -76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 28px; background: rgba(30, 30, 30, 0.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; font: 500 15px -apple-system, 'SF Pro Text', system-ui, sans-serif; animation: ap-hud-in 0.2s ease-out; }
.ap-hud-glyph { display: grid; place-items: center; width: 72px; height: 72px; }
.ap-hud-glyph svg { width: 64px; height: 64px; }
.ap-hud--scan .ap-hud-glyph svg { animation: ap-scan 1.1s ease-in-out infinite; }
.ap-hud--scan .ap-hud-glyph { position: relative; overflow: hidden; border-radius: 12px; }
.ap-hud--scan .ap-hud-glyph::after { content: ''; position: absolute; left: 0; right: 0; height: 18px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.18), transparent); animation: ap-sweep 1.1s ease-in-out infinite; }
.ap-hud--done { color: #34c759; }
.ap-hud--done span { color: #fff; }
.ap-hud--done .ap-hud-glyph svg { animation: ap-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.pat[data-still] .ap-hud--done, .pat[data-still] .ap-hud--scan { animation: none; }
@keyframes ap-hud-in { from { opacity: 0; transform: scale(0.9); } }
@keyframes ap-scan { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.7; } }
@keyframes ap-sweep { from { top: -18px; } to { top: 72px; } }
@keyframes ap-pop { from { transform: scale(0.4); opacity: 0; } }

/* Hybrid: no bill yet (Figma), brand colours */
.pat-nobill-head { position: relative; display: flex; justify-content: center; align-items: center; height: 88px; }
.pat-nobill-head .pat-icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.pat-nobill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: calc(100% - 88px); padding: 0 32px 150px; text-align: center; }
.pat-nobill h2 { font-size: 28px; }
.pat-nobill p { font-size: 17px; line-height: 1.35; }
.pat-nobill-art { position: relative; width: 220px; height: 202px; margin-bottom: 24px; }
.pat-nobill-art::before { content: ''; position: absolute; inset: -10px -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.05), transparent); }
.pat-nobill-shadow { position: absolute; left: -8px; top: 56px; width: 150px; opacity: 0.8; }
.pat-nobill-phone { position: relative; width: 100%; height: 100%; object-fit: contain; }
.pat-nobill-badge { position: absolute; display: flex; align-items: center; gap: 1px; height: 34px; padding: 0 13px; border-radius: 999px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); font-family: -apple-system, system-ui, sans-serif; font-size: 20px; font-weight: 500; color: #000; letter-spacing: -0.02em; }
.pat-nobill-badge--apple { top: 24px; left: 124px; }
.pat-nobill-badge--apple svg, .pat-nobill-badge--apple img { height: 18px; width: auto; }
.pat-nobill-badge--google { top: 110px; left: 26px; height: 37px; }
.pat-nobill-badge--google img { height: 20px; width: auto; }
.pat-menu-tip { position: absolute; left: 16px; right: 16px; bottom: calc(var(--urlbar) + 58px + 14px); z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--brand-ink, #3a3a3a); color: var(--brand-bg, #fff); animation: pat-fade 0.3s; }
.pat-menu-tip::after { content: ''; position: absolute; bottom: -8px; left: calc(25% - 18px); border: 8px solid transparent; border-bottom: 0; border-top-color: var(--brand-ink, #3a3a3a); }
.pat-menu-tip > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pat-menu-tip strong { font-size: 17px; font-weight: 600; }
.pat-menu-tip span { font-size: 15px; opacity: 0.75; }
.pat-menu-tip button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: inherit !important; }

/* Hybrid bill: "Still feeling hungry?" carousel */
.pat-hungry { position: relative; padding: 20px 0 24px; background: var(--brand-soft, #f5f5f5); }
.pat-hungry::after { content: ''; position: absolute; left: 32px; bottom: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--brand-soft, #f5f5f5); }
.pat-hungry h3 { margin: 0 16px 14px; font-size: 18px; }
.pat-hungry-row { display: flex; gap: 12px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.pat-hungry-card { flex: none; display: flex; width: 220px; height: 112px; overflow: hidden; border-radius: 16px; background: var(--brand-bg, #fff); }
.pat-hungry-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 12px; border: 0; background: none; text-align: left; }
.pat-hungry-text strong { font-size: 16px; font-weight: 500; line-height: 1.15; }
.pat-hungry-text span { font-weight: 600; }
.pat-hungry-img { position: relative; flex: none; width: 96px; }
.pat-hungry-img > img, .pat-hungry-img > .pat-crop { width: 100%; height: 100%; object-fit: cover; }
.pat-bill-items { padding-top: 20px; }

/* Another round? */
.pat-round-head { text-align: center; margin-bottom: 8px; }
.pat-round-head h2 { font-size: 28px; margin-bottom: 6px; }
.pat-round-drawer .pat-basket-lines { margin: 8px 0 16px; }

/* Click and Collect time list and other option rows: no fill, the dot shows the choice */
.pat[data-brand] .pat-option, .pat[data-brand] .pat-option.is-selected { background: transparent; }

/* Re-renders must not replay the pop on every tile (it made the + flicker) */
.pat-tile-add, .pat-tile-stepper { animation: none; }
/* Click and Collect day chips: never squeezed by the time list; the chosen day gets an outline, not a fill */
.pat-day-chips { flex: none; }
.pat[data-brand] .pat-day.is-selected { background-color: var(--brand-bg); border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }

/* Another round: swipe to order */
.pat-swipe { position: relative; display: flex; align-items: center; justify-content: center; height: 60px; padding: 4px; border-radius: 999px; background: var(--brand-primary, #000); color: var(--brand-onPrimary, #fff); user-select: none; touch-action: none; }
.pat-swipe-label { padding-left: 48px; font-weight: 600; font-size: 16px; opacity: calc(1 - var(--swipe, 0) * 1.4); }
.pat-swipe-knob { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-onPrimary, #fff); color: var(--brand-primary, #000); cursor: grab; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.pat-swipe-knob svg { width: 22px; height: 22px; }
.pat-swipe:not(.is-disabled) .pat-swipe-knob { animation: pat-swipe-hint 2.4s ease-in-out 0.6s infinite; }
.pat-swipe.is-disabled { opacity: 0.4; }
@keyframes pat-swipe-hint { 0%, 70%, 100% { translate: 0; } 80% { translate: 14px; } 90% { translate: 0; } }

/* Divide the bill equally (Figma): share ring + inline pill steppers */
.pat-share { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 16px; }
.pat-ring-wrap { position: relative; width: 210px; height: 210px; margin-bottom: 28px; }
.pat-ring { width: 100%; height: 100%; }
.pat-ring path { fill: none; stroke: var(--brand-soft, #f2f2f2); stroke-width: 9; transition: stroke 0.2s; }
.pat-ring path.is-on { stroke: var(--brand-ink, #000); }
.pat-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pat-ring-center strong { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }
.pat-ring-center span { font-size: 16px; }
.pat-share-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; font-size: 17px; }
.pat-share-row > span:first-child { text-align: right; }
.pat-share-stepper { display: flex; align-items: center; height: 34px; padding: 0 4px; border-radius: 999px; background: var(--brand-ink, #000); color: var(--brand-bg, #fff); }
.pat-share-stepper button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: inherit !important; }
.pat-share-stepper button:disabled { opacity: 0.35; }
.pat-share-stepper strong { min-width: 24px; text-align: center; font-weight: 500; }
.pat-footer-total { font-size: 17px; margin-bottom: 12px; }
.pat-footer-total strong { font-size: 18px; }

/* Pay a custom amount (Figma): big amount, total, Confirm, iOS number pad */
.pat[data-screen="custom"] .pat-urlbar { display: none; }
.pat-custom { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.pat-custom-amount { display: flex; align-items: baseline; gap: 10px; font-size: 64px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.pat-custom-amount em { font-style: normal; opacity: 0.6; }
.pat-custom-amount .is-empty { opacity: 0.3; }
.pat-custom-amount.is-error { color: #d11023; }
.pat-custom-total { font-size: 17px; padding-top: 16px; }
.pat-keypad { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 6px; padding: 6px 4px 46px; background: #d1d3d9; font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; }
.pat-keypad::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #000; }
.pat-key { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 46px; padding: 0; border: 0; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); color: #000 !important; font: inherit; }
.pat-key span { font-size: 25px; line-height: 1; }
.pat-key small { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; }
.pat-key--bare { background: transparent; box-shadow: none; }
.pat-key:active { background: #b4b8c1; }
.pat-key--bare:active { background: rgba(255, 255, 255, 0.6); }

/* Dimmed overlay reaches the top of the phone: the status bar (time, notch, icons) is dimmed too,
   with its text kept crisp on top, as on iOS. */
.pat-status { transition: box-shadow 0.2s; }
.pat:has(> .pat-backdrop:not(.pat-backdrop--dark)) .pat-status { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.45); }
.pat:has(> .pat-backdrop--dark) .pat-status { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.35); }

/* Modifier options with a photo (add a drink / add a pastry) */
.pat-mod-img { flex: none; width: 44px; height: 44px; margin-right: 12px; border-radius: 10px; object-fit: cover; }
.pat-option--static .pat-mod-img { width: 36px; height: 36px; }
.pat-option:has(.pat-mod-img) { align-items: center; }

/* Review follow-up screens (production): editable rating, faces per criterion, then "Tell us more" */
.pat-review-rating { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.pat-review-rating .pat-stars { height: 48px; gap: 12px; }
.pat-review-rating .pat-star svg { width: 48px; height: 48px; }
.pat-review-scale { display: flex; justify-content: space-between; width: 300px; padding: 0 12px; font-size: 14px; }
.pat-review-details { gap: 28px; }
.pat-review-details .pat-review-head h2 { font-size: 24px; }
.pat-criteria { font-size: 17px; }
.pat-criteria > div { gap: 6px; }
.pat-face { width: 28px; height: 28px; }
.pat-face { color: #77777f; }
.pat-face.is-on { color: var(--brand-primary, #d6732b); }
.pat-review-more-title { font-size: 20px; font-weight: 500; }
.pat-review-more { display: flex; flex-direction: column; gap: 20px; width: 100%; padding: 0 16px; }
.pat-review-text { min-height: 180px; padding: 16px 18px; border: 1px solid var(--brand-line, rgba(0, 0, 0, 0.14)); border-radius: 18px; background: transparent; font: inherit; font-size: 17px; color: inherit; resize: none; }
.pat-review-optin { display: flex; align-items: center; gap: 20px; padding: 0; border: 0; background: none; font: inherit; font-size: 17px; text-align: left; color: inherit; }
.pat-review-optin .pat-option-dot { flex: none; width: 36px; height: 36px; }

/* US: items grouped by seat, Discover card, tip as amount or % */
.pat-badge--discover { background: #fff; color: #231f20; font-size: 6px; font-weight: 800; letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.pat-badge--discover i { display: inline-block; width: 6px; height: 6px; margin: 0 0.5px; border-radius: 50%; background: #f58220; vertical-align: -0.5px; }
.pat-unit-switch { display: inline-flex; padding: 3px; margin-bottom: 12px; border-radius: 999px; background: var(--brand-soft, #f2f2f2); }
.pat-unit-switch button { min-width: 56px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 600; color: inherit; }
.pat-unit-switch button[aria-checked="true"] { background: var(--brand-ink, #000); color: var(--brand-bg, #fff) !important; }
.pat-review-optin.is-on .pat-option-dot { border: 10px solid var(--brand-primary, #000); }

/* Stars drawn inline so they take the brand colour (production: orange on, light grey off) */
.pat-star { color: #e1e1e4; }
.pat-star.is-on { color: var(--brand-primary, #d6732b); }
.pat .pat-star, .pat[data-brand] .pat-star { color: #e1e1e4 !important; }
.pat .pat-star.is-on, .pat[data-brand] .pat-star.is-on { color: var(--brand-primary, #d6732b) !important; }
.pat .pat-face, .pat[data-brand] .pat-face { color: #77777f !important; }
.pat .pat-face.is-on, .pat[data-brand] .pat-face.is-on { color: var(--brand-primary, #d6732b) !important; }

/* US "Pay for your items": one card per guest (production) */
.pat-guest { display: flex; flex-direction: column; gap: 10px; padding: 8px 10px 10px; border-radius: 16px; background: var(--brand-soft, #f4f4f5); }
.pat-guest-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 6px 18px; font-size: 17px; }
.pat-guest-head strong { font-weight: 500; }
.pat-guest .pat-select { min-height: 72px; padding: 0 14px 0 18px; border-radius: 14px; }
.pat-checkbox--plus { width: 26px; height: 26px; padding: 0; border: 1px solid var(--brand-line, rgba(0, 0, 0, 0.14)); border-radius: 5px; background: var(--brand-bg, #fff); color: var(--brand-ink, #000); }
.pat-checkbox--plus svg { width: 18px; height: 18px; }
.pat .pat-checkbox--plus.is-on, .pat .pat-select.is-selected .pat-checkbox--plus { background: var(--brand-ink, #000); border-color: var(--brand-ink, #000); color: var(--brand-bg, #fff) !important; }
.pat-amount-input input[style*="ch"] { text-align: center; }

/* ---------- Loyalty: "Welcome to the club" sign-up, SMS code, member page ---------- */
.pat-club { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 8px; }
.pat-club .pat-logo { flex: none; }
.pat-club-head { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.pat-club-head h1 { margin: 0; font-size: 32px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.pat-club-head p { margin: 0; font-size: 16px; line-height: 1.35; }
.pat-club-otp-title { font-size: 26px !important; line-height: 1.12 !important; }
.pat-club-phone { display: flex; gap: 8px; width: 100%; }
.pat-club-country { flex: none; display: flex; align-items: center; gap: 6px; height: 64px; padding: 0 12px 0 16px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; font-size: 17px; }
.pat-club-country img { border-radius: 2px; }
.pat-club-field { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 64px; padding: 0 16px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; }
.pat-club-field small { font-size: 12px; color: var(--c-secondary); }
.pat-club-field:has(input:placeholder-shown) small { display: none; }
.pat-club-field input { width: 100%; border: 0; outline: 0; padding: 0; background: none; font: inherit; font-size: 17px; color: inherit; }
.pat-club-field:focus-within { border-color: currentColor; }
.pat-club-consent { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; font-size: 15px !important; line-height: 1.3; color: var(--c-secondary) !important; }
.pat-club-consent.is-on { color: var(--c-primary) !important; }
.pat-club-consent img { flex: none; margin-top: 1px; }
.pat-club-terms { margin: 0; text-align: center; font-size: 12px; line-height: 1.4; color: var(--c-secondary); }
.pat-club-otp { width: 100%; }
.pat-club-otp .pat-otp-box { height: 72px; font-size: 40px; }

/* new Loyalty tab: pops in once signed in */
.pat-tab--new { animation: pat-tab-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes pat-tab-in { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pat-dot--round { top: 6px; right: 6px; }
/* Only the header buttons carry a dot (burger): keep the floating and close buttons absolutely placed. */
.pat-venue-actions .pat-round { position: relative; }
.pat-new-badge { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--brand-primary, #000); color: var(--brand-onPrimary, #fff); font-size: 11px; font-weight: 700; vertical-align: 1px; }

/* member page */
.pat[data-screen="loyalty"] { background: var(--brand-soft, #ececec) !important; }
.pat[data-screen="loyalty"] .pat-status, .pat[data-brand][data-screen="loyalty"] .pat-status { background: var(--brand-soft, #ececec) !important; }
.pat[data-screen="loyalty"] .pat-scroll { display: flex; flex-direction: column; }
.pat-club-points { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16px 28px; text-align: center; }
.pat-ring { position: relative; width: 176px; height: 176px; margin-bottom: 18px; }
.pat-ring-track { fill: none; stroke: color-mix(in srgb, var(--c-primary) 12%, transparent); stroke-width: 9; }
.pat-ring-fill { fill: none; stroke: var(--brand-accent, #e2a93b); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.3, 0, 0.2, 1); }
.pat-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pat-ring-text strong { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pat-ring-text span { font-size: 15px; color: var(--c-secondary); }
.pat-club-next { font-size: 18px; font-weight: 600; }
.pat-club-points .pat-muted { font-size: 15px; }
.pat-club-rewards { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 16px 32px; border-radius: 24px 24px 0 0; background: var(--brand-bg, #fff); }
.pat-club-rewards h2 { margin: 0 0 4px; font-size: 24px; font-weight: 600; }
.pat-reward { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 1px solid var(--c-stroke); border-radius: 16px; background: #fff; }
.pat[data-brand] .pat-reward { background: #fffdf8; }
.pat-reward-type { font-size: 14px; font-weight: 600; color: var(--c-secondary); }
.pat-reward strong { font-size: 18px; font-weight: 600; }
.pat-reward .pat-muted { font-size: 14px; }
.pat-reward-exp { font-size: 13px; color: color-mix(in srgb, var(--c-primary) 40%, transparent); }
.pat-reward-apply { margin-top: 8px; height: 34px; padding: 0 16px; border: 0; border-radius: 48px; background: var(--brand-primary, #000); color: var(--brand-onPrimary, #fff) !important; font-size: 14px !important; font-weight: 600; }
.pat-reward-applied { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; height: 34px; padding: 0 14px; border-radius: 48px; background: var(--c-btn-2); font-size: 14px; font-weight: 600; }
.pat-reward--locked { border-style: dashed; background: transparent !important; padding-right: 64px; }
.pat-reward--locked strong { color: var(--c-secondary); }
.pat-reward-lock { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-btn-2); color: var(--c-secondary); }
.pat-reward-lock svg { width: 16px; height: 16px; }
button.pat-chip { border: 0; cursor: pointer; color: #fff !important; font-family: inherit; }

/* ---------- Loyalty colour: the banner's colour, reused on every loyalty surface ---------- */
.pat { --loyalty: #f2f0eb; --loyalty-ink: var(--c-primary); }
.pat[data-brand] { --loyalty: var(--brand-soft); --loyalty-ink: var(--brand-ink); }
.pat :is(.pat-loyalty-banner, .pat-loyalty-push, .pat-cc-loyalty, .pat-cc-card--reward, .pat-loyalty-card) { background: var(--loyalty) !important; color: var(--loyalty-ink); }
/* sign-up and code pages sit on the loyalty colour, like the member page */
.pat:is([data-screen="loyaltyJoin"], [data-screen="loyaltyOtp"]) { background: var(--loyalty) !important; }
.pat:is([data-screen="loyaltyJoin"], [data-screen="loyaltyOtp"]) :is(.pat-status, .pat-footer) { background: var(--loyalty) !important; box-shadow: none; }
.pat:is([data-screen="loyaltyJoin"], [data-screen="loyaltyOtp"], [data-screen="loyalty"]) .pat-small-btn { background: color-mix(in srgb, var(--loyalty-ink) 9%, transparent); }
.pat[data-screen="loyaltyJoin"] .pat-btn--secondary { background: color-mix(in srgb, var(--loyalty-ink) 9%, transparent); }
.pat[data-screen="loyalty"] .pat-status { background: var(--loyalty) !important; }

/* checkout push */
.pat-section--push { padding-top: 4px !important; padding-bottom: 4px !important; border: 0 !important; }
.pat-loyalty-push { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 16px; text-align: left; }
.pat-loyalty-push > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pat-loyalty-push strong { font-size: 17px; font-weight: 600; }
.pat-loyalty-push .pat-muted { font-size: 15px; line-height: 1.3; }
.pat-loyalty-push-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; }
.pat-loyalty-push-icon--tag { color: var(--brand-accent, #c9973a); }
.pat-loyalty-push-icon--tag svg { width: 26px; height: 26px; }
.pat-loyalty-push-icon--tag svg[width="16"] { width: 20px; height: 20px; color: var(--brand-primary, #000); }
.pat-loyalty-push-logo { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; }
.pat-loyalty-push:disabled { opacity: 0.55; }
.pat-loyalty-switch { flex: none; position: relative; width: 56px; height: 32px; border-radius: 99px; background: color-mix(in srgb, var(--loyalty-ink) 18%, transparent); transition: background 0.2s; }
.pat-loyalty-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.25s cubic-bezier(0.3, 1.3, 0.5, 1); }
.pat-loyalty-switch.is-on { background: var(--brand-primary, #16a34a); }
.pat-loyalty-switch.is-on::after { transform: translateX(24px); }
.pat-discount-row :last-child { color: var(--brand-primary, #16a34a); font-weight: 600; }

/* coupon page */
.pat-coupons { display: flex; flex-direction: column; gap: 12px; }
.pat-coupons-head { margin-bottom: 12px; }
.pat-coupons-head h1 { margin: 0 0 4px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.pat-coupons-head p { margin: 0; font-size: 17px; }
.pat-coupons-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--loyalty); font-size: 14px; }
.pat-coupon { background: color-mix(in srgb, var(--loyalty) 45%, #fffdf8) !important; }
.pat-coupon.is-off :is(strong, .pat-muted, .pat-reward-exp) { opacity: 0.45; }
.pat-reward-apply { display: inline-flex; align-items: center; gap: 6px; }
.pat-reward-apply:disabled { background: color-mix(in srgb, var(--c-primary) 22%, transparent); color: var(--brand-bg, #fff) !important; }
.pat-reward-apply.is-selected { background: var(--c-primary); }

/* ---------- Page transitions (native-style) ---------- */
.pat-ghost { position: absolute; left: 0; right: 0; top: var(--status); bottom: 0; display: flex; flex-direction: column; overflow: hidden; pointer-events: none; animation-duration: 360ms; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); animation-fill-mode: both; }
.pat-ghost > .pat-scroll { overflow: hidden; }
.pat-ghost--push { z-index: 1; animation-name: pat-ghost-push; }
.pat-ghost--back { z-index: 3; animation-name: pat-ghost-back; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12); }
.pat-ghost--up { z-index: 1; animation-name: pat-ghost-up; animation-duration: 420ms; }
.pat-ghost--down { z-index: 3; animation-name: pat-ghost-down; animation-duration: 380ms; border-radius: 24px 24px 0 0; animation-timing-function: cubic-bezier(0.4, 0, 0.8, 0.6); }
.pat-ghost--fade { z-index: 1; animation-name: pat-ghost-fade; animation-duration: 220ms; }
@keyframes pat-ghost-push { to { transform: translateX(-28%); filter: brightness(0.94); } }
@keyframes pat-ghost-back { to { transform: translateX(100%); } }
@keyframes pat-ghost-up { to { transform: scale(0.96); filter: brightness(0.9); } }
@keyframes pat-ghost-down { to { transform: translateY(100%); } }
@keyframes pat-ghost-fade { to { opacity: 0; } }

.pat[data-nav] > :is(.pat-scroll, .pat-footer),
.pat[data-nav][data-nav-tabs] > .pat-tabbar {
  z-index: 2;
  animation-duration: 360ms;
  animation-delay: var(--nav-delay, 0ms);
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
}
.pat[data-nav="push"] > :is(.pat-scroll, .pat-footer), .pat[data-nav="push"][data-nav-tabs] > .pat-tabbar { animation-name: pat-page-push; }
.pat[data-nav="push"] > .pat-scroll { box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12); }
.pat[data-nav="back"] > :is(.pat-scroll, .pat-footer), .pat[data-nav="back"][data-nav-tabs] > .pat-tabbar { animation-name: pat-page-back; }
.pat[data-nav="up"] > :is(.pat-scroll, .pat-footer), .pat[data-nav="up"][data-nav-tabs] > .pat-tabbar { animation-name: pat-page-up; animation-duration: 420ms; }
.pat[data-nav="down"] > :is(.pat-scroll, .pat-footer), .pat[data-nav="down"][data-nav-tabs] > .pat-tabbar { animation-name: pat-page-down; animation-duration: 380ms; }
.pat[data-nav="fade"] > :is(.pat-scroll, .pat-footer), .pat[data-nav="fade"][data-nav-tabs] > .pat-tabbar { animation-name: pat-page-fade; animation-duration: 220ms; }
@keyframes pat-page-push { from { transform: translateX(100%); } }
@keyframes pat-page-back { from { transform: translateX(-28%); filter: brightness(0.94); } }
@keyframes pat-page-up { from { transform: translateY(100%); } }
@keyframes pat-page-down { from { transform: scale(0.96); filter: brightness(0.9); } }
@keyframes pat-page-fade { from { opacity: 0; } }

/* Drawers slide back down when they close (backdrop fades out). */
.pat-drawer.pat-leaving { pointer-events: none; animation: pat-drawer-out 260ms cubic-bezier(0.4, 0, 1, 1) both !important; }
.pat-backdrop.pat-leaving { pointer-events: none; animation: pat-fade-out 260ms ease both !important; }
@keyframes pat-drawer-out { to { transform: translateY(100%); } }
@keyframes pat-fade-out { to { opacity: 0; } }
/* Drawers open with a softer, iOS-like curve. */
.pat-drawer:not(.pat-leaving) { animation-duration: 0.32s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  .pat-ghost, .pat[data-nav] > *, .pat-leaving { animation: none !important; }
  .pat-ghost, .pat-leaving { display: none; }
}
/* The incoming page needs an opaque background so the old one doesn't show through it. */
.pat[data-nav] > .pat-scroll { background-color: inherit; }

/* ---------- Loyalty pushes (checkout + after paying) ---------- */
.pat { --secondary-bg: var(--c-bg-2); --loyalty-accent: #e2a93b; }
/* Secondary background = the thick section separators. */
.pat[data-brand] { --secondary-bg: var(--brand-soft); --loyalty-accent: var(--brand-accent); }
.pat-club-push { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 20px; border-radius: 20px; background: var(--loyalty); color: var(--loyalty-ink); text-align: left; }
.pat-club-push strong { font-family: var(--font-display, inherit); font-size: 22px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.pat:not([data-brand]) .pat-club-push strong { font-weight: 600; }
.pat-club-push p { margin: 0; font-size: 16px; line-height: 1.35; color: color-mix(in srgb, var(--loyalty-ink) 64%, transparent); }
/* Same "small" size as the other small buttons (Ajouter…), in the primary colour. */
.pat .pat-small-btn.pat-club-push-btn { margin-top: 10px; background: var(--brand-primary, #000); color: var(--brand-onPrimary, #fff) !important; letter-spacing: 0.02em; text-transform: uppercase; }
.pat-points-push { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: var(--secondary-bg); color: var(--c-primary); text-align: left; }
.pat-points-push img { display: block; width: 100%; height: 150px; object-fit: cover; }
.pat-points-push-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.pat-points-push-text strong { font-family: var(--font-display, inherit); font-size: 22px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.pat:not([data-brand]) .pat-points-push-text strong { font-weight: 600; }
.pat-points-push-text span { font-size: 16px; line-height: 1.35; color: var(--c-secondary); }
/* "New" dot on the Loyalty tab and the burger: the loyalty accent (the points ring colour). */
.pat-dot--loyalty { background: var(--loyalty-accent); }

/* ---------- Builder: own loyalty and banner colours (set only when the builder fills them) ---------- */
.pat[style*="--brand-loyalty:"] { --loyalty: var(--brand-loyalty) !important; --loyalty-ink: var(--brand-loyaltyInk) !important; }
.pat[style*="--brand-push:"] :is(.pat-menu-push, .pat-marketing-card, .pat-post-push) { background: var(--brand-push) !important; color: var(--brand-pushInk) !important; }
.pat[style*="--brand-push:"] :is(.pat-menu-push, .pat-marketing-card, .pat-post-push) :is(strong, span, .pat-muted) { color: var(--brand-pushInk) !important; }

/* ---------- custom demos: menu tiles (Figma "Menu · landing" tile shapes) and in-between pages ---------- */
.pat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 16px 16px 32px; }
.pat-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 18px; font-weight: 600; color: inherit; }
.pat-tile--full { grid-column: 1 / -1; }
.pat-tile-img { display: block; overflow: hidden; border-radius: 16px; background: var(--c-bg-2, #f4f4f5); aspect-ratio: 16 / 9; }
.pat-tile--square .pat-tile-img { aspect-ratio: 1; }
.pat-tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pat-tile-name { line-height: 1.15; }
.pat-tile--plain { justify-content: flex-end; aspect-ratio: 16 / 9; padding: 14px; border-radius: 16px; background: var(--c-bg-2, #f4f4f5); }
.pat-tile--plain.pat-tile--square { aspect-ratio: 1; }
.pat-tile-banner { grid-column: 1 / -1; }
.pat-tile-banner .pat-marketing-card { min-height: 148px; }
.pat-tile-banner .pat-marketing-card-img { width: 42%; }
.pat .pat-menu-title + .pat-tiles { padding-top: 16px; }
.pat[data-brand] .pat-tile-name { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; }
.pat[data-brand] :is(.pat-tile-img, .pat-tile--plain) { background: var(--brand-soft); }

.pat-group-hero { position: relative; height: 220px; margin-bottom: -24px; background: #ddd center / cover no-repeat; }
.pat .pat-group-back { position: absolute; top: 16px; left: 12px; border: 0; color: var(--brand-ink, #141414) !important; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.pat-group-sheet { position: relative; border-radius: 24px 24px 0 0; background: var(--brand-bg, #fff); padding-top: 28px; }
.pat .pat-group-h { margin: 0 16px; font-size: 32px; line-height: 1.05; }
.pat-group-sheet .pat-tiles { padding-top: 20px; }
.pat[data-brand] .pat-group-h { font-family: var(--font-display); font-weight: 400; }

/* The rounded sheet over the cover runs a few pixels past the photo, so no sliver of the photo shows as a line
   where they meet (most visible in the scaled preview phone). */
.pat .pat-venue-sheet { height: 14px; }

/* Choices with a description under the name, and a line under the group title (Figma "Product page · modifiers"). */
.pat-mod-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pat-mod-text small { font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--c-secondary); }
.pat .pat-mod-sub { margin: -4px 0 8px; font-size: 15px; }
.pat-mod:has(.pat-mod-text) { padding: 12px 0; }

/* Video header: 2:3, as in Figma "Product page · video header". */
.pat .pat-product-cover--video { height: auto; aspect-ratio: 2 / 3; }

/* The quantity stepper in the basket looks like a secondary button (same tint and text colour as "Add more"). */
.pat[data-brand] .pat-pill-stepper { background: var(--brand-soft); color: var(--brand-ink); }
.pat[data-brand] .pat-pill-stepper button { color: var(--brand-ink); }

/* A secondary button stacked under the primary one in a page footer is as tall as it (56). */
.pat-footer > .pat-btn--secondary { min-height: 56px; font-size: 17px !important; }

/* The order-sent check is smaller inside its circle. */
.pat-order-sent .pat-success-icon svg { width: 20px; height: 20px; }

/* Input fields take the colour of the page they sit on (the app background, or the loyalty page's own colour), never white. */
.pat[data-brand] :is(.pat-field, .pat-labelled, .pat-otp-box, .pat-select, .pat-phone-country, .pat-phone-field, .pat-club-country, .pat-club-field) { background: transparent; }

/* The status bar takes the colour of a full-screen success page, so the colour runs over the whole screen. */
.pat.pat.pat[data-brand][data-brand] .pat-status:not(.pat-status--clear) { background: var(--status-bg, var(--brand-bg)); }

/* Default stars on the review are the secondary button colour. */
.pat[data-brand] .pat-star:not(.is-on) { color: var(--brand-soft) !important; }

/* The post-payment page breathes: more room between the blocks and the lines of text. */
.pat-done { gap: 28px; }
.pat-done-head { gap: 12px; }
.pat-done .pat-tip-note { margin-top: -14px; }

/* Text and marks on the brand button colour use the colour computed to be readable on it (white or near-black),
   never a fixed white: the Popular tag on tips, the tick of a chosen add-on, the knob of a switch. */
.pat[data-brand] .pat-tip-popular { color: var(--brand-onPrimary); }
.pat[data-brand] .pat-mod.is-selected .pat-mod-check { color: var(--brand-onPrimary); }
.pat[data-brand] .pat-loyalty-switch.is-on::after { background: var(--brand-onPrimary); }


/* =====================================================================================================
   Design rules (apply to every demo; keep this block last so it wins)
   1. Inputs: what the guest types is in the primary content colour, every placeholder (and empty OTP box,
      unselected rating face) is in the secondary content colour. Never a hard-coded grey or black.
   2. Apple Pay sheet and Google review pages are not the restaurant's app: fixed colours, black text,
      no branding (colours, case, fonts).
   3. The status bar content follows its background: white on a dark one, black on a light one.
   ===================================================================================================== */

/* 1. Inputs */
.pat.pat :is(input, textarea, select) { color: var(--c-primary); }
.pat.pat :is(input, textarea)::placeholder { color: var(--c-secondary); opacity: 1; }
.pat.pat :is(input, textarea):disabled { color: var(--c-secondary); -webkit-text-fill-color: currentColor; opacity: 1; }
.pat.pat .pat-criteria { color: var(--c-primary); }
.pat.pat .pat-face, .pat.pat[data-brand] .pat-face { color: var(--c-secondary) !important; }
.pat.pat .pat-face.is-on, .pat.pat[data-brand] .pat-face.is-on { color: var(--brand-primary, #d6732b) !important; }
.pat.pat :is(.pat-review-text, .pat-review-optin, .pat-field, .pat-labelled-text input, .pat-phone-input, .pat-phone-field input, .pat-club-field input) { color: var(--c-primary); }

/* 2. Apple Pay sheet: fixed iOS look, black text */
.pat.pat .pat-applepay { --c-primary: #000; --c-secondary: #000; background: #f2f2f7; color: #000; }
.pat.pat .pat-applepay :is(.ap-logo, .ap-row, .ap-row b, .ap-row span, .ap-row div, .ap-total b, .ap-faceid span) { color: #000; }
.pat.pat .pat-applepay .ap-faceid:not(.ap-faceid--done) svg { color: #007aff; }
.pat.pat.pat[data-brand] .pat-applepay, .pat.pat.pat[data-brand] .pat-applepay * { text-transform: none !important; font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -0.01em; }

/* 2. Google review pages: Google's own look, whatever the restaurant's colours */
.pat.pat[data-screen="google"] { --c-primary: #000; --c-secondary: rgba(0, 0, 0, 0.58); --c-stroke: #dadce0; background: #fff; color: #000; }
.pat.pat[data-screen="google"] :is(.pat-google, .g-head, .g-user, .g-user strong, .g-user span, .g-date small, .g-date span, .g-date i, .g-foot em) { color: #000; }
.pat.pat[data-screen="google"] .g-user .g-avatar { color: #fff; }
.pat.pat[data-screen="google"] .g-text { background: #fff; color: #000; }
.pat.pat[data-screen="google"] .g-date small { background: #fff; }
.pat.pat[data-screen="google"] .g-date label { background: #fff; }
.pat.pat[data-screen="google"] :is(.pat-icon-btn, .g-head button) { background: transparent; color: #000 !important; }
.pat.pat.pat[data-brand]:is([data-screen="google"], [data-screen="googleDone"]) :is(.pat-google, .pat-google-done, .pat-google *, .pat-google-done *) { text-transform: none !important; }
.pat.pat[data-screen="googleDone"] { --c-primary: #fff; --c-secondary: rgba(255, 255, 255, 0.8); color: #fff; }

/* 3. Status bar: the content follows the background (data-tone is set when the screen renders) */
.pat-status { color: #000; }
.pat-status[data-tone="dark"] { color: #fff; }
.pat-status[data-tone="dark"] img { filter: invert(1); }
.pat-status[data-tone="dark"] .pat-battery { border-color: rgba(255, 255, 255, 0.45); }
.pat-status[data-tone="dark"] .pat-battery::before { background: #fff; }
.pat-status[data-tone="dark"] .pat-battery::after { background: rgba(255, 255, 255, 0.5); }

/* Loyalty readability (Guest App feedback): small buttons, reward cards and the voucher icon follow the loyalty colours. */
.pat:is([data-screen="loyaltyJoin"], [data-screen="loyaltyOtp"], [data-screen="loyalty"]) .pat-small-btn { color: var(--loyalty-ink); }
.pat[data-loyalty-tone="dark"]:is([data-screen="loyaltyJoin"], [data-screen="loyaltyOtp"], [data-screen="loyalty"]) .pat-small-btn { background: rgba(255, 255, 255, 0.3); color: #fff; }
.pat[data-brand] .pat-club-rewards .pat-reward:not(.pat-reward--locked) { background: color-mix(in srgb, var(--loyalty-ink) 6%, var(--loyalty)) !important; color: var(--loyalty-ink); border-color: color-mix(in srgb, var(--loyalty-ink) 16%, transparent); }
.pat[data-brand] .pat-club-rewards .pat-reward:not(.pat-reward--locked) :is(.pat-reward-type, .pat-muted) { color: color-mix(in srgb, var(--loyalty-ink) 72%, transparent); }
.pat[data-brand] .pat-club-rewards .pat-reward:not(.pat-reward--locked) .pat-reward-exp { color: color-mix(in srgb, var(--loyalty-ink) 60%, transparent); }
.pat-loyalty-push-icon--badge { color: var(--loyalty-ink); }
.pat-loyalty-push-icon--badge svg { width: 24px; height: 24px; }
.pat[data-brand] .pat-club-rewards .pat-reward .pat-reward-apply.is-selected { background: var(--loyalty-ink); color: var(--loyalty) !important; }
.pat[data-brand] .pat-club-rewards .pat-reward .pat-reward-apply:disabled { background: color-mix(in srgb, var(--loyalty-ink) 18%, transparent); color: color-mix(in srgb, var(--loyalty-ink) 70%, transparent) !important; }
/* With its own loyalty colour, the loyalty page sits on that colour (its text is the loyalty text colour). */
.pat.pat[data-brand][style*="--brand-loyalty:"][data-screen="loyalty"], .pat.pat[data-brand][style*="--brand-loyalty:"][data-screen="loyalty"] :is(.pat-status, .pat-tabbar) { background: var(--loyalty) !important; }
.pat.pat[data-brand][style*="--brand-loyalty:"][data-screen="loyalty"] .pat-tabbar { border-top-color: color-mix(in srgb, var(--loyalty-ink) 16%, transparent); }
.pat.pat[data-brand][style*="--brand-loyalty:"][data-screen="loyalty"] .pat-club-rewards { background: color-mix(in srgb, var(--loyalty-ink) 7%, var(--loyalty)); }
.pat.pat[data-brand][style*="--brand-loyalty:"] .pat-club-rewards .pat-reward:not(.pat-reward--locked) { background: color-mix(in srgb, var(--loyalty-ink) 12%, var(--loyalty)) !important; }
/* Coupon page ("Vos bons disponibles"): the restaurant's own look. Cards sit on its secondary background, buttons use its button colours. */
.pat[data-brand] .pat-coupon { background: var(--brand-soft) !important; color: var(--brand-ink); border-color: var(--brand-line, color-mix(in srgb, var(--brand-ink) 14%, transparent)); }
.pat[data-brand] .pat-coupon :is(.pat-reward-type, .pat-muted) { color: color-mix(in srgb, var(--brand-ink) 72%, transparent); }
.pat[data-brand] .pat-coupon .pat-reward-exp { color: color-mix(in srgb, var(--brand-ink) 60%, transparent); }
.pat[data-brand] .pat-coupon .pat-reward-apply, .pat[data-brand] .pat-coupon .pat-reward-apply.is-selected { background: var(--brand-primary); color: var(--brand-onPrimary) !important; }
.pat[data-brand] .pat-coupon .pat-reward-apply:disabled { background: color-mix(in srgb, var(--brand-primary) 30%, transparent); color: var(--brand-onPrimary) !important; opacity: .6; }

/* Loyalty page: the Apply button takes the page's contrast. Whites on a dark page, black on a light one. */
.pat[data-brand] .pat-club-rewards .pat-reward .pat-reward-apply:not(:disabled):not(.is-selected) { background: #141414; color: #fff !important; }
.pat[data-brand][data-loyalty-tone="dark"] .pat-club-rewards .pat-reward .pat-reward-apply:not(:disabled):not(.is-selected) { background: rgba(255, 255, 255, 0.92); color: #141414 !important; }
.pat[data-brand] .pat-club-rewards .pat-reward .pat-reward-apply.is-selected { background: #141414; color: #fff !important; }
.pat[data-brand][data-loyalty-tone="dark"] .pat-club-rewards .pat-reward .pat-reward-apply.is-selected { background: rgba(255, 255, 255, 0.92); color: #141414 !important; }
.pat[data-brand][data-loyalty-tone="dark"] .pat-club-rewards .pat-reward .pat-reward-apply:disabled { background: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.7) !important; }
/* Fidélité tab, focused: the heart is cut out in the tab bar's own colour, so the whole icon always shows. */
.pat-tabbar { --tab-cut: #fff; }
.pat[data-brand] .pat-tabbar { --tab-cut: var(--brand-bg); }
.pat.pat[data-brand][style*="--brand-loyalty:"][data-screen="loyalty"] .pat-tabbar { --tab-cut: var(--loyalty); }

/* Loyalty progress: the filled arc always uses the loyalty accent (set per venue to contrast with the loyalty background). */
.pat .pat-ring-fill { stroke: var(--loyalty-accent, #e2a93b); }
.pat[data-brand] .pat-ring-track { stroke: color-mix(in srgb, var(--loyalty-ink, var(--brand-ink)) 16%, transparent); }

/* Field strokes follow the page's light/dark contrast: never a hard black on a dark surface. */
.pat[data-brand] { --field-stroke: color-mix(in srgb, var(--brand-ink) 28%, transparent); --field-focus: var(--brand-ink); }
.pat[data-brand]:is([data-screen="loyaltyJoin"], [data-screen="loyaltyOtp"], [data-screen="loyalty"]) { --field-stroke: color-mix(in srgb, var(--loyalty-ink, var(--brand-ink)) 30%, transparent); --field-focus: var(--loyalty-ink, var(--brand-ink)); }
.pat[data-brand] :is(.pat-field, .pat-labelled, .pat-otp-box, .pat-select, .pat-phone-country, .pat-phone-field, .pat-club-country, .pat-club-field) { border-color: var(--field-stroke); }
.pat[data-brand] .pat-field:focus { outline-color: var(--field-focus); }
.pat[data-brand] .pat-labelled:focus-within, .pat[data-brand] .pat-club-field:focus-within, .pat[data-brand] .pat-otp:focus-within .pat-otp-box.is-current { border-color: var(--field-focus); }
.pat[data-brand] .pat-otp-box.is-filled { color: var(--loyalty-ink, var(--brand-ink)); }

/* Loyalty modules (join push, checkout push, banners): secondary text stays readable on any loyalty colour (4.5:1 or more, mid tones included). */
.pat.pat :is(.pat-loyalty-banner, .pat-loyalty-push, .pat-cc-loyalty, .pat-club-push) { --c-secondary: color-mix(in srgb, var(--loyalty-ink) 92%, transparent); }
.pat.pat .pat-club-push p { color: color-mix(in srgb, var(--loyalty-ink) 92%, transparent); }

/* Add buttons on dishes (the "+" and its quantity stepper): the button colour, with the icon in the button's content colour. */
.pat[data-brand] :is(.pat-tile-add, .pat-upsell-add) { background: var(--brand-primary); color: var(--brand-onPrimary) !important; }
.pat[data-brand] :is(.pat-tile-add, .pat-upsell-add) svg { stroke: var(--brand-onPrimary); }
.pat[data-brand] .pat-tile-stepper { background: var(--brand-primary); color: var(--brand-onPrimary); }
.pat[data-brand] .pat-tile-stepper :is(button, strong) { color: var(--brand-onPrimary); }
.pat[data-brand] .pat-tile-stepper svg { stroke: var(--brand-onPrimary); }

/* Post-payment ticket on a branded venue: the app's background, text in the content colour, and a shadow around the whole ticket (edges included). */
.pat[data-brand] :is(.pat-cc-ticket, .pat-ticket) { --ticket-bg: var(--brand-bg); color: var(--brand-ink); }
.pat[data-brand] .pat-cc-ticket { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.03)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.06)); }
.pat[data-brand] .pat-ticket { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.03)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.06)); }

/* Checkout: a field the guest still has to fill after tapping pay. */
.pat .pat-field.is-invalid, .pat .pat-labelled.is-invalid { border-color: #e5484d !important; box-shadow: inset 0 0 0 1px #e5484d; }
.pat-field-error { margin: 6px 4px 0; color: #e5484d; font-size: 13px; line-height: 1.35; }
.pat-card-fields .pat-field-error { margin-top: 8px; }

/* Info box ("How to pick up your order") on a customised venue: the secondary background, text and icon in the content colour. */
.pat[data-brand] .pat-cc-how { background: var(--brand-soft); color: var(--brand-ink); }
.pat[data-brand] .pat-cc-how svg circle:first-child { fill: var(--brand-ink); }
.pat[data-brand] .pat-cc-how svg path { stroke: var(--brand-soft); }
.pat[data-brand] .pat-cc-how svg circle:last-child { fill: var(--brand-soft); }

/* Checkboxes (receipt, preferences, alcohol): the page's text colour, so they read on light and dark backgrounds. */
.pat .pat-cb { flex: none; display: block; color: var(--c-primary); }
.pat .pat-cb:not(.is-on) { opacity: 0.35; }
.pat-checkbox-row > .pat-cb { margin-top: 1px; }
.pat-checkbox-row--small > .pat-cb { margin-top: 0; }
/* Intro story (Hybrid, Order and Pay): the wireframe cards are white, so their placeholders stay light grey whatever the brand. */
.pat .pat-art-card, .pat .pat-art-row { border-color: rgba(0, 0, 0, 0.12); color: #111; }
.pat .pat-art-card b, .pat .pat-art-card > i, .pat .pat-art-row b, .pat .pat-art-row > i, .pat .pat-art-row em { background: #e4e4e7; }
/* Its progress bars: the unplayed part stays visible on any background. */
.pat[data-brand] .pat-intro-bars i { background: color-mix(in srgb, var(--brand-ink) 22%, transparent); }
