/* ==========================================================================
   FCC Merch Manager — the register (2.1)
   Phone first: products fill the screen and the cart is a bar at the bottom
   that opens as a sheet. From 900px the cart is a panel beside the products.
   Same colours and type as the stock app (FCC style guide). Scoped `.fmr`.
   ========================================================================== */

.fmr {
	--fmr-navy: #0f1d29;
	--fmr-navy-2: #1a2d40;
	--fmr-sky: #5391de;
	--fmr-sky-ink: #2d68b5;
	--fmr-sky-soft: #d3e8f2;
	--fmr-ice: #e8f3f8;
	--fmr-grey: #f4f7fa;
	--fmr-grey-2: #e9eef3;
	--fmr-gold: #c9a227;
	--fmr-ink: #2a2a2a;
	--fmr-ink-soft: #5a5a5a;
	--fmr-ink-faint: #8a939c;
	--fmr-line: rgba(15, 29, 41, .10);
	--fmr-line-2: rgba(15, 29, 41, .18);
	--fmr-in: #1e7e34;
	--fmr-in-soft: #e6f4ea;
	--fmr-low: #9a6b00;
	--fmr-low-soft: #fdf3dc;
	--fmr-out: #c94227;
	--fmr-out-soft: #fbebe7;
	--fmr-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--fmr-sans: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--fmr-radius: 16px;
	--fmr-ease: cubic-bezier(.2, .8, .2, 1);
	--fmr-bar: 76px;

	font-family: var(--fmr-sans);
	font-size: 16px;
	line-height: 1.4;
	color: var(--fmr-ink);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
.fmr *, .fmr *::before, .fmr *::after { box-sizing: border-box; }
.fmr h1, .fmr h2, .fmr h3, .fmr p { margin: 0; }
.fmr img { display: block; max-width: 100%; }
.fmr [hidden] { display: none !important; }
.fmr .fmr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Theme-proof buttons and inputs. */
.fmr .fmr-ui {
	font: inherit; color: inherit; margin: 0; text-transform: none; letter-spacing: normal; text-decoration: none;
	text-shadow: none; box-shadow: none; background: none; border: 0; border-radius: 0; padding: 0; min-height: 0;
	line-height: inherit; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.fmr .fmr-ui:focus { outline: none; }
.fmr .fmr-ui:focus-visible, .fmr a:focus-visible, .fmr .fmr-input:focus-visible { outline: 3px solid var(--fmr-sky); outline-offset: 2px; }
.fmr .fmr-ui:disabled { cursor: not-allowed; }
.fmr .fmr-ico { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
.fmr .fmr-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fmr .fmr-num { font-variant-numeric: tabular-nums; }
.fmr .fmr-muted { color: var(--fmr-ink-faint); }

/* Boot, gate */
.fmr .fmr-boot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 16px; color: var(--fmr-ink-soft); }
.fmr .fmr-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--fmr-sky-soft); border-top-color: var(--fmr-sky); animation: fmr-spin .8s linear infinite; }
@keyframes fmr-spin { to { transform: rotate(360deg); } }
.fmr.fmr-gate { padding: 40px 16px; }
.fmr .fmr-gate-card { max-width: 520px; margin: 0 auto; padding: 28px 24px; border-radius: var(--fmr-radius); background: var(--fmr-ice); text-align: center; }
.fmr .fmr-gate-card h2 { font-family: var(--fmr-serif); color: var(--fmr-navy); margin-bottom: 10px; font-size: 1.5rem; }
.fmr .fmr-gate-card p { color: var(--fmr-ink-soft); }

