/* Checkout-specific WooCommerce form field overrides. */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-account-fields h3 {
	font-family: 'Cinzel', serif;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--color-outline);
	font-weight: 700;
	margin-bottom: 1.5rem;
	margin-top: 0;
}
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
	float: left;
	width: 48%;
}
.woocommerce-checkout .form-row-first { margin-right: 4%; }
.woocommerce-checkout .form-row-wide  { clear: both; }
@media ( max-width: 640px ) {
	.woocommerce-checkout .form-row-first,
	.woocommerce-checkout .form-row-last {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}
#payment { background: transparent; border-radius: 0; }
#payment .payment_methods { border: none; padding: 0; list-style: none; }
#payment .payment_methods li { border-bottom: 1px solid rgba(191,201,197,0.15); padding: 1rem 0; }
#payment .payment_methods li label { font-family: 'Cinzel', serif; font-size: 0.875rem; cursor: pointer; }
#payment .place-order { padding-top: 1.5rem; }
#payment #place_order {
	display: block;
	width: 100%;
	padding: 1rem;
	background-color: var(--color-brand-primary);
	color: #ffffff;
	font-family: 'Cinzel', serif;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}
#payment #place_order:hover { background-color: var(--color-brand-primary-container); }

/* ─────────────────────────────────────────────────────────────────────────
   WooCommerce Blocks — Checkout & Cart
   3-column order summary, bigger thumbnails, tighter form column
   ───────────────────────────────────────────────────────────────────────── */

/* 1. Page wrapper: lift the 900px cap on commerce pages. */
.woocommerce-checkout .sc-page,
.woocommerce-cart .sc-page {
	max-width: 1200px;
}

@media ( min-width: 768px ) {
	.woocommerce-checkout .sc-page,
	.woocommerce-cart .sc-page {
		padding: 3rem 2.5rem 5rem;
	}
}

/* 2. Two-column layout on the real container.
   WC Blocks adds .is-mobile based on container width — we override at desktop. */
@media ( min-width: 900px ) {
	.wc-block-components-sidebar-layout,
	.wc-block-components-sidebar-layout.is-mobile,
	.wc-block-components-sidebar-layout.wc-block-checkout,
	.wc-block-components-sidebar-layout.wc-block-cart {
		display: grid !important;
		grid-template-columns: minmax(0, 1.45fr) minmax(380px, 1fr);
		gap: 2.5rem;
		align-items: start;
	}

	.wc-block-components-sidebar-layout .wc-block-components-main,
	.wc-block-components-sidebar-layout .wc-block-checkout__main,
	.wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-fields-block,
	.wc-block-components-sidebar-layout .wp-block-woocommerce-cart-items-block {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding-right: 0 !important;
	}

	.wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block,
	.wc-block-components-sidebar-layout .wp-block-woocommerce-cart-order-summary-block {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}
}

@media ( max-width: 899px ) {
	.wc-block-components-sidebar-layout {
		display: flex !important;
		flex-direction: column !important;
		gap: 1.5rem;
	}
	.wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.wc-block-components-sidebar-layout .wp-block-woocommerce-checkout-totals-block {
		order: -1;
	}
}

/* 3. Stop ugly mid-word breaks. */
.wc-block-components-order-summary-item,
.wc-block-components-order-summary-item *,
.wc-block-components-product-name,
.wc-block-cart-item__product-name,
.wc-block-components-product-metadata,
.wc-block-components-totals-item__label {
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
}

/* 4. Order summary card. */
.wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-cart-order-summary-block {
	background: #ffffff;
	border: 1px solid rgba(0, 50, 42, 0.1);
	border-radius: 0.75rem;
	padding: 1.5rem 1.25rem;
	box-shadow: 0 2px 12px rgba(27, 28, 26, 0.04);
}

