/* =========================================================================
   DuBois checkout and order received (V6 Checkout + ThankYou boards), and
   the parts of the bag page that follow Sweet Du (header band, phone bar).

   One page: numbered mist cards (Contact, Delivery or pickup, Payment) and
   a sticky white "Your order" card; under 960px "Your order" becomes the
   collapsible summary at the top. WooCommerce's markup stays (the Stripe
   gateway mounts into #payment .payment_box); only the look changes.
   Tokens only (tokens.css). Loads after base.css and shop.css, so the bag
   page rules here win over shop.css at equal specificity.

   The owner's rule for every title: it sits above its line, both centred.
   Never a title on one side and its words on the other.
   ====================================================================== */

/* ---------- page header band (bag, empty bag, checkout) ----------
   Sweet Du's centred title on a clean mist band: no art, no photo. */
.db-cohero {
	padding-block: clamp(28px, 3.6vw, 52px);
	background: var(--db-mist);
	text-align: center;
}
.db-cohero__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.db-cohero__title {
	margin: 0;
	font-size: var(--db-fs-hero, clamp(30px, 1.7vw + 19px, 44px)); /* shared with the other heroes (pages.css) */
	font-weight: 600;
	letter-spacing: var(--db-ls-h1);
	line-height: 1.04;
	text-wrap: balance;
}
.db-cohero__lead {
	max-width: 62ch;
	margin: 0;
	font-size: var(--db-fs-hero-lead, var(--db-fs-sm));
	line-height: 1.55;
	color: var(--db-muted);
	text-wrap: balance;
}
.db-cohero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin-top: 10px; }

/* Checkout: a round back-to-bag button on the left of the centred title. */
.db-cohero__row {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding-inline: 60px;
}
.db-cohero__back {
	position: absolute;
	top: 50%;
	left: 0;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: var(--db-r-pill);
	background: var(--db-white);
	color: var(--db-black);
	box-shadow: var(--db-sh-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--db-t-fast) var(--db-ease-out), background-color var(--db-t-fast);
}
.db-cohero__back:hover { transform: translateX(-2px); }
.db-cohero__back:active { transform: scale(0.94); }

/* Entrance on pages that draw the band once (the bag's band is redrawn by
   WooCommerce after every quantity change, so it stays still). */
.db-cohero--checkout .db-cohero__inner > *,
.db-cohero--empty .db-cohero__inner > * { animation: db-rise 0.6s var(--db-ease) both; }
.db-cohero--checkout .db-cohero__inner > :nth-child(2),
.db-cohero--empty .db-cohero__inner > :nth-child(2) { animation-delay: 60ms; }
.db-cohero--checkout .db-cohero__inner > :nth-child(3),
.db-cohero--empty .db-cohero__inner > :nth-child(3) { animation-delay: 120ms; }
.db-cohero--empty .db-cohero__inner > :nth-child(4) { animation-delay: 180ms; }

