/* ==========================================================================
   BetterThat — OTP auth prototype
   Tokens mirror ffc-frontend/styles/_variables.scss so this maps 1:1 onto
   RegisterLogin.module.scss when it is built for real.
   ========================================================================== */

:root {
	/* repo tokens */
	--white: #ffffff;
	--white-two: #f5f5f5;
	--black: #000000;
	--black-new: #12141a;
	--grey: #a8a2a2;
	--grey-two: #ddd;
	--dark-grey: #787878;
	--red: #e30024;
	--green: #24be00;
	--moss: #405738;
	--overcast: #99c8cc;
	--pistachio: #f0e3d4;
	--muted-blue: #122b4f;
	--bright-blue: #00b9f1;
	--peach: #fab5b2;

	--radius: 10px;
	--font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* brand-swappable */
	--brand-panel: var(--black);
	--brand-accent: var(--moss);
	--brand-accent-soft: var(--overcast);
	--brand-tint: var(--pistachio);
	--brand-name: 'Food For Change';
}

:root[data-brand='fig'],
[data-brand='fig'] {
	--brand-panel: #0b1f33;
	--brand-accent: var(--muted-blue);
	--brand-accent-soft: var(--bright-blue);
	--brand-tint: #e2f4fb;
	--brand-name: 'Fishing In Godzone';
}

[data-brand='ffc'] {
	--brand-panel: var(--black);
	--brand-accent: var(--moss);
	--brand-accent-soft: var(--overcast);
	--brand-tint: var(--pistachio);
	--paper: #faf8f4;
	--line: #e7e3dc;
	--hero-shade: rgba(18, 20, 26, 0.62);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font);
	background: #eceae6;
	color: var(--black-new);
	-webkit-font-smoothing: antialiased;
}

/* ---------- top bar ---------------------------------------------------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	padding: 14px 24px;
	background: var(--black-new);
	color: var(--white);
}

.topbar h1 {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	letter-spacing: 0.02em;
}

.topbar .sub {
	font-size: 12px;
	color: var(--grey);
	margin-left: -8px;
}

.spacer {
	flex: 1;
}

.toggle {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	padding: 3px;
}

.toggle button {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	cursor: pointer;
}

.toggle button[aria-pressed='true'] {
	background: var(--white);
	color: var(--black-new);
}

/* ---------- layout ----------------------------------------------------- */

.wrap {
	max-width: 1560px;
	margin: 0 auto;
	padding: 28px 24px 80px;
}

.intro {
	max-width: 760px;
	margin-bottom: 32px;
}

.intro h2 {
	font-size: 22px;
	margin: 0 0 8px;
}

.intro p {
	font-size: 14px;
	line-height: 1.6;
	color: #4a4a4a;
	margin: 0 0 8px;
}

/* ---------- the auth page mock ---------------------------------------- */

.screen {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 10px 26px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	min-height: 430px;
}

.screen.tall {
	min-height: 560px;
}

/* fake browser chrome — this is a full-page /auth route, not a modal */
.chrome {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	background: #e6e3de;
	border-bottom: 1px solid #d5d1cb;
}

.dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #c9c4bd;
}

.url {
	flex: 1;
	font-size: 10.5px;
	color: #6d6a66;
	background: var(--white);
	border-radius: 4px;
	padding: 3px 9px;
	margin-left: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.split {
	display: flex;
	flex: 1;
}

.left {
	width: 42%;
	background: var(--brand-panel);
	color: var(--white);
	padding: 30px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.left h4 {
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 16px;
}

.left p {
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
}

.left .accent {
	color: var(--brand-accent-soft);
}

.right {
	width: 58%;
	padding: 28px 26px;
	display: flex;
	flex-direction: column;
}

.right h5 {
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 6px;
}

.lede {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--dark-grey);
	margin: 0 0 18px;
}

/* ---------- form parts ------------------------------------------------- */

.field {
	margin-bottom: 14px;
}

.field label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--dark-grey);
	margin-bottom: 5px;
}

.input {
	width: 100%;
	font-family: inherit;
	font-size: 13.5px;
	color: var(--black-new);
	padding: 11px 12px;
	border: 1px solid var(--grey-two);
	border-radius: 6px;
	background: var(--white);
	outline: none;
}

.input:focus {
	border-color: var(--brand-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 18%, transparent);
}

.input.err {
	border-color: var(--red);
}

.input[readonly] {
	background: var(--white-two);
	color: var(--dark-grey);
}

.row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.phoneRow {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 10px;
}

.verifiedRow {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--brand-tint);
	border-radius: 6px;
	padding: 9px 12px;
	font-size: 12.5px;
	margin-bottom: 16px;
}

.tick {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--green);
	color: var(--white);
	font-size: 10px;
	display: grid;
	place-items: center;
	flex: none;
}

.btn {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 12px;
	border: 0;
	border-radius: 6px;
	background: var(--brand-accent);
	color: var(--white);
	cursor: pointer;
}

.btn:disabled {
	background: var(--grey-two);
	color: #8d8d8d;
	cursor: not-allowed;
}

.btn.ghost {
	background: transparent;
	color: var(--black-new);
	border: 1px solid var(--grey-two);
}

.btnRow {
	margin-top: 4px;
}

.checkRow {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	margin: 4px 0 16px;
	line-height: 1.5;
}

.checkRow input {
	margin-top: 2px;
}

.meta {
	font-size: 12px;
	color: var(--dark-grey);
	margin-top: 14px;
	line-height: 1.6;
}