/* Buttons */
.fmr .fmr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
	border-radius: 999px; background: var(--fmr-navy); color: #fff; font-weight: 700;
}
.fmr .fmr-btn:hover { background: var(--fmr-navy-2); color: #fff; }
.fmr .fmr-btn:disabled { background: var(--fmr-grey-2); color: var(--fmr-ink-faint); }
.fmr .fmr-btn--quiet { background: #fff; color: var(--fmr-navy); box-shadow: inset 0 0 0 1.5px var(--fmr-line-2); }
.fmr .fmr-btn--quiet:hover { background: var(--fmr-grey); color: var(--fmr-navy); }
.fmr .fmr-btn--gold { background: var(--fmr-gold); color: var(--fmr-navy); }
.fmr .fmr-btn--gold:hover { background: #b8931f; color: var(--fmr-navy); }
.fmr .fmr-btn--danger { background: var(--fmr-out); }
.fmr .fmr-btn--danger:hover { background: #a93520; }
.fmr .fmr-btn--block { width: 100%; }
.fmr .fmr-btn--big { min-height: 60px; font-size: 1.15rem; }
.fmr .fmr-textbtn { color: var(--fmr-sky-ink); font-weight: 600; padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.fmr .fmr-iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--fmr-navy); }
.fmr .fmr-iconbtn:hover { background: var(--fmr-grey); }

.fmr .fmr-input {
	font: inherit; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--fmr-line-2);
	background: #fff; color: var(--fmr-ink); box-shadow: none; margin: 0;
}
.fmr .fmr-input:focus { border-color: var(--fmr-sky); outline: none; }
.fmr .fmr-label { display: block; font-weight: 600; color: var(--fmr-navy); margin-bottom: 6px; }
.fmr .fmr-field { margin-bottom: 14px; }
.fmr .fmr-hint { font-size: .9rem; color: var(--fmr-ink-soft); margin-top: 4px; }

/* Layout */
.fmr .fmr-shell { container: fmr / inline-size; }
.fmr .fmr-shell-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: calc(var(--fmr-bar) + 16px); }
.fmr .fmr-head {
	position: sticky; top: var(--fmr-offset, 0px); z-index: 20; background: #fff; padding: 10px 0 8px;
	border-bottom: 1px solid var(--fmr-line);
}
.fmr .fmr-head-row { display: flex; align-items: center; gap: 8px; }
.fmr .fmr-title { font-family: var(--fmr-serif); font-size: 1.3rem; color: var(--fmr-navy); font-weight: 600; flex: 1; min-width: 0; }
.fmr .fmr-who { font-size: .9rem; color: var(--fmr-ink-soft); }
.fmr .fmr-search { position: relative; margin-top: 8px; }
.fmr .fmr-search .fmr-ico { position: absolute; left: 14px; top: 14px; color: var(--fmr-ink-faint); }
.fmr .fmr-search .fmr-input { padding-left: 42px; }
.fmr .fmr-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.fmr .fmr-tabs::-webkit-scrollbar { display: none; }
.fmr .fmr-tab {
	flex-shrink: 0; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--fmr-grey);
	color: var(--fmr-navy); font-weight: 600; white-space: nowrap;
}
.fmr .fmr-tab[aria-pressed="true"] { background: var(--fmr-navy); color: #fff; }

/* Product cards */
.fmr .fmr-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fmr .fmr-card {
	width: 100%; text-align: left; display: flex; flex-direction: column; background: #fff; border-radius: var(--fmr-radius);
	box-shadow: 0 0 0 1px var(--fmr-line); overflow: hidden; height: 100%;
	transition: box-shadow .15s, transform .15s var(--fmr-ease);
}
.fmr .fmr-card:hover { box-shadow: 0 0 0 1.5px var(--fmr-sky), 0 6px 18px rgba(15, 29, 41, .08); }
.fmr .fmr-card:active { transform: scale(.98); }
.fmr .fmr-card.is-out { opacity: .6; }
.fmr .fmr-card-img { aspect-ratio: 1 / 1; background: var(--fmr-grey); display: flex; align-items: center; justify-content: center; color: var(--fmr-ink-faint); }
.fmr .fmr-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fmr .fmr-card-img .fmr-ico { width: 36px; height: 36px; }
.fmr .fmr-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fmr .fmr-card-name { font-weight: 700; color: var(--fmr-navy); line-height: 1.25; }
.fmr .fmr-card-price { font-weight: 700; font-size: 1.05rem; }
.fmr .fmr-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; align-self: flex-start; }
.fmr .fmr-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fmr .fmr-stock--in { background: var(--fmr-in-soft); color: var(--fmr-in); }
.fmr .fmr-stock--low { background: var(--fmr-low-soft); color: var(--fmr-low); }
.fmr .fmr-stock--out { background: var(--fmr-out-soft); color: var(--fmr-out); }
.fmr .fmr-card-count { position: absolute; }
.fmr .fmr-incart { font-size: .85rem; color: var(--fmr-sky-ink); font-weight: 700; }
.fmr .fmr-empty { text-align: center; padding: 40px 16px; color: var(--fmr-ink-soft); }
.fmr .fmr-empty h2 { font-family: var(--fmr-serif); color: var(--fmr-navy); margin-bottom: 6px; }