/* Empty bag: Sweet Du's centred block (icon, title, line, Shop the gear). */
.db-cohero--empty { padding-block: clamp(48px, 7vw, 104px); }
.db-cohero--empty .db-cohero__title { font-size: var(--db-fs-hero, clamp(30px, 1.7vw + 19px, 44px)); }
.db-cohero__icon {
	width: 64px;
	height: 64px;
	margin-bottom: 6px;
	border-radius: 20px;
	background: var(--db-white);
	color: var(--db-black);
	box-shadow: var(--db-sh-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 640px) {
	.db-cohero { padding-block: 22px 26px; }
	.db-cohero__inner { gap: 8px; }
	.db-cohero__title { font-size: var(--db-fs-hero, 30px); }
	.db-cohero__lead { font-size: var(--db-fs-hero-lead, var(--db-fs-xs)); }
	.db-cohero__row { min-height: 44px; padding-inline: 52px; }
	.db-cohero__back { width: 44px; height: 44px; margin-top: -22px; }
	.db-cohero--empty { padding-block: 44px 48px; }
	.db-cohero--empty .db-cohero__title { font-size: var(--db-fs-hero, 30px); }
	.db-cohero__actions .db-btn { min-width: 220px; }
}

/* ---------- bag page (layout in shop.css; what Sweet Du changed lives here) ---------- */
.db-cart { padding-top: 0; }
.db-cart--empty { padding-bottom: 0; }
.db-cart__more--empty { padding-top: clamp(48px, 6vw, 88px); }
/* "You might also like" / "Popular right now": title, then the link, centred. */
.db-cart__more .db-sechead { flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
@media (max-width: 960px) {
	/* One column: the summary's Check out sits under the lines, so centre "Keep shopping" too. */
	.db-cart__actions { justify-content: center; }
}

/* ---------- phone and tablet bar: the total and the next step ----------
   Sweet Du's app-style bar in DuBois glass. checkout.js adds .is-on while
   the page's own button (data-db-paybar="selector") is off screen. Above
   the dock on the bag page, at the very bottom on checkout. */
.db-paybar { display: none; }
@media (max-width: 960px) {
	.db-paybar {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + var(--db-safe-b));
		z-index: 55;
		max-width: 560px;
		margin-inline: auto;
		display: flex;
		align-items: center;
		gap: 12px;
		min-height: 64px;
		padding: 8px 8px 8px 22px;
		border-radius: var(--db-r-pill);
		background: var(--db-glass-header);
		-webkit-backdrop-filter: var(--db-glass-blur);
		backdrop-filter: var(--db-glass-blur);
		border: 1px solid var(--db-glass-edge);
		box-shadow: var(--db-sh-dock);
		opacity: 0;
		visibility: hidden;
		transform: translateY(calc(100% + 28px));
		transition: transform 0.45s var(--db-ease), opacity 0.3s ease, visibility 0s linear 0.45s;
	}
	.db-paybar.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.db-paybar.is-instant { transition: none; }
	/* The keyboard is up or a panel is open: step aside. */
	html.db-typing .db-paybar.is-on,
	html.db-sheet-open .db-paybar.is-on { opacity: 0; visibility: hidden; transform: translateY(calc(100% + 28px)); pointer-events: none; }

	/* Room at the foot of the page so the bar never covers the last lines. */
	body:has(.db-paybar) { padding-bottom: calc(var(--db-dock-space) + 84px); }
	body.db-mode-checkout:has(.db-paybar) { padding-bottom: calc(88px + var(--db-safe-b)); }
	/* Toasts rise above the bar while it shows. */
	html:has(.db-paybar.is-on) .db-toasts { bottom: calc(96px + var(--db-dock-space)); }
}
@media (max-width: 760px) {
	.db-paybar--cart { bottom: calc(var(--db-dock-space) - 6px); }
}
.db-paybar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.db-paybar__label { font-size: var(--db-fs-3xs); color: var(--db-muted); white-space: nowrap; }
.db-paybar__total { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-paybar__total.is-new { animation: db-paybar-tick 0.4s var(--db-ease) both; }
@keyframes db-paybar-tick { from { opacity: 0.2; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.db-paybar__btn { flex: none; height: 48px; padding: 0 26px; font-size: var(--db-fs-sm); }
.db-paybar__btn:active { transform: scale(0.97); }

/* ---------- page ---------- */
.db-ck { padding-block: 48px 104px; }
.db-ck--hero { padding-top: 0; }
.db-ck--hero > .db-wrap { padding-top: 32px; }
.db-ck__title {
	margin: 0 0 32px;
	font-size: clamp(34px, 2.4vw + 18px, 52px);
	line-height: 1.02;
	letter-spacing: var(--db-ls-h1);
}
.db-ck .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }

.db-ck__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
	gap: 24px 40px;
	align-items: start;
}
.db-ck__side { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--db-head-space) + var(--db-adminbar, 0px) + 24px); }
.db-ck__main { grid-column: 1; grid-row: 1; min-width: 0; }
.db-ck__form, .db-ck__steps { display: flex; flex-direction: column; gap: 16px; }
.db-ck__form { margin: 0; }