.meta a,
.linkish {
	color: var(--brand-accent);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.muted {
	color: var(--grey);
}

/* ---------- code boxes ------------------------------------------------- */

.codeBoxes {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin-bottom: 6px;
}

.codeBox {
	aspect-ratio: 1 / 1.15;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	border: 1px solid var(--grey-two);
	border-radius: 6px;
	background: var(--white);
	color: var(--black-new);
	outline: none;
	min-width: 0;
}

.codeBox:focus {
	border-color: var(--brand-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 18%, transparent);
}

.codeBoxes.err .codeBox {
	border-color: var(--red);
	color: var(--red);
}

.codeBoxes.locked .codeBox {
	background: var(--white-two);
	color: var(--grey);
}

.timer {
	font-size: 12px;
	color: var(--dark-grey);
	margin-bottom: 14px;
}

.timer b {
	color: var(--black-new);
	font-variant-numeric: tabular-nums;
}

/* ---------- messages --------------------------------------------------- */

.msg {
	font-size: 12.5px;
	line-height: 1.55;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 14px;
}

.msg.error {
	background: #ffe9ec;
	color: #a3001c;
}

.msg.success {
	background: #e6f6e2;
	color: #1e6b12;
}

.msg.info {
	background: var(--brand-tint);
	color: #2f3b2b;
}

.msg.warn {
	background: #fff2d9;
	color: #7a4a00;
}

/* ---------- success screens ------------------------------------------- */

.doneWrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	text-align: center;
}

.bigTick {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--green);
	color: var(--white);
	font-size: 24px;
	display: grid;
	place-items: center;
	margin: 0 auto 14px;
}

.handoff {
	text-align: left;
	background: var(--white-two);
	border-radius: 6px;
	padding: 12px;
	margin-top: 16px;
	font-size: 12px;
	line-height: 1.7;
	color: #4a4a4a;
}

.handoff b {
	color: var(--black-new);
}

/* ---------- checkout / auction blocks --------------------------------- */

.checkoutBox {
	flex: 1;
	padding: 30px 26px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.checkoutBox h5 {
	font-size: 22px;
	margin: 0 0 4px;
}

.checkoutBox .btn {
	margin-bottom: 10px;
}

.orRule {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--grey);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 6px 0 12px;
}

.orRule::before,
.orRule::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--grey-two);
}

/* ---------- try-it mode ------------------------------------------------ */

.tryWrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
}

.tryStage .screen {
	min-height: 520px;
}

.sidebar {
	background: var(--white);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 90px;
}

.sidebar h4 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dark-grey);
	margin: 0 0 10px;
}

.sidebar h4:not(:first-child) {
	margin-top: 22px;
}

.sidebar p,
.sidebar li {
	font-size: 12.5px;
	line-height: 1.65;
	color: #4a4a4a;
}

.sidebar ul {
	margin: 0;
	padding-left: 16px;
}

.sidebar code {
	font-size: 11.5px;
	background: var(--white-two);
	padding: 1px 5px;
	border-radius: 3px;
}

.tryBtn {
	display: block;
	width: 100%;
	text-align: left;
	font-family: inherit;
	font-size: 12.5px;
	background: var(--white-two);
	border: 1px solid var(--grey-two);
	border-radius: 6px;
	padding: 9px 11px;
	margin-bottom: 7px;
	cursor: pointer;
	color: var(--black-new);
}

.tryBtn:hover {
	border-color: var(--brand-accent);
}

.tryBtn b {
	display: block;
	font-size: 12.5px;
}

.tryBtn span {
	color: var(--dark-grey);
	font-size: 11.5px;
}

.stateLine {
	font-size: 11.5px;
	color: var(--dark-grey);
	background: var(--white-two);
	border-radius: 5px;
	padding: 8px 10px;
	margin-top: 12px;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
}

.hidden {
	display: none !important;
}

/* ---------- responsive ------------------------------------------------- */

@media screen and (max-width: 1100px) {
	.tryWrap {
		grid-template-columns: 1fr;
	}
	.sidebar {
		position: static;
	}
}

@media screen and (max-width: 767px) {
	.split {
		flex-direction: column;
	}
	.left,
	.right {
		width: 100%;
	}
	.left {
		padding: 22px 20px;
	}
	.left h4 {
		font-size: 19px;
	}
	.grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Presentation layer — stage banners, identity toggle, before/after
   ========================================================================== */

/* ---------- before & after --------------------------------------------- */

.cmpGrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	margin-bottom: 44px;
}

.cmpCol {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 26px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
}

.cmpHead {
	padding: 20px 24px;
	color: var(--white);
}

.cmpHead.old {
	background: #6b6560;
}

.cmpHead.new {
	background: var(--brand-accent);
}

.cmpHead h3 {
	margin: 0 0 3px;
	font-size: 19px;
	font-weight: 900;
}

.cmpHead p {
	margin: 0;
	font-size: 13px;
	opacity: 0.85;
}

.cmpSteps {
	margin: 0;
	padding: 22px 24px 8px 44px;
	font-size: 14px;
	line-height: 1.9;
	color: #33312e;
}

.cmpSteps em {
	color: var(--red);
	font-style: normal;
	font-weight: 700;
}

.cmpFail {
	margin: 8px 24px 0;
	background: #ffe9ec;
	border-radius: 6px;
	padding: 14px 16px;
	font-size: 13px;
	line-height: 1.7;
	color: #7d0016;
}

.cmpFail.good {
	background: #e6f6e2;
	color: #1e6b12;
}