.wp-block-woocommerce-checkout-order-summary-block > .wc-block-components-title {
	font-family: 'Cinzel', serif !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-brand-primary, #00322a) !important;
	margin: 0 0 1.25rem !important;
	padding-bottom: 0.875rem;
	border-bottom: 1px solid rgba(0, 50, 42, 0.1);
}

/* ── 5. ORDER SUMMARY LINE ITEM — 3-column grid ───────────────────────────
   The item has THREE children, so we set 3 columns:
   [image 80px] [description min:0 / 1fr] [total + sale, auto]
   ──────────────────────────────────────────────────────────────────────── */

.wc-block-components-order-summary-item {
	display: grid !important;
	grid-template-columns: 80px minmax(0, 1fr) auto !important;
	gap: 0.875rem 1rem !important;
	padding: 1.125rem 0 !important;
	margin: 0 !important;
	border-bottom: 1px solid rgba(0, 50, 42, 0.06);
	align-items: center;
}

.wc-block-components-order-summary-item:last-of-type {
	border-bottom: none;
}

/* Hide WC's screen-reader-only text node that occupies a grid cell. */
.wc-block-components-order-summary-item > .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ── Thumbnail: bigger, square, image fully visible (contain). ─────────── */
.wc-block-components-order-summary-item__image {
	width: 80px !important;
	height: 80px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0.5rem;
	background: var(--color-bg-row, #f5f3ef);
	overflow: hidden;
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.wc-block-components-order-summary-item__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	padding: 6px !important;
	box-sizing: border-box;
	display: block;
}

/* Quantity badge on thumbnail */
.wc-block-components-order-summary-item__quantity {
	position: absolute !important;
	top: -8px !important;
	right: -8px !important;
	width: 24px !important;
	height: 24px !important;
	border-radius: 50% !important;
	background: var(--color-brand-primary, #00322a) !important;
	color: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: 'Cinzel', serif !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	border: 2px solid #ffffff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	z-index: 2;
}

/* ── Middle column: name + meta only (we move pricing to the right). ──── */
.wc-block-components-order-summary-item__description {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.25rem !important;
	min-width: 0;
	padding: 0 !important;
	align-self: center;
}

.wc-block-components-product-name {
	font-family: 'Cinzel', serif !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: var(--color-brand-primary, #00322a) !important;
	line-height: 1.25 !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	margin: 0 !important;
}

/* Hide the inline per-unit prices in the middle column — keeps it clean.
   The big price on the right already shows the new total; the old one
   shows there as strikethrough. */
.wc-block-components-order-summary-item__description .wc-block-cart-item__prices,
.wc-block-components-order-summary-item__description .wc-block-components-order-summary-item__individual-prices {
	display: none !important;
}

/* Variant / metadata (Size: 30ml) — small, muted, serif */
.wc-block-components-product-metadata,
.wc-block-components-product-details {
	font-size: 0.75rem !important;
	color: rgba(27, 28, 26, 0.72) !important; /* was 0.55 = 3.79:1, below AA */
	line-height: 1.4 !important;
	margin: 0 !important;
	font-family: 'Cormorant Garamond', Georgia, serif !important;
}

.wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item__description > p:last-child:not(.wc-block-components-product-name):not(.wc-block-components-product-metadata) {
	display: none !important;
}

/* ── Right column: total price + save badge stacked, right-aligned. ───── */
.wc-block-components-order-summary-item__total-price {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 0.375rem !important;
	white-space: nowrap;
	align-self: center;
	padding: 0 !important;
}

.wc-block-cart-item__total-price-and-sale-badge-wrapper {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 0.375rem !important;
}

.wc-block-components-order-summary-item__total-price .wc-block-components-product-price {
	font-family: 'Cinzel', serif !important;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	color: var(--color-brand-primary, #00322a) !important;
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
}

/* The retail price as strikethrough sitting BEFORE the discounted price */
.wc-block-components-order-summary-item__total-price .wc-block-components-product-price del,
.wc-block-components-order-summary-item__total-price .wc-block-components-product-price__regular {
	color: rgba(27, 28, 26, 0.4) !important;
	font-weight: 400 !important;
	font-size: 0.75rem;
	text-decoration: line-through;
}

/* Save badge — small pill aligned to the right edge */
.wc-block-components-sale-badge {
	display: inline-flex !important;
	align-items: center;
	background: rgba(119, 90, 25, 0.12) !important;
	color: var(--color-brand-secondary, #775a19) !important;
	font-family: 'Cinzel', serif !important;
	font-size: 0.625rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.125rem 0.5rem !important;
	border-radius: 999px !important;
	white-space: nowrap !important;
	margin: 0 !important;
	gap: 0.25rem;
}

/* ── 6. Totals (subtotal / shipping / total) ──────────────────────────── */
.wc-block-components-totals-wrapper {
	padding: 0.75rem 0 !important;
	border-top: 1px solid rgba(0, 50, 42, 0.1) !important;
}

.wc-block-components-totals-item {
	padding: 0.375rem 0 !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: baseline !important;
	gap: 0.75rem;
}

.wc-block-components-totals-item__label {
	font-family: 'Cinzel', serif !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	color: rgba(27, 28, 26, 0.7) !important;
	letter-spacing: 0.04em;
}

.wc-block-components-totals-item__value {
	font-family: 'Cinzel', serif !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	color: var(--color-brand-primary, #00322a) !important;
	white-space: nowrap;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	color: var(--color-brand-primary, #00322a) !important;
}

/* Coupon panel */
.wc-block-components-panel__button {
	font-family: 'Cinzel', serif !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(27, 28, 26, 0.72) !important; /* was 0.6 = 4.43:1, below AA */
	padding: 0.5rem 0 !important;
}

/* ── 7. FORM COLUMN — more compact, balanced section rhythm ───────────── */

/* Reduce the giant title */
.woocommerce-checkout .sc-page__heading {
	font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
	margin-bottom: 1.5rem;
}

.wp-block-woocommerce-checkout-fields-block .wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout-fields-block h2 {
	font-family: 'Cinzel', serif !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	color: rgba(27, 28, 26, 0.5) !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	margin: 0 0 1rem !important;
}

.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-method-block,
.wp-block-woocommerce-checkout-payment-block,
.wp-block-woocommerce-checkout-pickup-options-block,
.wp-block-woocommerce-checkout-additional-information-block,
.wp-block-woocommerce-checkout-order-note-block {
	margin-bottom: 1.75rem !important;
}

.wc-block-components-address-form,
.wc-block-components-address-form > .wc-block-components-text-input,
.wc-block-components-address-form > .wc-block-components-select {
	margin-bottom: 0.625rem !important;
}

/* Form fields.
   NOTE: WooCommerce wraps the contact fields in .wc-block-components-address-form,
   so a bare `input` selector also matches the "Create an account" CHECKBOX and
   stretches it into a rectangle. Always exclude checkbox/radio here. */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-combobox input,
.wc-block-components-address-form input:not([type="checkbox"]):not([type="radio"]),
.wc-block-components-address-form select {
	background: #ffffff !important;
	border: 1px solid rgba(0, 50, 42, 0.18) !important;
	border-radius: 0.375rem !important;
	padding: 0.875rem 0.875rem !important;
	height: auto !important;
	min-height: 3rem !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus,
.wc-block-components-combobox input:focus {
	border-color: var(--color-brand-primary, #00322a) !important;
	box-shadow: 0 0 0 2px rgba(0, 50, 42, 0.08) !important;
	outline: none !important;
}

/* Address row: name fields side by side, postcode/phone side by side */
.wc-block-components-address-form {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem 0.875rem !important;
}

.wc-block-components-address-form > .wc-block-components-text-input,
.wc-block-components-address-form > .wc-block-components-select,
.wc-block-components-address-form > .wc-block-components-combobox {
	margin-bottom: 0 !important;
}

/* Make fields span both columns by default */
.wc-block-components-address-form > * {
	grid-column: 1 / -1;
}

/* Keep name+lastname / postcode+phone / city+county on the same row */
.wc-block-components-address-form #shipping-first_name,
.wc-block-components-address-form #shipping-last_name,
.wc-block-components-address-form #shipping-city,
.wc-block-components-address-form #shipping-state,
.wc-block-components-address-form #shipping-postcode,
.wc-block-components-address-form #shipping-phone,
.wc-block-components-address-form #billing-first_name,
.wc-block-components-address-form #billing-last_name,
.wc-block-components-address-form #billing-city,
.wc-block-components-address-form #billing-state,
.wc-block-components-address-form #billing-postcode,
.wc-block-components-address-form #billing-phone {
	/* WC wraps each field — re-grant single column on the wrapper */
}

.wc-block-components-address-form > [class*="first_name"],
.wc-block-components-address-form > [class*="postcode"],
.wc-block-components-address-form > [class*="city"] {
	grid-column: span 1;
}
.wc-block-components-address-form > [class*="last_name"],
.wc-block-components-address-form > [class*="phone"],
.wc-block-components-address-form > [class*="state"] {
	grid-column: span 1;
}

/* Shipping option / payment cards — smaller, denser */
.wc-block-components-radio-control__option {
	border: 1px solid rgba(0, 50, 42, 0.12) !important;
	border-radius: 0.5rem !important;
	padding: 0.875rem 1rem 0.875rem 2.5rem !important;
	margin: 0 0 0.5rem !important;
	background: #ffffff !important;
	transition: border-color 0.15s ease, background 0.15s ease !important;
	min-height: auto !important;
}

.wc-block-components-radio-control__option:hover {
	border-color: rgba(0, 50, 42, 0.3) !important;
}

.wc-block-components-radio-control__option.wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control__option:has(input:checked) {
	border-color: var(--color-brand-primary, #00322a) !important;
	background: rgba(0, 50, 42, 0.03) !important;
}

.wc-block-components-radio-control__label {
	font-family: 'Cinzel', serif !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: var(--color-brand-primary, #00322a) !important;
	letter-spacing: 0.01em;
	line-height: 1.35 !important;
	word-break: normal !important;
}

.wc-block-components-radio-control__secondary-label,
.wc-block-components-radio-control__description,
.wc-block-components-radio-control__option-content-description {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: 0.875rem !important;
	color: rgba(27, 28, 26, 0.65) !important;
	font-weight: 500;
	line-height: 1.4;
}

.wc-block-components-radio-control__input {
	left: 0.875rem !important;
}

/* "Use same address for billing" — tighter */
.wc-block-checkout__use-address-for-billing {
	margin: 0.5rem 0 1rem !important;
}

/* Place Order button */
.wc-block-components-checkout-place-order-button {
	background: var(--color-brand-primary, #00322a) !important;
	color: #ffffff !important;
	font-family: 'Cinzel', serif !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	padding: 1.125rem 1.5rem !important;
	border-radius: 0.375rem !important;
	border: none !important;
	width: 100% !important;
	transition: background 0.15s ease !important;
}

.wc-block-components-checkout-place-order-button:hover {
	background: var(--color-brand-primary-container, #004b40) !important;
}

.wc-block-components-checkout-return-to-cart-button {
	font-family: 'Cinzel', serif !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-brand-secondary, #775a19) !important;
	white-space: nowrap !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   COMPACT / MINIMAL PASS — tighten the checkout form vertical rhythm
   (overrides the spacing set above; same fields, ~half the scroll)
   ───────────────────────────────────────────────────────────────────────── */

/* Smaller page heading on checkout */
.woocommerce-checkout .sc-page__heading {
	font-size: clamp(1.5rem, 2.4vw, 1.875rem) !important;
	margin-bottom: 1rem !important;
}

/* Section labels: tight, quiet, sit close to their fields */
.wp-block-woocommerce-checkout-fields-block .wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout-fields-block h2 {
	font-size: 0.6875rem !important;
	letter-spacing: 0.16em !important;
	margin: 0 0 0.625rem !important;
	color: rgba(27, 28, 26, 0.45) !important;
}

/* Collapse the space between checkout sections */
.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-method-block,
.wp-block-woocommerce-checkout-payment-block,
.wp-block-woocommerce-checkout-pickup-options-block,
.wp-block-woocommerce-checkout-additional-information-block,
.wp-block-woocommerce-checkout-order-note-block {
	margin-bottom: 1.25rem !important;
}

/* Slimmer fields: ~48px instead of 55px.
   Checkbox/radio excluded — see note above. */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-combobox input,
.wc-block-components-address-form input:not([type="checkbox"]):not([type="radio"]),
.wc-block-components-address-form select,
.wc-block-checkout__main input[type="text"],
.wc-block-checkout__main input[type="email"],
.wc-block-checkout__main input[type="tel"] {
	min-height: 2.875rem !important;
	padding: 0.6875rem 0.875rem !important;
	font-size: 0.9375rem !important;
	line-height: 1.2 !important;
}

/* Float-label sits at the very top; value drops below it so they never collide.
   These large serif fonts need more vertical clearance than a default sans form. */
.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input:focus,
.wc-block-components-combobox.is-active input,
.wc-block-components-combobox.is-active .components-form-token-field__input {
	padding-top: 1.4rem !important;
	padding-bottom: 0.35rem !important;
}

/* Float label: smaller, sits centred when empty */
.wc-block-components-text-input label,
.wc-block-components-combobox label {
	font-size: 0.9375rem !important;
}

/* Float label when filled/active: pinned to the very top edge, tiny, muted */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-combobox.is-active label {
	font-size: 0.625rem !important;
	top: 0.4rem !important;
	transform: none !important;
	letter-spacing: 0.06em;
	line-height: 1 !important;
	color: rgba(27, 28, 26, 0.45) !important;
}

/* Tighter gaps between fields in the address grid */
.wc-block-components-address-form {
	gap: 0.5rem 0.75rem !important;
}

/* "Add apartment, suite, etc." — quieter, inline-feeling link */
.wc-block-components-address-address-2-field__link,
button.wc-block-components-address-form__address_2-toggle,
.wc-block-checkout__add-address-2 {
	font-size: 0.75rem !important;
	color: var(--color-brand-secondary, #775a19) !important;
	margin-top: -0.125rem !important;
	margin-bottom: 0.25rem !important;
}

/* "Use same address for billing" — tighter, lighter */
.wc-block-checkout__use-address-for-billing {
	margin: 0.25rem 0 0 !important;
}

.wc-block-checkout__use-address-for-billing .wc-block-components-checkbox__label {
	font-size: 0.8125rem !important;
	color: rgba(27, 28, 26, 0.7) !important;
}

/* Country/Region select: match the slimmer field height */
.wc-block-components-combobox .components-combobox-control__suggestions-container,
.wc-block-components-combobox input {
	min-height: 2.75rem !important;
}

/* Shipping & payment option cards: a touch denser */
.wc-block-components-radio-control__option {
	padding: 0.75rem 1rem 0.75rem 2.5rem !important;
	margin-bottom: 0.4rem !important;
}

/* Place order area: pull it up closer to the form */
.wc-block-checkout__actions {
	margin-top: 0.5rem !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Cart page — constrain product thumbnails to a uniform square
   (uncropped source images are tall, so we contain them in a fixed box)
   ───────────────────────────────────────────────────────────────────────── */

.wc-block-cart-item__image {
	width: 80px !important;
	padding-right: 1rem !important;
	vertical-align: top;
}

.wc-block-cart-item__image a,
.wc-block-cart-item__image img {
	display: block;
	width: 80px !important;
	height: 80px !important;
	max-width: 80px !important;
	max-height: 80px !important;
}

.wc-block-cart-item__image img {
	object-fit: contain !important;
	background: var(--color-bg-row, #f5f3ef);
	border-radius: 0.5rem;
	padding: 4px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.wc-block-cart-item__image,
	.wc-block-cart-item__image a,
	.wc-block-cart-item__image img {
		width: 96px !important;
	}
	.wc-block-cart-item__image a,
	.wc-block-cart-item__image img {
		height: 96px !important;
		max-width: 96px !important;
		max-height: 96px !important;
	}
}

/* ─────────────────────────────────────────────────────────────────────────
   MINIMAL / PREMIUM PASS v2 — tighten checkout further
   Smaller float-labels, denser field rhythm, sections sit closer.
   ───────────────────────────────────────────────────────────────────────── */

/* Sections sit closer together */
.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-method-block,
.wp-block-woocommerce-checkout-payment-block,
.wp-block-woocommerce-checkout-pickup-options-block,
.wp-block-woocommerce-checkout-additional-information-block,
.wp-block-woocommerce-checkout-order-note-block {
	margin-bottom: 1rem !important;
}

/* Section labels sit snug above their first field */
.wp-block-woocommerce-checkout-fields-block .wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout-fields-block h2 {
	margin: 0 0 0.5rem !important;
}

/* Empty-state float label: smaller so resting text isn't oversized */
.wc-block-components-text-input label,
.wc-block-components-combobox label {
	font-size: 0.875rem !important;
}

/* Active/filled fields: less top padding now that fields are shorter */
.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input:focus,
.wc-block-components-combobox.is-active input,
.wc-block-components-combobox.is-active .components-form-token-field__input {
	padding-top: 1.2rem !important;
	padding-bottom: 0.25rem !important;
}

/* Tighter address grid */
.wc-block-components-address-form {
	gap: 0.5rem 0.625rem !important;
}

/* Country / payment-icon combobox: match slimmer field height */
.wc-block-components-combobox input {
	min-height: 2.875rem !important;
}

/* Shipping & payment option cards: slimmer, less inner padding */
.wc-block-components-radio-control__option {
	padding: 0.6875rem 1rem 0.6875rem 2.5rem !important;
	margin-bottom: 0.375rem !important;
}

/* Pull the place-order area up close to the last field */
.wc-block-checkout__actions {
	margin-top: 0.25rem !important;
	padding-top: 0.5rem !important;
}

/* Trim mobile page padding so the form starts higher */
@media (max-width: 899px) {
	.woocommerce-checkout .sc-page {
		padding-top: 1.5rem !important;
		padding-bottom: 2.5rem !important;
	}
}

/* ─────────────────────────────────────────────────────────────────────────
   COMPACT v3 — tighten the details column further.
   Belt-and-braces: checkboxes/radios must never inherit field sizing.
   ───────────────────────────────────────────────────────────────────────── */

.wc-block-checkout__main input[type="checkbox"],
.wc-block-checkout__main input[type="radio"] {
	min-height: 0 !important;
	height: 20px !important;
	width: 20px !important;
	padding: 0 !important;
	border-radius: 3px !important;   /* square tick box, lightly rounded */
	flex: 0 0 auto !important;
}

.wc-block-checkout__main input[type="radio"] {
	border-radius: 50% !important;   /* radios stay round */
}

/* Sections sit closer still */
.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-method-block,
.wp-block-woocommerce-checkout-payment-block,
.wp-block-woocommerce-checkout-pickup-options-block,
.wp-block-woocommerce-checkout-additional-information-block,
.wp-block-woocommerce-checkout-order-note-block {
	margin-bottom: 0.75rem !important;
}

.wp-block-woocommerce-checkout-fields-block .wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout-fields-block h2 {
	margin: 0 0 0.375rem !important;
}

/* Slightly slimmer fields + tighter grid */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-combobox input,
.wc-block-components-address-form input:not([type="checkbox"]):not([type="radio"]),
.wc-block-components-address-form select,
.wc-block-checkout__main input[type="text"],
.wc-block-checkout__main input[type="email"],
.wc-block-checkout__main input[type="tel"] {
	min-height: 2.75rem !important;
	padding: 0.625rem 0.75rem !important;
}

.wc-block-components-address-form {
	gap: 0.375rem 0.5rem !important;
}

.wc-blocks-components-select .wc-blocks-components-select__select {
	min-height: 2.75rem !important;
}

/* Option cards: denser */
.wc-block-components-radio-control__option {
	padding: 0.5625rem 1rem 0.5625rem 2.5rem !important;
	margin-bottom: 0.3rem !important;
}

/* Trim the gaps around the guest-checkout note and billing checkbox */
.wc-block-checkout__guest-checkout-notice,
.wc-block-components-checkbox {
	margin-top: 0.375rem !important;
	margin-bottom: 0.375rem !important;
}

.wc-block-components-checkbox__label {
	line-height: 1.35 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   CART — "Proceed to Checkout"
   It was unstyled: WordPress's default button background (#32373c) with the
   theme's gold *link* colour + underline inherited (it's an <a>), giving
   1.87:1 contrast. Match the checkout's Place Order button instead.
   ───────────────────────────────────────────────────────────────────────── */

.wc-block-cart__submit-button,
a.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background: var(--color-brand-primary, #00322a) !important;
	color: #ffffff !important;
	font-family: 'Cinzel', serif !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	text-align: center !important;
	padding: 1.125rem 1.5rem !important;
	border: none !important;
	border-radius: 0.375rem !important;
	transition: background 0.15s ease !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-button:focus,
a.wc-block-cart__submit-button:hover,
a.wc-block-cart__submit-button:focus {
	background: var(--color-brand-primary-container, #004b40) !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

/* The wrapper adds its own container styling in some WC versions */
.wp-block-woocommerce-proceed-to-checkout-block,
.wc-block-cart__submit-container {
	background: transparent !important;
	padding: 0 !important;
}

/* ── Native <select> fields (Country/Region) — fix label/value overlap ──────
   WC renders these as a static caption label pinned at the top of the box
   while the <select> value sits vertically centred, so the two collide.
   Shrink + pin the label and push the value down below it (same look as the
   floating-label text inputs). ─────────────────────────────────────────────*/

.wc-blocks-components-select {
	position: relative;
}

.wc-blocks-components-select .wc-blocks-components-select__label {
	position: absolute !important;
	top: 0.45rem !important;
	left: 0.875rem !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.625rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.06em !important;
	line-height: 1 !important;
	color: rgba(27, 28, 26, 0.45) !important;
	pointer-events: none;
	z-index: 1;
}

.wc-blocks-components-select .wc-blocks-components-select__select {
	padding-top: 1.25rem !important;
	padding-bottom: 0.3rem !important;
	min-height: 2.875rem !important;
	line-height: 1.2 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY — WooCommerce Blocks ships several text styles at ~0.55–0.6
   opacity, which measure 3.79–4.43:1 on our cream surface and fail WCAG AA
   (4.5:1 for normal text). Raise them to a compliant tone.
   ───────────────────────────────────────────────────────────────────────── */

.wc-block-components-product-details__name,
.wc-block-components-product-details__value,
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description,
.wc-block-components-product-price__regular,
.wc-block-components-product-price__value,
.wc-block-formatted-money-amount,
.wc-block-components-formatted-money-amount,
.wc-block-cart-items__header,
.wc-block-cart-items__header span {
	color: rgba(27, 28, 26, 0.78) !important;
}

/* Struck-through "was" prices may stay lighter — they're decorative and the
   discounted price beside them carries the meaning — but keep them legible. */
.wc-block-components-product-price__regular {
	color: rgba(27, 28, 26, 0.62) !important;
}