/* ---------- cards ---------- */
.db-ck-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
}
.db-ck-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.db-ck-card__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: 24px;
	font-weight: var(--db-w-head);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.db-ck-card__n {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--db-black);
	color: var(--db-white);
	font-size: 15px;
	font-stretch: 100%;
	letter-spacing: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.db-ck-card__aside { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding-left: 48px; font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-ck-card__aside a { color: var(--db-black); }

/* ---------- fields (WooCommerce .form-row on a grid) ---------- */
.db-ck .woocommerce-billing-fields h3,
.db-ck .woocommerce-additional-fields h3 { display: none; }
.db-ck-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.db-ck .db-ck-fields .form-row {
	grid-column: 1 / -1;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
.db-ck .db-ck-fields .form-row-first { grid-column: 1; }
.db-ck .db-ck-fields .form-row-last { grid-column: 2; }
.db-ck .db-ck-fields::before, .db-ck .db-ck-fields::after { display: none; }
.db-ck .db-ck-fields .clear { display: none; }

/* Delivery address: street, unit, then city / province / postal code. */
.db-ck-fields--addr { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.db-ck .db-ck-fields--addr .form-row { grid-column: 1 / -1; }
.db-ck .db-ck-fields--addr #billing_city_field,
.db-ck .db-ck-fields--addr #billing_state_field,
.db-ck .db-ck-fields--addr #billing_postcode_field { grid-column: span 2; }
.db-ck .db-ck-fields--addr #billing_postcode_field input { text-transform: uppercase; }
.db-ck .db-ck-hide { display: none !important; }

.db-ck form .form-row label { margin-bottom: 7px; }
.db-ck form .form-row .required { display: none; } /* the design marks only optional fields; inputs keep aria-required */
.db-ck form .form-row .optional { font-weight: 400; }
.db-ck .woocommerce-input-wrapper { display: block; }
.db-ck form .form-row .input-text,
.db-ck form .form-row select { width: 100%; }
.db-ck form .form-row.woocommerce-invalid .select2-selection { box-shadow: inset 0 0 0 1.5px var(--db-red); }
.db-ck .db-field-error {
	display: block;
	margin-top: 6px;
	font-size: var(--db-fs-2xs);
	font-weight: 500;
	color: var(--db-red);
}

.db-ck-optin { min-height: 0; align-self: flex-start; }
.db-ck-account .form-row { margin: 0 0 10px; }
.db-ck-account .create-account.db-ck-fields { margin-top: 4px; }
.db-ck-account label.checkbox { display: inline-flex; gap: 10px; margin: 0; font-weight: 500; }

/* ---------- 2. delivery or pickup ---------- */
.db-ck-fulfil .db-option { border-radius: var(--db-r-md); }
.db-ck-fulfil .db-option__title { font-size: 16px; font-weight: 650; }
.db-ck-fulfil .db-option__note { font-size: var(--db-fs-xs); }

.db-ck-panel { display: flex; flex-direction: column; gap: 14px; }
.db-ck-panel.is-in { animation: db-rise 0.45s var(--db-ease) both; }

.db-ck-rates { display: flex; flex-direction: column; gap: 10px; transition: opacity var(--db-t-fast); }
.db-ck-rates:empty, [data-db-ck-ship][data-mode="pickup"] .db-ck-rates { display: none; }
.db-ck-rates.is-loading { opacity: 0.55; pointer-events: none; }
.db-ck-rates__group { display: flex; flex-direction: column; gap: 10px; }
.db-ck-rates__label { margin: 4px 0 0; font-size: var(--db-fs-xs); font-weight: 600; }
.db-ck-rates__list { display: flex; flex-direction: column; gap: 10px; }
.db-ck-rate { padding: 16px 18px; }
.db-ck-rate input[type="radio"] { margin: 0; }
.db-ck-rates__empty {
	margin: 0;
	padding: 14px 18px;
	border-radius: 18px;
	background: var(--db-white);
	font-size: var(--db-fs-sm);
	line-height: 1.5;
	color: var(--db-muted);
}
.db-ck-rates__empty.is-alert { color: var(--db-red); box-shadow: inset 0 0 0 1.5px var(--db-red); }

.db-ck-pickup {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--db-green-tint);
	color: var(--db-green-deep);
}
.db-ck-pickup__title { margin: 0; font-size: 16px; font-weight: 650; }
.db-ck-pickup__rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.db-ck-pickup__rows li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--db-fs-sm); line-height: 1.55; }
.db-ck-pickup__rows .db-icon { margin-top: 2px; }
.db-ck-pickup__map { margin-left: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.db-ck .db-ck-who { margin: 0; }

.db-ck-notes { margin-top: 2px; }
.db-ck-notes__more summary {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-size: var(--db-fs-xs);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	cursor: pointer;
	list-style: none;
}
.db-ck-notes__more summary::-webkit-details-marker { display: none; }
.db-ck-notes__more[open] summary { margin-bottom: 10px; }

/* ---------- 3. payment (WooCommerce's #payment, restyled) ---------- */
body .db-ck #payment,
body .db-ck #payment.woocommerce-checkout-payment {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
}
body .db-ck #payment ul.payment_methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	text-align: left;
}
body .db-ck #payment ul.payment_methods::before, body .db-ck #payment ul.payment_methods::after { display: none; }
body .db-ck #payment ul.payment_methods li { position: relative; margin: 0; padding: 0; line-height: 1.4; list-style: none; font-weight: 400; }
body .db-ck #payment ul.payment_methods li input.input-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.db-ck-method {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 0 16px;
	border-radius: 18px;
	background: var(--db-white);
	box-shadow: inset 0 0 0 1px var(--db-line-2);
	font-size: 15px;
	font-weight: 650;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, box-shadow 0.25s;
}
.db-ck-method:hover { box-shadow: inset 0 0 0 1.5px var(--db-black); }
body .db-ck #payment li input.input-radio:checked + .db-ck-method { background: var(--db-black); color: var(--db-white); box-shadow: none; }
body .db-ck #payment li input.input-radio:focus-visible + .db-ck-method { outline: 2px solid var(--db-black); outline-offset: 3px; }
.db-ck-method__icon { display: inline-flex; }
.db-ck-method__title { flex: 1; min-width: 0; }
.db-ck-method__logos { display: inline-flex; align-items: center; gap: 4px; }
.db-ck-method__logos img { display: inline-block; max-height: 22px; width: auto; margin: 0; float: none; }