.cmpFail b {
	display: block;
	margin-bottom: 5px;
}

.cmpFail ol {
	margin: 0;
	padding-left: 18px;
}

.cmpFail p {
	margin: 0;
}

.cmpCount {
	margin-top: auto;
	padding: 16px 24px;
	font-size: 13.5px;
	border-top: 1px solid var(--grey-two);
	color: #4a4a4a;
}

.cmpCount b {
	font-size: 20px;
	font-weight: 900;
	color: var(--black-new);
}

.cmpCount.new b {
	color: var(--brand-accent);
}

/* ---------- wins ------------------------------------------------------- */

.winGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
}

.win {
	background: var(--white);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.winIc {
	font-size: 26px;
	margin-bottom: 10px;
}

.win b {
	display: block;
	font-size: 14.5px;
	margin-bottom: 6px;
}

.win p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: #4a4a4a;
}

.propTag {
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	background: #fff2d9;
	color: #7a4a00;
	border-radius: 3px;
	padding: 2px 5px;
	margin-left: 5px;
	vertical-align: 1px;
}

@media screen and (max-width: 900px) {
	.cmpGrid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Try it — presentation scale. The board shows many screens at a glance, so
   its cards stay small; Try it shows one screen to a room, so it scales up.
   ========================================================================== */

.tryWrap {
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
}

.tryStage .screen,
.tryStage .screen.tall {
	min-height: 660px;
}

.tryStage .chrome {
	padding: 12px 16px;
}

.tryStage .dot {
	width: 11px;
	height: 11px;
}

.tryStage .url {
	font-size: 12.5px;
	padding: 5px 12px;
}

.tryStage .left {
	padding: 44px 38px;
}

.tryStage .left h4 {
	font-size: 33px;
	margin-bottom: 20px;
}

.tryStage .left p {
	font-size: 15.5px;
}

.tryStage .right {
	padding: 46px 48px;
	justify-content: center;
}

.tryStage .right h5 {
	font-size: 29px;
	margin-bottom: 8px;
}

.tryStage .lede {
	font-size: 15px;
	margin-bottom: 26px;
}

.tryStage .field {
	margin-bottom: 18px;
}

.tryStage .field label {
	font-size: 12px;
}

.tryStage .input {
	font-size: 16.5px;
	padding: 15px 15px;
}

.tryStage .btn {
	font-size: 17px;
	padding: 16px;
}

.tryStage .codeBoxes {
	gap: 11px;
	margin-bottom: 10px;
}

.tryStage .codeBox {
	font-size: 32px;
}

.tryStage .timer,
.tryStage .meta,
.tryStage .msg,
.tryStage .verifiedRow,
.tryStage .checkRow {
	font-size: 15px;
}

.tryStage .timer {
	margin-bottom: 24px;
}

.tryStage .checkoutBox {
	padding: 56px 48px;
}

.tryStage .checkoutBox h5 {
	font-size: 29px;
}

.tryStage .bigTick {
	width: 62px;
	height: 62px;
	font-size: 32px;
	margin-bottom: 20px;
}

.tryStage .handoff {
	font-size: 14px;
	padding: 16px;
}

@media screen and (max-width: 1100px) {
	.tryWrap {
		grid-template-columns: 1fr;
	}
}

/* ---------- try it: storefront ------------------------------------------
   Mirrors the live partner sites: orange strap, white 100px header with the
   real logo, category bar, photo hero. Colours from ffc-frontend
   styles/_variables.scss ($orange, $moss, $mutedBlue, $pistachio).
   ---------------------------------------------------------------------- */

:root {
	--strap: #f04f24;
	--ink: #12141a;
	--line: #e7e3dc;
	--paper: #faf8f4;
	--hero-shade: rgba(18, 20, 26, 0.62);
}

:root[data-brand='fig'],
[data-brand='fig'] {
	--paper: #f4f8fb;
	--line: #dfe7ee;
	--hero-shade: rgba(11, 31, 51, 0.6);
}

#try {
	max-width: 1360px;
	margin: 0 auto;
}

.screen.site {
	min-height: 0;
	background: var(--white);
}

.siteBody {
	display: flex;
	flex-direction: column;
	min-height: 560px;
	background: var(--paper);
}

.site a[data-go],
.site a[data-auth],
.site a[data-act] {
	cursor: pointer;
}

.site :focus-visible {
	outline: 3px solid var(--brand-accent-soft);
	outline-offset: 2px;
}

/* strap + header */

.shopStrap {
	background: var(--strap);
	color: var(--white);
	font-size: 13.5px;
	text-align: center;
	padding: 10px 20px;
	line-height: 1.4;
}

.shopHead {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	height: 96px;
	padding: 0 40px;
	background: var(--white);
}

.shopLogo img {
	display: block;
	height: 64px;
	width: auto;
}

.shopSearch {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	width: 100%;
	justify-self: center;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--dark-grey);
}

.shopSearch input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	outline: none;
}

.site svg {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.shopActions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.shopAct {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	text-align: left;
	cursor: pointer;
}

button.shopAct:hover {
	background: var(--paper);
}

.shopAct small {
	display: block;
	font-size: 11.5px;
	font-weight: 400;
	color: var(--dark-grey);
}

.shopAct.is-in svg {
	color: var(--brand-accent);
}

.shopText {
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	color: var(--dark-grey);
	text-decoration: underline;
	cursor: pointer;
	min-height: 44px;
	padding: 0 8px;
}

.shopNav {
	display: flex;
	gap: 28px;
	padding: 0 40px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--white);
	overflow-x: auto;
	scrollbar-width: none;
}