/* The cart bar (phone) */
.fmr .fmr-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: #fff; box-shadow: 0 -1px 0 var(--fmr-line), 0 -8px 24px rgba(15, 29, 41, .08);
}
.fmr .fmr-bar-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 20px; border-radius: 999px; background: var(--fmr-navy); color: #fff; font-weight: 700; font-size: 1.05rem; }
.fmr .fmr-bar-btn:disabled { background: var(--fmr-grey-2); color: var(--fmr-ink-soft); }
.fmr .fmr-bar-count { display: inline-flex; align-items: center; gap: 10px; }
.fmr .fmr-bubble { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--fmr-gold); color: var(--fmr-navy); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }

/* The cart (sheet on a phone, panel from 900px) */
.fmr .fmr-cart-lines { list-style: none; margin: 0; padding: 0; }
.fmr .fmr-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--fmr-line); }
.fmr .fmr-line-name { font-weight: 600; color: var(--fmr-navy); }
.fmr .fmr-line-each { font-size: .9rem; color: var(--fmr-ink-soft); }
.fmr .fmr-line-total { font-weight: 700; text-align: right; }
.fmr .fmr-line-warn { grid-column: 1 / -1; color: var(--fmr-out); font-size: .9rem; font-weight: 600; }
.fmr .fmr-line-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.fmr .fmr-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--fmr-grey); border-radius: 999px; padding: 3px; }
.fmr .fmr-step { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--fmr-navy); box-shadow: 0 0 0 1px var(--fmr-line); }
.fmr .fmr-step:disabled { color: var(--fmr-ink-faint); background: transparent; box-shadow: none; }
.fmr .fmr-qty { min-width: 32px; text-align: center; font-weight: 700; }
.fmr .fmr-totals { margin: 12px 0; display: grid; gap: 4px; }
.fmr .fmr-totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--fmr-ink-soft); }
.fmr .fmr-totals .fmr-grand { color: var(--fmr-navy); font-weight: 800; font-size: 1.35rem; padding-top: 6px; border-top: 1px solid var(--fmr-line); margin-top: 4px; }
.fmr .fmr-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.fmr .fmr-extras { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0; }
.fmr .fmr-customer-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--fmr-ice); border-radius: 999px; padding: 4px 6px 4px 14px; font-weight: 600; color: var(--fmr-navy); }

.fmr .fmr-panel { display: none; }