body .db-ck #payment div.payment_box {
	position: relative;
	margin: 10px 0 0;
	padding: 18px;
	border-radius: 18px;
	background: var(--db-white);
	color: var(--db-black);
	font-size: var(--db-fs-sm);
	line-height: 1.5;
	box-shadow: inset 0 0 0 1px var(--db-line);
}
body .db-ck #payment div.payment_box::before { display: none; content: none; }
body .db-ck #payment div.payment_box p:last-child { margin-bottom: 0; }
body .db-ck #payment div.payment_box fieldset { margin: 0; padding: 0; border: 0; }
body .db-ck #payment div.payment_box .form-row { margin: 0 0 12px; padding: 0; }
body .db-ck #payment div.payment_box .woocommerce-SavedPaymentMethods { margin: 0 0 12px; padding: 0; list-style: none; }
body .db-ck #payment div.payment_box .woocommerce-SavedPaymentMethods-saveNew label { display: inline; margin: 0 0 0 8px; font-weight: 500; }
.db-ck-methods__none .woocommerce-info { margin: 0; background: var(--db-white); }

/* Place order: the green pill with the total, then the terms line. */
body .db-ck #payment .form-row.place-order {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 8px 0 0;
	padding: 0;
}
body .db-ck #payment #place_order.db-ck-place__btn {
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 60px;
	padding: 0 26px;
	border-radius: var(--db-r-pill);
	background-color: var(--db-green);
	color: var(--db-black);
	font-size: 17px;
	font-weight: 650;
	box-shadow: 0 12px 32px var(--db-green-glow);
}
body .db-ck #payment #place_order.db-ck-place__btn:hover { background-color: var(--db-green-hover); color: var(--db-black); }
body .db-ck #payment #place_order.db-ck-place__btn:active { transform: scale(0.98); }
.db-ck-place__total { opacity: 0.72; font-variant-numeric: tabular-nums; }
/* WooCommerce adds .processing to the form while the order is sent. */
.db-ck form.checkout.processing #place_order { color: transparent; pointer-events: none; }
.db-ck form.checkout.processing #place_order::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 20px;
	height: 20px;
	margin: auto;
	border: 2px solid var(--db-black);
	border-right-color: transparent;
	border-radius: 50%;
	animation: db-spin 0.7s linear infinite;
}
body .db-ck #payment #place_order { position: relative; }
.db-ck-place__fine { margin: 0; text-align: center; font-size: var(--db-fs-2xs); line-height: 1.5; color: var(--db-muted); }
.db-ck-place__fine a { color: var(--db-muted); text-decoration: underline; text-underline-offset: 3px; }
.db-ck-place__fine a:hover { color: var(--db-black); }

/* Errors WooCommerce puts at the top of the form. */
.db-ck .woocommerce-NoticeGroup { margin: 0 0 4px; }
.db-ck .woocommerce-NoticeGroup .woocommerce-error { margin: 0; }
.db-ck .woocommerce-error li { line-height: 1.5; }
.db-ck .db-ck-errlink { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Sign in (opened from the Contact card). */
.db-ck-login form.woocommerce-form-login {
	margin: 0 0 24px;
	padding: 24px;
	border: 0;
	border-radius: var(--db-r-lg);
	background: var(--db-mist);
}
.db-ck-login form.woocommerce-form-login > p:first-child { margin-bottom: 16px; color: var(--db-muted); }
.db-ck-login .form-row-first, .db-ck-login .form-row-last { width: 100%; float: none; }
.db-ck-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 4px 16px 4px 0; font-size: var(--db-fs-xs); }
.db-ck-login .lost_password { margin: 12px 0 0; font-size: var(--db-fs-xs); }
.db-ck-login .lost_password a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- "Your order" ---------- */
.db-ck-sum {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border-radius: var(--db-r-xl);
	background: var(--db-white);
	box-shadow: inset 0 0 0 1px var(--db-ring), 0 16px 48px rgba(0, 0, 0, 0.06);
}
.db-ck-sum__toggle { display: none; }
.db-ck-sum__head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.db-ck-sum__title { margin: 0; font-size: 24px; font-weight: var(--db-w-head); letter-spacing: -0.02em; }
.db-ck-sum__edit { font-size: var(--db-fs-xs); }
.db-ck-sum__edit--sm { display: none; }
.db-ck-sum__inner { display: flex; flex-direction: column; gap: 16px; }
.db-ck #order_review { margin: 0; padding: 0; }