.shopNav a {
	flex: none;
	padding: 14px 0 12px;
	font-size: 14px;
	color: var(--ink);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.shopNav a:hover,
.shopNav a.on {
	border-bottom-color: var(--brand-accent);
	font-weight: 700;
}

/* hero */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 460px;
	padding: 56px 40px;
	background: linear-gradient(90deg, var(--hero-shade) 0%, rgba(0, 0, 0, 0.15) 70%), var(--hero) center / cover;
	color: var(--white);
}

.heroInner {
	max-width: 560px;
}

.eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.85;
}

.hero h1 {
	margin: 0 0 16px;
	font-size: clamp(34px, 4.4vw, 56px);
	line-height: 1.05;
	font-weight: 900;
	text-wrap: balance;
}

.hero p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	max-width: 46ch;
	text-wrap: pretty;
}

.heroCtas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.heroCtas .btn {
	width: auto;
	padding: 14px 26px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.btn.ghost.light {
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.7);
}

.btn.ghost.light:hover {
	background: rgba(255, 255, 255, 0.12);
}

.btn.added {
	background: #1e7a12; /* darker than --green so white text passes contrast */
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 20px;
	width: min(520px, calc(100vw - 24px));
	padding: 14px 14px 14px 20px;
	border-radius: 12px;
	background: var(--ink);
	color: var(--white);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	font-size: 14px;
	transform: translate(-50%, 140%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.show {
	transform: translate(-50%, 0);
	opacity: 1;
	pointer-events: auto;
}

.toast div {
	flex: 1;
	min-width: 0;
}

.toast b,
.toast span {
	display: block;
}

.toast span {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.toast .btn {
	width: auto;
	flex: none;
	padding: 10px 18px;
	background: var(--white);
	color: var(--ink);
}

.causeBar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--brand-tint);
}

.causeBar div {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 40px;
	font-size: 15px;
}

.causeBar div + div {
	border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.causeBar b {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--brand-accent);
	color: var(--white);
	font-size: 14px;
}

/* product shelf */

.shelf {
	padding: 48px 40px 64px;
}

.shelfHead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.shelfHead h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 900;
}

.shelfHead a {
	font-size: 14px;
	color: var(--brand-accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prodGrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	padding: 0;
}

.prod {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.prodImg {
	position: relative;
	aspect-ratio: 1;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: 10px;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%),
		var(--brand-tint);
}

.prod:nth-child(2n) .prodImg {
	background:
		radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.5), transparent 55%),
		color-mix(in srgb, var(--brand-tint) 70%, var(--brand-accent-soft));
}

.prodImg::before {
	content: attr(data-mark);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: clamp(64px, 9vw, 120px);
	font-weight: 900;
	color: var(--brand-accent);
	opacity: 0.12;
}

.prodCat {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--white);
	font-size: 12px;
	font-weight: 700;
}

.prodFav {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
}

.prodFav svg {
	width: 18px;
	height: 18px;
}

.prodBy {
	margin: 0;
	font-size: 12.5px;
	color: var(--dark-grey);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.prod h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	min-height: 2.7em;
}

.prodPrice {
	margin: 2px 0 12px;
	font-size: 18px;
	font-weight: 900;
}

.prod .btn {
	margin-top: auto;
}

/* inner pages */

.pageBox {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 20px;
	background: var(--paper);
}

.pageBox .checkoutBox {
	width: 100%;
	max-width: 480px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 32px;
}

.basket {
	margin: 0 0 20px;
	font-size: 14.5px;
}

.basket .line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.basket .line small {
	display: block;
	font-size: 12px;
	color: var(--dark-grey);
}

.basket .total {
	font-weight: 900;
	font-size: 16px;
	border-bottom: 0;
}

.auctionCard {
	text-align: left !important;
}

.auctionImg {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: -32px -32px 22px;
	border-radius: 12px 12px 0 0;
	background: var(--hero) center / cover;
}

.auctionImg span {
	position: absolute;
	left: 16px;
	top: 16px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--strap);
	color: var(--white);
	font-size: 12px;
	font-weight: 700;
}

/* sign-in page: photo panel instead of flat black */

.siteBody > .split {
	min-height: 600px;
	background: var(--white);
}

.site .left {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), var(--hero-shade)), var(--hero) center / cover;
	justify-content: flex-end;
	padding: 48px 40px;
}

.site .left h4 {
	font-size: 34px;
	font-weight: 900;
}

.site .left p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.9);
}

.site .right {
	justify-content: center;
	padding: 48px clamp(24px, 5vw, 72px);
}

.site .right > * {
	max-width: 440px;
	width: 100%;
}

.site .right h5 {
	font-size: 28px;
	font-weight: 900;
}

.site .lede {
	font-size: 14.5px;
}

.site .input {
	height: 48px;
	font-size: 15px;
}

.site .btn {
	min-height: 48px;
	font-size: 15px;
}

.site .codeBox {
	width: 52px;
	height: 60px;
	font-size: 24px;
}

/* footer */

.shopFoot {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 32px;
	padding: 48px 40px 24px;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
}

.footLogo {
	height: 56px;
	width: auto;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--white);
}

.footBrand p {
	max-width: 42ch;
	line-height: 1.6;
}

.shopFoot h6 {
	margin: 4px 0 12px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--white);
}

.shopFoot a {
	display: block;
	padding: 5px 0;
	color: rgba(255, 255, 255, 0.78);
}

.shopFoot a:hover {
	color: var(--white);
}