/* Layout follows the space the theme gives the register, not the screen. */
@container fmr (min-width: 560px) {
	.fmr .fmr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container fmr (min-width: 860px) {
	.fmr .fmr-shell-in { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding-bottom: 24px; }
	.fmr .fmr-panel {
		display: block; position: sticky; top: calc(var(--fmr-offset, 0px) + 12px); align-self: start;
		background: #fff; border-radius: var(--fmr-radius); box-shadow: 0 0 0 1px var(--fmr-line), 0 8px 24px rgba(15, 29, 41, .06);
		padding: 16px 18px; max-height: calc(100vh - var(--fmr-offset, 0px) - 24px); overflow: auto;
	}
	.fmr .fmr-panel h2 { font-family: var(--fmr-serif); color: var(--fmr-navy); font-size: 1.3rem; margin-bottom: 4px; }
}
@container fmr (min-width: 860px) {
	.fmr .fmr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container fmr (min-width: 1040px) {
	.fmr .fmr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container fmr (min-width: 1300px) {
	.fmr .fmr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sheets */
.fmr-layer { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 29, 41, 0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.fmr-layer.is-open { background: rgba(15, 29, 41, .45); }
.fmr .fmr-sheet {
	width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0;
	padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .24s var(--fmr-ease);
}
.fmr-layer.is-open .fmr-sheet { transform: translateY(0); }
.fmr .fmr-sheet-handle { width: 40px; height: 5px; border-radius: 999px; background: var(--fmr-grey-2); margin: 4px auto 6px; }
.fmr .fmr-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.fmr .fmr-sheet-title { font-family: var(--fmr-serif); font-size: 1.3rem; font-weight: 600; color: var(--fmr-navy); }
.fmr .fmr-sheet-text { color: var(--fmr-ink-soft); margin-bottom: 12px; }
@media (min-width: 720px) {
	.fmr-layer { align-items: center; }
	.fmr .fmr-sheet { border-radius: 22px; transform: translateY(24px); opacity: 0; transition: transform .2s var(--fmr-ease), opacity .2s; }
	.fmr-layer.is-open .fmr-sheet { transform: none; opacity: 1; }
}

/* Size and colour picker */
.fmr .fmr-pick-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.fmr .fmr-pick-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--fmr-grey); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--fmr-ink-faint); }
.fmr .fmr-pick-img img { width: 100%; height: 100%; object-fit: cover; }
.fmr .fmr-group-label { font-weight: 700; color: var(--fmr-navy); margin: 12px 0 8px; }
.fmr .fmr-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.fmr .fmr-choice {
	min-width: 64px; min-height: 52px; padding: 6px 14px; border-radius: 14px; background: #fff; color: var(--fmr-navy);
	box-shadow: inset 0 0 0 1.5px var(--fmr-line-2); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700;
}
.fmr .fmr-choice small { font-weight: 600; font-size: .78rem; color: var(--fmr-ink-soft); }
.fmr .fmr-choice[aria-pressed="true"] { background: var(--fmr-navy); color: #fff; box-shadow: none; }
.fmr .fmr-choice[aria-pressed="true"] small { color: #d7e2ec; }
.fmr .fmr-choice:disabled { background: var(--fmr-grey); color: var(--fmr-ink-faint); box-shadow: none; text-decoration: line-through; }
.fmr .fmr-choice:disabled small { text-decoration: none; color: var(--fmr-out); }
.fmr .fmr-add-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.fmr .fmr-add-row .fmr-btn { flex: 1; }

/* Paying */
.fmr .fmr-due { text-align: center; padding: 8px 0 14px; }
.fmr .fmr-due-label { color: var(--fmr-ink-soft); font-weight: 600; }
.fmr .fmr-due-amount { font-size: 2.6rem; font-weight: 800; color: var(--fmr-navy); line-height: 1.1; }
.fmr .fmr-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.fmr .fmr-quick .fmr-choice { min-width: 0; }
.fmr .fmr-change { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: var(--fmr-in-soft); color: var(--fmr-in); font-weight: 700; margin: 4px 0 14px; }
.fmr .fmr-change.is-short { background: var(--fmr-out-soft); color: var(--fmr-out); }
.fmr .fmr-change b { font-size: 1.6rem; }
.fmr .fmr-error { color: var(--fmr-out); font-weight: 600; margin: 8px 0; }

/* Sale complete */
.fmr .fmr-done { text-align: center; padding: 10px 0 0; }
.fmr .fmr-done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--fmr-in-soft); color: var(--fmr-in); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.fmr .fmr-done-mark .fmr-ico { width: 40px; height: 40px; }
.fmr .fmr-done-mark .fmr-ico svg { stroke-width: 2.6; }
.fmr .fmr-code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; font-size: 1.5rem; font-weight: 800; color: var(--fmr-navy); background: var(--fmr-ice); padding: 6px 14px; border-radius: 10px; margin: 6px 0; }
.fmr .fmr-done-change { font-size: 1.3rem; font-weight: 800; color: var(--fmr-in); margin: 6px 0; }
.fmr .fmr-done-items { list-style: none; padding: 0; margin: 12px 0; text-align: left; }
.fmr .fmr-done-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--fmr-line); }
.fmr .fmr-receipt-row { display: flex; gap: 8px; margin: 10px 0; }
.fmr .fmr-receipt-row .fmr-input { flex: 1; }
.fmr .fmr-countdown { color: var(--fmr-ink-soft); font-size: .92rem; margin-top: 8px; }

/* Find sale */
.fmr .fmr-sales { list-style: none; margin: 10px 0 0; padding: 0; }
.fmr .fmr-sale-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; text-align: left; padding: 12px 4px; border-bottom: 1px solid var(--fmr-line); }
.fmr .fmr-sale-row:hover { background: var(--fmr-grey); }
.fmr .fmr-sale-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; color: var(--fmr-navy); letter-spacing: .08em; }
.fmr .fmr-sale-meta { font-size: .9rem; color: var(--fmr-ink-soft); overflow-wrap: anywhere; }
.fmr .fmr-pill { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--fmr-grey-2); color: var(--fmr-navy); }
.fmr .fmr-pill--refunded, .fmr .fmr-pill--voided { background: var(--fmr-out-soft); color: var(--fmr-out); }
.fmr .fmr-pill--partially_refunded { background: var(--fmr-low-soft); color: var(--fmr-low); }
.fmr .fmr-refund-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--fmr-line); }
.fmr .fmr-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.fmr .fmr-check input { width: 22px; height: 22px; }