.db-ck-review { display: flex; flex-direction: column; gap: 16px; }
.db-ck-items { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.db-ck-item { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.db-ck-item__img { position: relative; flex: none; width: 66px; height: 82px; }
.db-ck-item__img img { display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: cover; background: var(--db-mist); }
.db-ck-item__qty {
	position: absolute;
	top: -6px;
	left: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 8px;
	background: var(--db-black);
	color: var(--db-white);
	font-size: var(--db-fs-3xs);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.db-ck-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.db-ck-item__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.db-ck-item__meta { font-size: var(--db-fs-2xs); color: var(--db-muted); }
.db-ck-item__price { font-size: 15px; font-weight: 600; white-space: nowrap; }

.db-ck-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid var(--db-ring); font-size: 15px; }
.db-ck-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.db-ck-row dt { color: var(--db-muted); font-weight: 400; }
.db-ck-row dd { margin: 0; text-align: right; white-space: nowrap; }
.db-ck-row dd.is-strong { font-weight: 650; }
.db-ck-row--save dd { color: var(--db-green-ink); }
.db-ck-row__rm { margin-left: 6px; font-size: var(--db-fs-2xs); color: var(--db-muted); text-decoration: underline; text-underline-offset: 3px; }
.db-ck-row__rm:hover { color: var(--db-black); }
.db-ck-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 2px solid var(--db-black); }
.db-ck-total__label { font-size: 17px; font-weight: 650; }
.db-ck-total__label small { font-size: var(--db-fs-2xs); font-weight: 400; color: var(--db-muted); }
.db-ck-total__n {
	font-stretch: var(--db-stretch-head);
	font-size: 40px;
	font-weight: var(--db-w-head);
	letter-spacing: -0.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.db-ck-total__incl { margin: -8px 0 0; text-align: right; font-size: var(--db-fs-2xs); color: var(--db-muted); }

/* Promo code (WooCommerce's coupon form, outside the checkout form). */
.db-ck-promo { margin: 0; }
.db-ck-promo .showcoupon {
	font-size: var(--db-fs-xs);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}
.db-ck .db-ck-promo__form.checkout_coupon {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}
.db-ck .db-ck-promo__form .form-row { float: none; width: auto; margin: 0; padding: 0; }
.db-ck .db-ck-promo__form .form-row-first { flex: 1; min-width: 0; }
.db-ck .db-ck-promo__form .form-row-last { flex: none; }
.db-ck .db-ck-promo__form .input-text {
	width: 100%;
	height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--db-r-pill);
	background: var(--db-mist);
	box-shadow: none;
	font-size: 16px;
	text-transform: uppercase;
}
.db-ck .db-ck-promo__form .input-text:focus { outline: none; box-shadow: inset 0 0 0 1px var(--db-green), 0 0 0 3px var(--db-green-glow); }
.db-ck .db-ck-promo__form .input-text.has-error { box-shadow: inset 0 0 0 1.5px var(--db-red); }
.db-ck .db-ck-promo__form .button { min-height: 48px; }
.db-ck .db-ck-promo__form .clear { display: none; }
.db-ck .coupon-error-notice { display: block; margin-top: 6px; font-size: var(--db-fs-2xs); color: var(--db-red); }
.db-ck__side .woocommerce-message, .db-ck__side .woocommerce-error, .db-ck__side .woocommerce-info { margin: 0; font-size: var(--db-fs-xs); }

/* ---------- tablets and phones: one column, summary on top ---------- */
@media (max-width: 960px) {
	.db-ck__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.db-ck__side, .db-ck__main { grid-column: 1; grid-row: auto; }
	.db-ck__side { position: static; }
	.db-ck-sum { gap: 0; padding: 0; border-radius: 22px; background: var(--db-mist); box-shadow: none; }
	.db-ck-sum__head { display: none; }
	.db-ck-sum__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-height: 58px;
		padding: 0 20px;
		border: 0;
		border-radius: 22px;
		background: none;
		color: var(--db-black);
		cursor: pointer;
		text-align: left;
	}
	.db-ck-sum__label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
	.db-ck-sum__chev { transition: transform var(--db-t-ui) var(--db-ease); }
	.db-ck-sum__toggle[aria-expanded="true"] .db-ck-sum__chev { transform: rotate(180deg); }
	.db-ck-sum__total { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
	.db-ck-sum__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--db-ease); }
	.db-ck-sum__toggle[aria-expanded="true"] + .db-ck-sum__head + .db-ck-sum__body { grid-template-rows: 1fr; }
	.db-ck-sum__inner { min-height: 0; overflow: hidden; padding: 0 20px; }
	.db-ck-sum__toggle[aria-expanded="true"] + .db-ck-sum__head + .db-ck-sum__body .db-ck-sum__inner { padding-top: 8px; }
	.db-ck-sum__toggle[aria-expanded="true"] + .db-ck-sum__head + .db-ck-sum__body .db-ck-sum__inner { padding-bottom: 20px; }
	.db-ck-sum__edit--sm { display: inline; align-self: flex-start; }
	.db-ck-item__img { width: 52px; height: 64px; }
	.db-ck-item__img img { border-radius: 14px; }
	.db-ck-item__name, .db-ck-item__price { font-size: var(--db-fs-xs); }
	.db-ck-total__n { font-size: 32px; }
}