.footLegal {
	grid-column: 1 / -1;
	margin: 12px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.5);
}

/* prototype controls under the site */

.devBar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 16px;
	font-size: 12.5px;
	line-height: 1.6;
}

.devBar .muted {
	flex: 1 1 400px;
}

.devBtn {
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	min-height: 36px;
	background: var(--white);
	border: 1px solid var(--grey-two);
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
}

.devBtn:hover {
	border-color: var(--brand-accent);
}

/* breakpoints: 1024 / 768 / 375 */

@media screen and (max-width: 1024px) {
	.shopHead {
		gap: 20px;
		padding: 0 24px;
	}
	.shopAct small {
		display: none;
	}
	.prodGrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.causeBar div {
		padding: 18px 24px;
	}
	.hero,
	.shelf,
	.shopNav {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media screen and (max-width: 768px) {
	.wrap {
		padding: 12px 0 40px;
	}
	.screen.site {
		border-radius: 0;
	}
	.shopHead {
		grid-template-columns: auto 1fr;
		height: auto;
		padding: 12px 16px;
		row-gap: 12px;
	}
	.shopLogo img {
		height: 48px;
	}
	.shopActions {
		justify-self: end;
	}
	.shopAct > span {
		display: none;
	}
	.shopSearch {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
	}
	.causeBar,
	.shopFoot {
		grid-template-columns: 1fr;
	}
	.causeBar div + div {
		border-left: 0;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}
	.hero {
		min-height: 420px;
		padding: 32px 16px;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, var(--hero-shade) 45%, rgba(0, 0, 0, 0.8) 100%), var(--hero) center / cover;
	}
	.hero p {
		font-size: 15px;
	}
	.shelfHead h2 {
		font-size: 22px;
	}
	.shelf {
		padding: 32px 16px 48px;
	}
	.prodGrid {
		gap: 16px;
	}
	.siteBody > .split {
		flex-direction: column;
	}
	.site .left,
	.site .right {
		width: 100%;
	}
	.site .left {
		min-height: 180px;
		padding: 24px 16px;
	}
	.site .left p {
		display: none;
	}
	.site .left h4 {
		font-size: 26px;
		margin: 0;
	}
	.site .right {
		padding: 28px 16px 40px;
	}
	.devBar,
	.stateLine {
		margin-left: 12px;
		margin-right: 12px;
	}
}

@media screen and (max-width: 420px) {
	.shopStrap {
		font-size: 12px;
	}
	.site .codeBox {
		width: 42px;
		height: 52px;
		font-size: 20px;
	}
	.pageBox .checkoutBox {
		padding: 24px 18px;
	}
	.auctionImg {
		margin: -24px -18px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* ---------- wallet & cashback ------------------------------------------ */

.walletChip {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 44px;
	padding: 5px 14px;
	border: 1px solid var(--brand-accent);
	border-radius: 10px;
	background: var(--brand-tint);
	font: inherit;
	font-size: 15px;
	font-weight: 900;
	color: var(--brand-accent);
	cursor: pointer;
	line-height: 1.2;
	white-space: nowrap;
}

.shopText {
	white-space: nowrap;
}

.walletChip small {
	font-size: 11px;
	font-weight: 700;
	color: var(--dark-grey);
}

.walletChip.neg {
	border-color: #b45309;
	color: #b45309;
}

.prodEarn {
	margin: -8px 0 12px;
	font-size: 12.5px;
	color: var(--brand-accent);
}

/* checkout */

.cashLine {
	color: var(--brand-accent);
	font-weight: 700;
}

.useCash {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid var(--brand-accent);
	border-radius: 10px;
	background: var(--brand-tint);
	cursor: pointer;
}

.useCash input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--brand-accent);
}

.useCash small {
	display: block;
	font-size: 12.5px;
	color: var(--dark-grey);
}

.causePick {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

.causePick legend {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dark-grey);
}

.causePick label {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	margin-bottom: 6px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}

.causePick input {
	accent-color: var(--brand-accent);
}

.causePick label:has(input:checked) {
	border-color: var(--brand-accent);
	background: var(--brand-tint);
}

.earnNote {
	margin: 0 0 12px;
	font-size: 13.5px;
}

.behind {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px dashed var(--line);
	border-radius: 8px;
	font-size: 13px;
}

.behind summary {
	cursor: pointer;
	font-weight: 700;
}

.behind table,
.allocTable {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0;
	font-size: 13px;
}

.behind td,
.allocTable td {
	padding: 6px 0;
	border-bottom: 1px solid var(--line);
}

.behind td:last-child,
.allocTable td:nth-child(2) {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.behind .sum td,
.allocTable .sum td {
	font-weight: 900;
	border-bottom: 0;
}

.behind .fund {
	margin: 8px 0 0;
	padding: 10px;
	border-radius: 6px;
	background: var(--brand-tint);
}

/* wallet page */

.walletPage {
	padding: 40px;
	background: var(--paper);
}

.walletPage h1 {
	margin: 0 0 4px;
	font-size: 32px;
	font-weight: 900;
}

.walletPage h2 {
	margin: 32px 0 16px;
	font-size: 22px;
	font-weight: 900;
}

.tiles {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 16px;
	margin-top: 20px;
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
}

.tile small {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dark-grey);
}

.tile b {
	font-size: 28px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.tile span {
	font-size: 13px;
	line-height: 1.5;
	color: var(--dark-grey);
}

.tile.main {
	background: var(--brand-accent);
	border-color: var(--brand-accent);
}

.tile.main small,
.tile.main b,
.tile.main span {
	color: var(--white);
}

.tile.neg {
	background: #fff4e5;
	border-color: #f0b872;
}

.tile.neg b {
	color: #b45309;
}

.tile.cause b {
	color: var(--brand-accent);
}

.walletRules {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--dark-grey);
}

.orderCard {
	margin-bottom: 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
}

.orderCard header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.orderCard header .muted {
	margin-left: auto;
	font-size: 13px;
}

.storeTag {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var(--white);
	background: #405738;
}

.storeTag.fig {
	background: #122b4f;
}

.orderCard .items {
	margin: 0 0 12px;
	font-size: 13.5px;
	color: var(--dark-grey);
}

.allocRow {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 14px;
	align-items: center;
	padding: 8px 0;
	border-top: 1px solid var(--line);
	font-size: 14px;
}

.allocRow b {
	font-variant-numeric: tabular-nums;
}

.allocRow.spent {
	color: var(--dark-grey);
}

.pill {
	display: inline-block;
	min-width: 84px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.pill.pending {
	background: #eceae6;
	color: #555;
}

.pill.confirmed {
	background: #fdf0d5;
	color: #8a5a00;
}

.pill.settled {
	background: #dcf2d7;
	color: #1e6b12;
}

.pill.reversed {
	background: #fde2e1;
	color: #b3261e;
}

.orderCard details {
	margin-top: 8px;
	font-size: 13px;
}

.orderCard summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--brand-accent);
}