/* Member search */
.fmr .fmr-results { list-style: none; margin: 6px 0 0; padding: 0; }
.fmr .fmr-results button { width: 100%; text-align: left; padding: 12px; border-radius: 10px; font-weight: 600; color: var(--fmr-navy); min-height: 48px; }
.fmr .fmr-results button:hover { background: var(--fmr-grey); }

/* Toast */
.fmr-toast-host { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 100001; width: min(92vw, 460px); pointer-events: none; }
.fmr .fmr-toast { background: var(--fmr-navy); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(15, 29, 41, .25); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
.fmr .fmr-toast.is-in { opacity: 1; transform: none; }
.fmr .fmr-toast--error { background: var(--fmr-out); }

.fmr .fmr-banner { background: var(--fmr-low-soft); color: var(--fmr-low); padding: 10px 14px; border-radius: 12px; margin-top: 10px; font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
	.fmr *, .fmr-layer { transition: none !important; animation: none !important; }
}

/* Narrow: "Find sale" shrinks to its icon. */
@container fmr (max-width: 420px) {
	.fmr .fmr-find-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.fmr .fmr-find { padding: 10px 14px; }
}

/* The bar sits outside the measured area (it's fixed to the screen); the
   script adds .is-wide when the cart panel is showing instead. */
.fmr.is-wide .fmr-bar { display: none; }

/* 2.2: card sales */
.fmr .fmr-pay--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fmr .fmr-code--big { font-size: 2rem; padding: 8px 18px; }
.fmr .fmr-steps { margin: 4px 0 8px; padding-left: 22px; color: var(--fmr-ink); line-height: 1.5; }
.fmr .fmr-steps li { margin-bottom: 4px; }
.fmr .fmr-ui.fmr-btn:disabled, .fmr .fmr-ui.fmr-btn:disabled:hover { background: var(--fmr-grey-2); color: var(--fmr-ink-faint); box-shadow: none; }

/* 2.4: two ways to take a card through Zeffy */
.fmr .fmr-pay--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fmr .fmr-btn--card { flex-direction: column; line-height: 1.15; gap: 2px; }
.fmr .fmr-btn--card small { display: block; font-size: .8rem; font-weight: 600; opacity: .85; }
.fmr .fmr-hint--warn { color: var(--fmr-ink); background: #fdf3e1; border-left: 4px solid #c98a1b; padding: 8px 10px; border-radius: 6px; }
.fmr a.fmr-btn { text-decoration: none; display: flex; align-items: center; justify-content: center; }

/* 2.5: sessions, held sales, returns, offline */
.fmr .fmr-who-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 8px; }
.fmr .fmr-who-row .fmr-who { margin: 0; }
.fmr .fmr-chipbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--fmr-ice); color: var(--fmr-navy); font-weight: 600; font-size: .9rem; max-width: 100%; }
.fmr .fmr-chipbtn .fmr-ico svg { width: 18px; height: 18px; }
.fmr .fmr-chipbtn:hover { background: var(--fmr-sky-soft); }
.fmr .fmr-chipbtn.is-warn { background: var(--fmr-low-soft); color: var(--fmr-low); }
.fmr .fmr-offline { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: var(--fmr-low-soft); color: var(--fmr-low); font-weight: 600; }
.fmr .fmr-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--fmr-low-soft); color: var(--fmr-ink); }
.fmr .fmr-notice--card { background: var(--fmr-ice); }
.fmr .fmr-cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.fmr .fmr-textbtn:disabled { color: var(--fmr-ink-faint); }
.fmr .fmr-check--small { font-size: .9rem; grid-column: 1 / -1; }
.fmr .fmr-refund-line { flex-wrap: wrap; }
.fmr .fmr-hold { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px; border-bottom: 1px solid var(--fmr-line); }
.fmr .fmr-hold-actions { display: flex; align-items: center; gap: 8px; }
.fmr select.fmr-input { min-width: 0; flex: 1 1 auto; }
.fmr .fmr-refund-line .fmr-check--small { flex-basis: 100%; margin: 0; }

/* 2.6: pickups */
.fmr .fmr-scan { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; object-fit: cover; }