@media (max-width: 640px) {
	.db-ck { padding-block: 24px 64px; }
	.db-ck--hero { padding-top: 0; }
	.db-ck--hero > .db-wrap { padding-top: 16px; }
	.db-ck__title { margin-bottom: 20px; }
	.db-ck-card__aside { padding-left: 42px; }
	.db-ck-card { padding: 20px; border-radius: 22px; gap: 16px; }
	.db-ck-card__title { font-size: 21px; gap: 12px; }
	.db-ck-card__n { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
	.db-ck-fields, .db-ck-fields--addr { grid-template-columns: minmax(0, 1fr); }
	.db-ck .db-ck-fields .form-row-first,
	.db-ck .db-ck-fields .form-row-last,
	.db-ck .db-ck-fields--addr #billing_city_field,
	.db-ck .db-ck-fields--addr #billing_state_field,
	.db-ck .db-ck-fields--addr #billing_postcode_field { grid-column: 1 / -1; }
	body .db-ck #payment #place_order.db-ck-place__btn { min-height: 56px; font-size: 16px; }
	.db-ck-pickup { padding: 16px; }
}

/* ---------- something to fix first (cart-errors.php, sign-in required) ---------- */
.db-ck-issue { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 640px; margin-inline: auto; text-align: center; }
.db-ck-issue .db-ck__title { margin: 0; }

/* ---------- pay for an existing order (form-pay.php) ---------- */
.db-ck-payform { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0; }
.db-ck-payform .db-ck-row--total { padding-top: 10px; border-top: 2px solid var(--db-black); font-weight: 650; }
.db-ck-payform .db-ck-row--total dt { color: var(--db-black); }
.db-ck--pay .db-ck__title { text-align: center; }
.db-ck--pay .db-ck-payform { margin-inline: auto; }
.db-ck--pay .woocommerce-terms-and-conditions-wrapper { font-size: var(--db-fs-2xs); color: var(--db-muted); }

/* Notices WooCommerce prints above these templates (outside their frame). */
.db-woo--checkout > .woocommerce > .woocommerce-notices-wrapper:not(:empty),
.db-woo--checkout > .woocommerce > .woocommerce-error,
.db-woo--checkout > .woocommerce > .woocommerce-message,
.db-woo--checkout > .woocommerce > .woocommerce-info {
	width: calc(100% - 2 * var(--db-gutter));
	max-width: var(--db-maxw);
	margin: 24px auto 0;
}

/* =========================================================================
   Order received
   ====================================================================== */
.db-ty { padding-bottom: clamp(72px, 9vw, 120px); }
.db-ty__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	padding-top: 48px;
	padding-bottom: 32px;
}
.db-ty__hero { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 720px; text-align: center; }
.db-ty__tick {
	width: 68px;
	height: 68px;
	border-radius: var(--db-r-lg);
	background: var(--db-green);
	color: var(--db-black);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: db-ty-pop 0.6s var(--db-ease-spring) both;
}
.db-ty__tick .db-icon path { stroke-dasharray: 30; animation: db-ty-draw 0.5s ease 0.35s both; }
.db-ty__title {
	margin: 6px 0 0;
	font-size: var(--db-fs-h1);
	line-height: 1.02;
	letter-spacing: var(--db-ls-h1);
	animation: db-rise 0.7s var(--db-ease) 0.15s both;
}
.db-ty__lead { max-width: 560px; color: var(--db-muted); text-wrap: pretty; animation: db-rise 0.7s var(--db-ease) 0.25s both; }
.db-ty__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 6px; }