.events {
	margin: 8px 0 0;
	padding-left: 0;
	list-style: none;
}

.events li {
	display: flex;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line);
}

.events li span {
	flex: none;
	width: 52px;
	font-weight: 700;
}

.protoCtl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 10px;
	border: 1px dashed #c9c4bd;
	border-radius: 8px;
	background: repeating-linear-gradient(-45deg, #faf8f4 0 8px, #f3f0ea 8px 16px);
}

.protoCtl > span {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dark-grey);
}

.protoCtl button {
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--grey-two);
	border-radius: 999px;
	background: var(--white);
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.protoCtl button:hover:not(:disabled) {
	border-color: var(--brand-accent);
}

.protoCtl button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.emptyWallet {
	padding: 32px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	text-align: center;
	background: var(--white);
}

.emptyWallet .btn {
	width: auto;
	padding: 12px 24px;
}

/* assumptions panel under the site */

.assumptions {
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 10px;
	background: var(--white);
	font-size: 13.5px;
	line-height: 1.55;
}

.assumptions summary {
	cursor: pointer;
	font-weight: 700;
}

.assumptions table {
	width: 100%;
	border-collapse: collapse;
}

.assumptions th,
.assumptions td {
	padding: 8px 10px 8px 0;
	border-bottom: 1px solid #ece8e1;
	text-align: left;
	vertical-align: top;
}

.assumptions td:last-child {
	white-space: normal;
	color: var(--dark-grey);
	font-size: 12px;
}

@media screen and (max-width: 1024px) {
	.tiles {
		grid-template-columns: repeat(2, 1fr);
	}
	.shopHead .shopActions {
		gap: 2px;
	}
}

@media screen and (max-width: 768px) {
	.walletPage {
		padding: 24px 16px;
	}
	.walletChip {
		padding: 4px 10px;
		font-size: 14px;
	}
	.allocRow {
		grid-template-columns: 1fr auto;
	}
	.allocRow .pill {
		grid-column: 2;
	}
	.orderCard header .muted {
		margin-left: 0;
		width: 100%;
	}
	.assumptions {
		margin: 16px 12px 0;
	}
	.assumptions table,
	.assumptions tbody,
	.assumptions tr,
	.assumptions td {
		display: block;
	}
	.assumptions th {
		display: none;
	}
	.assumptions td {
		border: 0;
		padding: 2px 0;
	}
	.assumptions tr {
		padding: 8px 0;
		border-bottom: 1px solid #ece8e1;
	}
}

@media screen and (max-width: 420px) {
	.tiles {
		grid-template-columns: 1fr;
	}
}

/* ---------- all screens: journey --------------------------------------- */

.journeyIntro {
	max-width: 980px;
	margin-bottom: 28px;
}

.journeyIntro h2 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 900;
}

.journeyIntro p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.6;
	color: #4a4a4a;
}

.journeyStrip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.journeyStrip li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 6px;
	border-radius: 999px;
	background: var(--white);
	font-size: 13px;
	font-weight: 700;
}

.journeyStrip li span,
.stepNo {
	display: grid;
	place-items: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--black-new);
	color: var(--white);
	font-size: 13px;
	font-weight: 900;
}

.journeyGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 28px;
}

.journeyStep header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.journeyStep header div {
	flex: 1;
	min-width: 0;
}

.journeyStep .stepNo {
	width: 34px;
	height: 34px;
	font-size: 16px;
}

.journeyStep h3 {
	margin: 4px 0 4px;
	font-size: 17px;
	font-weight: 900;
}

.journeyStep p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4a4a4a;
}

.journeyStep .storeTag {
	flex: none;
	margin-top: 6px;
}

.shotFrame {
	height: calc(var(--crop) * var(--k, 0.5) * 1px);
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.1);
	background: var(--white);
}

.shot {
	width: 1280px;
	zoom: var(--k, 0.5);
	pointer-events: none;
}

.shot .screen.site {
	border-radius: 0;
	box-shadow: none;
}

@media screen and (max-width: 900px) {
	.journeyGrid {
		grid-template-columns: 1fr;
	}
	.journeyStep header {
		flex-wrap: wrap;
	}
}

.cmpTitle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 900;
}

.cmpTitle span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--black-new);
	color: var(--white);
	font-size: 14px;
}

.cmpSteps.plain {
	color: #6b6560;
}

@media screen and (max-width: 768px) {
	#board,
	#compare {
		padding: 0 12px;
	}
	.journeyIntro h2 {
		font-size: 24px;
	}
	.journeyStep header div {
		flex: 1 1 220px;
	}
	.journeyStep .storeTag {
		margin-left: 46px;
	}
}

/* Grid items default to min-width:auto, which let the 1280px shot hold the
   card at its initial scaled width instead of shrinking to the column. */
.journeyStep {
	min-width: 0;
}

.donSplit {
	margin: 4px 0 8px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.donSplit li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 3px 0;
}

.donSplit .pill {
	min-width: 76px;
}

/* ---------- design review 13 Sep: wallet polish ------------------------ */

/* Small grey text on white was 4.06-4.42:1; darken to clear WCAG AA. */
.walletPage,
.pageBox .checkoutBox {
	--dark-grey: #625d57;
}

/* Tiles were stretched to the tallest one, leaving empty boxes. */
.tiles {
	align-items: start;
}

/* Confirmed = released, a good state, not a warning. */
.pill.confirmed {
	background: #d9f0ea;
	color: #0d5e48;
}

/* Order total was 2.5:1 grey. */
.orderCard header .muted {
	color: var(--ink);
	font-weight: 700;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.donSplit .pill {
	min-width: 72px;
	padding: 2px 8px;
}

@media screen and (max-width: 768px) {
	/* Keep amount and status on one line instead of a zigzag. */
	.allocRow {
		grid-template-columns: 1fr auto auto;
		gap: 8px;
	}
	.allocRow .pill {
		grid-column: auto;
		min-width: 0;
	}
	.orderCard header .muted {
		width: auto;
		margin-left: auto;
	}
}

/* Rows without a status pill keep an empty cell the width of a pill, so every
   amount in the card lines up in one column. */
.allocRow > span:empty {
	min-width: 84px;
}

@media screen and (max-width: 768px) {
	.allocRow > span:empty {
		min-width: 0;
	}
}

/* ---------- wallet v2: summary panel + order list (14 Sep) ------------- */

.walletHead h1 {
	margin: 0;
}

.walletHead .lede {
	margin: 4px 0 0;
}

.walletSummary {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	margin: 24px 0 36px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.walletSummary > div {
	padding: 24px 28px;
}

.walletSummary > div + div {
	border-left: 1px solid var(--line);
}

.walletSummary small {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dark-grey);
}

.wsMain b {
	display: block;
	font-size: 46px;
	line-height: 1.05;
	font-weight: 900;
	color: var(--brand-accent);
	font-variant-numeric: tabular-nums;
}

.wsMain span {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	color: var(--dark-grey);
}

.wsMain.neg b {
	color: #b45309;
}

.wsLine {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 15px;
}

.wsLine b {
	font-size: 17px;
	font-variant-numeric: tabular-nums;
}

.wsCol p {
	margin: 2px 0 12px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--dark-grey);
}

.wsBig {
	font-size: 28px;
	font-weight: 900;
	color: var(--brand-accent);
	font-variant-numeric: tabular-nums;
}

.donBar {
	display: flex;
	height: 8px;
	margin: 12px 0 8px;
	border-radius: 999px;
	background: #eceae6;
	overflow: hidden;
}

.donBar i,
.donLegend .dot {
	background: #b9b4ad;
}

.donBar i.c,
.donLegend .dot.c {
	background: #2a9d7f;
}

.donBar i.s,
.donLegend .dot.s {
	background: #1e6b12;
}

.donLegend {
	font-size: 12.5px;
}

.donLegend .dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 5px 0 8px;
	border-radius: 50%;
}

.donLegend .dot:first-child {
	margin-left: 0;
}

.walletSummary .causeTop {
	margin: 10px 0 0;
	color: var(--ink);
}

.walletSummary .causeTop b {
	float: right;
	font-variant-numeric: tabular-nums;
}

/* orders toolbar */

.ordersBar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 14px;
}

.ordersBar h2 {
	margin: 0 8px 0 0 !important;
	font-size: 22px;
}

.ordersBar h2 span {
	margin-left: 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--dark-grey);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
}

.chip span {
	margin-left: 2px;
	font-weight: 400;
	color: var(--dark-grey);
}

.chip.on {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}

.chip.on span {
	color: rgba(255, 255, 255, 0.7);
}

.storeSelect {
	margin-left: auto;
}

.storeSelect select {
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	font: inherit;
	font-size: 13px;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* order list */

.orderList {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
}

.orHead,
.orderRow > summary {
	display: grid;
	grid-template-columns: minmax(190px, 1.1fr) minmax(0, 2fr) 96px 200px 20px;
	gap: 16px;
	align-items: center;
	padding: 14px 20px;
}

.orHead {
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dark-grey);
}

.orHead span:nth-child(3),
.orHead span:nth-child(4) {
	text-align: right;
}

.orderRow + .orderRow {
	border-top: 1px solid var(--line);
}

.orderRow > summary {
	cursor: pointer;
	list-style: none;
}

.orderRow > summary::-webkit-details-marker {
	display: none;
}

.orderRow > summary:hover,
.orderRow[open] > summary {
	background: var(--paper);
}

.orMeta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 14px;
}