.db-ty__track { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--db-r-xl); background: var(--db-mist); }
.db-ty__trackhead { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.db-ty__h { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.db-ty__date { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-ty__steps { position: relative; margin: 0; padding: 0 0 0 40px; list-style: none; }
.db-ty__steps::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 14px;
	bottom: 14px;
	width: 3px;
	border-radius: 3px;
	background: var(--db-line-2);
}
.db-ty__step { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 0 18px; }
.db-ty__step:last-child { padding-bottom: 8px; }
.db-ty__dot {
	position: absolute;
	left: -40px;
	top: 6px;
	width: 30px;
	height: 30px;
	border-radius: var(--db-r-pill);
	background: var(--db-white);
	box-shadow: inset 0 0 0 2px var(--db-ring-3);
	color: var(--db-black);
	display: flex;
	align-items: center;
	justify-content: center;
}
.db-ty__step.is-done .db-ty__dot { background: var(--db-green); box-shadow: none; }
.db-ty__steplabel { font-size: 16px; font-weight: 600; color: var(--db-muted); }
.db-ty__step.is-done .db-ty__steplabel { color: var(--db-black); }
.db-ty__stepnote { font-size: var(--db-fs-xs); color: var(--db-muted); }

.db-ty__body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 16px;
	align-items: start;
	padding-bottom: clamp(56px, 7vw, 96px);
}
.db-ty__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.db-ty__tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--db-r-lg); background: var(--db-mist); }
.db-ty__tilelabel { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-ty__tilevalue { font-size: 15px; line-height: 1.55; overflow-wrap: break-word; }
.db-ty__tilevalue a { text-decoration: underline; text-underline-offset: 3px; }
.db-ty__tile--nudge { grid-column: 1 / -1; align-items: flex-start; background: var(--db-white); box-shadow: inset 0 0 0 1px var(--db-line-2); }
.db-ty__tile--nudge .db-btn { margin-top: 6px; }

.db-ty__order { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--db-r-xl); box-shadow: inset 0 0 0 1px var(--db-ring); }
.db-ty__items { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.db-ty__item { display: flex; align-items: center; gap: 12px; }
.db-ty__img { flex: none; width: 56px; height: 70px; }
.db-ty__img img { display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: cover; background: var(--db-mist); }
.db-ty__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.db-ty__name { font-size: var(--db-fs-xs); font-weight: 600; line-height: 1.3; }
.db-ty__meta { font-size: var(--db-fs-2xs); color: var(--db-muted); }
.db-ty__price { font-size: var(--db-fs-xs); font-weight: 600; white-space: nowrap; }
.db-ty__rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--db-ring); font-size: 15px; }
.db-ty__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.db-ty__row dt { color: var(--db-muted); }
.db-ty__row dd { margin: 0; text-align: right; }
.db-ty__row dd small { color: var(--db-muted); }
.db-ty__row--total { padding-top: 8px; font-weight: 600; }
.db-ty__row--total dt { color: var(--db-black); }

/* Under the order: the package, or (for package orders) the app. */
.db-ty__more { padding-bottom: 8px; }
.db-ty__promo {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border-radius: var(--db-r-xl);
	background: var(--db-black);
}
.db-ty__promo--photo { min-height: 420px; background: var(--db-ink-3); }
.db-ty__promoimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.db-ty__promobar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	width: 100%;
	margin: 16px;
	padding: 24px 24px 24px 28px;
	border-radius: 22px;
	background: var(--db-glass-dark);
	-webkit-backdrop-filter: var(--db-glass-blur-dark);
	backdrop-filter: var(--db-glass-blur-dark);
	border: 1px solid var(--db-glass-edge-dark);
	color: var(--db-white);
}
.db-ty__promotext { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.db-ty__promotitle { margin: 0; font-size: clamp(24px, 1.6vw + 14px, 36px); line-height: 1.08; letter-spacing: var(--db-ls-h2); color: var(--db-white); }
.db-ty__promotext p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--db-on-dark); }
.db-ty__promobar .db-btn { flex: none; margin-left: auto; }
.db-ty__promobar :focus-visible { outline-color: var(--db-white); }

.db-ty__app {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
	padding: 28px;
	border-radius: var(--db-r-xl);
	background: var(--db-black);
	color: var(--db-white);
}
.db-ty__appicon { flex: none; width: 72px; height: 72px; border-radius: 18px; }
.db-ty__apptext { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.db-ty__apptitle { margin: 0; font-size: clamp(22px, 1.2vw + 14px, 30px); line-height: 1.1; letter-spacing: var(--db-ls-h2); color: var(--db-white); }
.db-ty__apptext p { margin: 0; color: var(--db-on-dark); }
.db-ty__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.db-ty__app :focus-visible { outline-color: var(--db-white); }

.db-ty__hooks:empty { display: none; }
.db-ty__hooks > * { margin-top: 24px; }
.db-ty__hooks section, .db-ty__hooks .woocommerce-bacs-bank-details { padding: 24px; border-radius: var(--db-r-xl); background: var(--db-mist); }

@media (max-width: 640px) {
	.db-ty__top { padding-top: 24px; }
	.db-ty__tick { width: 56px; height: 56px; border-radius: 20px; }
	.db-ty__track, .db-ty__order, .db-ty__app { padding: 20px; border-radius: 22px; }
	.db-ty__promo { border-radius: 20px; }
	.db-ty__promo--photo { min-height: 360px; }
	.db-ty__promobar { margin: 8px; padding: 20px; }
	.db-ty__promobar .db-btn { width: 100%; margin-left: 0; }
}

@keyframes db-ty-pop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes db-ty-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }



/* Owner's 2026-11-03 pass ---------------------------------------------- */
/* Selected delivery/pickup card: black card, green tile behind its icon. */
.db-ck .db-option:has(input:checked) .db-option__icon { background: var(--db-green); color: var(--db-black); }
/* One payment method only: no "Payment options" bar, just the card form. */
.db-ck #payment ul.wc_payment_methods > li.wc_payment_method:only-child > input.input-radio,
.db-ck #payment ul.wc_payment_methods > li.wc_payment_method:only-child > label.db-ck-method { display: none; }
/* Promo code: one pill, the Apply button inside it. WooCommerce's toggle
   writes display:block inline, so keep the row layout when it is open. */
.db-ck .db-ck-promo__form.checkout_coupon:not([style*="none"]) { display: flex !important; }
.db-ck .db-ck-promo__form.checkout_coupon { align-items: center; gap: 4px; padding: 5px 5px 5px 4px; border-radius: var(--db-r-pill); background: var(--db-mist); transition: box-shadow var(--db-t-fast); }
.db-ck .db-ck-promo__form.checkout_coupon:focus-within { box-shadow: inset 0 0 0 1px var(--db-green), 0 0 0 3px var(--db-green-glow); }
.db-ck .db-ck-promo__form .input-text,
.db-ck .db-ck-promo__form .input-text:focus { height: 42px; min-height: 0; padding: 0 14px; background: transparent; box-shadow: none; text-transform: none; font-size: 15px; }
.db-ck .db-ck-promo__form .button { min-height: 0; height: 42px; padding: 0 20px; border-radius: var(--db-r-pill); font-size: 14px; }

/* Bag and checkout headers: the gym photo under a dark shade, white type
   (matches the shop and contact banners). Checkout top bar: logo left,
   "Secure checkout" right, nothing in between. */
.db-cohero {
	position: relative;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.74)), url("../img/hero/home.jpg?v=3") center 40% / cover no-repeat, var(--db-black);
	color: var(--db-white);
	padding-block: clamp(40px, 5vw, 72px);
}
@media (max-width: 700px) { .db-cohero { background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.74)), url("../img/hero/home-sm.jpg?v=3"); background-position: center 30%; } }
.db-cohero .db-cohero__title { color: var(--db-white); }
.db-cohero .db-cohero__lead { color: rgba(255, 255, 255, 0.8); }
.db-cohero .db-cohero__back { background: rgba(255, 255, 255, 0.14); color: var(--db-white); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.db-cohero .db-cohero__back:hover { background: rgba(255, 255, 255, 0.24); }
.db-header--checkout .db-header__inner { display: flex; align-items: center; justify-content: space-between; }
/* Promo pill: beat WooCommerce's input focus rule so only the pill glows. */
body .db-ck form.db-ck-promo__form .form-row .input-text,
body .db-ck form.db-ck-promo__form .form-row .input-text:focus { box-shadow: none; background: transparent; }
body .db-ck form.db-ck-promo__form .form-row { flex-shrink: 1; }

/* Owner's pass: labels line up with the text inside the rounded fields. */
.woocommerce form .form-row > label,
.db-ck .db-ck-rates__label,
.db-label { padding-left: 8px; }
/* "Add a note to your order": nudged in, with a plus that turns into a close. */
.db-ck-notes__more > summary { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; list-style: none; cursor: pointer; }
.db-ck-notes__more > summary::-webkit-details-marker { display: none; }
.db-ck-notes__more > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--db-black); color: var(--db-white); font-size: 18px; font-weight: 500; line-height: 1; transition: transform 0.3s var(--db-ease-spring), background-color 0.25s; }
.db-ck-notes__more[open] > summary::before { transform: rotate(45deg); background: var(--db-ink-2); }
/* Payment: no extra white card or border around Stripe's own form. */
body .db-ck #payment div.payment_box { margin: 4px 0 0; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
/* Promo pill: same height focused or not; errors sit underneath, not inside. */
body .db-ck form.db-ck-promo__form { position: relative; flex-wrap: nowrap; }
body .db-ck form.db-ck-promo__form .form-row .input-text,
body .db-ck form.db-ck-promo__form .form-row .input-text:focus { height: 42px; min-height: 0; padding: 0 14px; line-height: 42px; }
body .db-ck form.db-ck-promo__form .form-row { position: static; }
body .db-ck form.db-ck-promo__form .coupon-error-notice,
body .db-ck form.db-ck-promo__form .db-field-error { position: absolute; left: 18px; top: calc(100% + 8px); margin: 0; font-size: 13px; line-height: 1.3; color: var(--db-red); }
body .db-ck form.db-ck-promo__form:has(.coupon-error-notice, .db-field-error) { margin-bottom: 28px; box-shadow: inset 0 0 0 1px var(--db-red); }
body .db-ck form.db-ck-promo__form .input-text.has-error { box-shadow: none; }