.orMeta small {
	width: 100%;
	font-size: 12.5px;
	color: var(--dark-grey);
}

.orItems {
	min-width: 0;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.orReason {
	display: block;
	font-size: 12.5px;
	color: #b45309;
}

.orTotal {
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.orCash {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	font-variant-numeric: tabular-nums;
}

.chev {
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--dark-grey);
	border-bottom: 2px solid var(--dark-grey);
	transform: rotate(45deg);
	transition: transform 0.15s ease-out;
	justify-self: center;
}

.orderRow[open] .chev {
	transform: rotate(225deg);
}

.orBody {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 36px;
	padding: 8px 20px 20px;
	background: var(--paper);
}

.orBody h4 {
	margin: 8px 0 6px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dark-grey);
}

.orBody .protoCtl {
	grid-column: 1 / -1;
	margin-top: 8px;
}

.allFive {
	margin-top: 8px;
	font-size: 13px;
}

.allFive summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--brand-accent);
}

.orTimeline .events li {
	position: relative;
	display: block;
	padding: 4px 0 12px 20px;
	border: 0;
	font-size: 13px;
	line-height: 1.5;
}

.orTimeline .events li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--brand-accent);
}

.orTimeline .events li:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 20px;
	bottom: -2px;
	width: 1px;
	background: var(--line);
}

.showMore {
	display: block;
	width: auto;
	margin: 16px auto 0;
	padding: 10px 22px;
}

@media screen and (max-width: 900px) {
	.walletSummary {
		grid-template-columns: 1fr;
	}
	.walletSummary > div + div {
		border-left: 0;
		border-top: 1px solid var(--line);
	}
	.storeSelect {
		margin-left: 0;
	}
	.orHead {
		display: none;
	}
	.orderRow > summary {
		grid-template-columns: 1fr auto;
		grid-template-areas: 'meta total' 'items items' 'cash chev';
		gap: 6px 12px;
		padding: 14px 16px;
	}
	.orMeta { grid-area: meta; }
	.orTotal { grid-area: total; }
	.orItems { grid-area: items; white-space: normal; }
	.orCash { grid-area: cash; justify-content: flex-start; }
	.chev { grid-area: chev; }
	.orBody {
		grid-template-columns: 1fr;
		padding: 8px 16px 16px;
	}
	.wsMain b {
		font-size: 38px;
	}
}

.donLegend .lg {
	white-space: nowrap;
	margin-right: 10px;
}

.donLegend .dot,
.donLegend .dot:first-child {
	margin: 0 5px 0 0;
}

/* Business Rules v2.6 state names (§11). */
.pill.available {
	background: #d9f0ea;
	color: #0d5e48;
}

.pill.payable {
	background: #fdf0d5;
	color: #8a5a00;
}

.pill.paid {
	background: #dcf2d7;
	color: #1e6b12;
}

.nomCause {
	margin: 6px 0 16px;
	font-size: 16px;
	line-height: 1.35;
}

/* ---------- client demo: guided tour, review panel, proposed tags ---------- */

.tour {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	padding: 16px 20px;
	border: 1px solid var(--line, #e3dfd8);
	border-left: 4px solid #2a9d7f;
	border-radius: 10px;
	background: #fff;
	scroll-margin-top: 90px;
}

.tourText {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	line-height: 1.5;
}

.tourText small {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0d5e48;
}

.tourText b {
	font-size: 16px;
}

.reviewPanel {
	margin-top: 16px;
	border: 1px dashed #c9c4bd;
	border-radius: 10px;
	background: #fff;
}

.reviewPanel summary {
	padding: 14px 18px;
	font-weight: 700;
	cursor: pointer;
}

.reviewPanel summary span {
	margin-left: 8px;
	font-weight: 400;
	font-size: 12.5px;
	color: #625d57;
}

.rvBody {
	padding: 0 18px 18px;
	font-size: 13.5px;
}

.rvTable {
	width: 100%;
	margin: 10px 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.rvTable th,
.rvTable td {
	padding: 6px 8px;
	border-bottom: 1px solid #eceae6;
	text-align: left;
}

.rvTable th:not(:first-child),
.rvTable td:not(:first-child) {
	text-align: right;
}

.rvTable .sum td {
	font-weight: 700;
}

.rvNotes {
	margin: 8px 0 0;
	padding-left: 18px;
	line-height: 1.6;
	color: #625d57;
}

.proposedTag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border: 1px solid #e0b25a;
	border-radius: 999px;
	background: #fff7e6;
	color: #8a5a00;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.allocNote {
	margin: -4px 0 8px;
	text-align: right;
}

@media (max-width: 720px) {
	.tour,
	#review {
		margin-left: 12px;
		margin-right: 12px;
	}
	.rvBody {
		overflow-x: auto;
	}
}

.wsMain span.proposedTag {
	display: inline-block;
	margin: 10px 0 0;
	font-size: 11px;
	color: #8a5a00;
}

.tour .btn {
	width: auto;
	flex: 0 0 auto;
	padding-left: 22px;
	padding-right: 22px;
}

/* Design review 19 Sep, FINDING-001: secondary text the client must read (demo controls, Good Cause help,
   rules panel) was #a8a2a2 / #787878, 2.1-4.4:1. #6b6560 is 5.7:1 on white and 4.8:1 on the page ground. */
.muted,
.assumptions td:last-child {
	color: #6b6560;
}

/* FINDING-004: the rules-panel toggle was a 21px-tall target. */
.assumptions summary {
	padding: 12px 0;
}
