:root {
	--checkout-control-height: 41px;
	--checkout-control-block-padding: 8.5px;
	--checkout-control-padding: var(--checkout-control-block-padding) 10px;
	--checkout-input-block-padding: 8px;
	--checkout-cta-line-height: 1.4;
	--checkout-cta-border: 1px;
	--shop-purchase-height: max(var(--checkout-control-height), calc(var(--checkout-cta-line-height) * var(--text-m, 1rem) + 2 * (var(--checkout-control-block-padding) + var(--checkout-cta-border))));
}

/* Match the rendered Bricks contact form. The site supplies the primary color and text size. */
:is(.shop-checkout-page, .shop-cart-page, .shop-order-page, .shop-mini-cart, .woocommerce-order-pay) {
	--checkout-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M268 112l144 144-144 144M392 256H100' fill='none' stroke='black' stroke-width='48' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--checkout-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='110 110 292 292'%3E%3Cpath d='M368 368 144 144M368 144 144 368' fill='none' stroke='black' stroke-width='32' stroke-linecap='round'/%3E%3C/svg%3E");
	--checkout-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='49 49 414 414'%3E%3Cpolyline points='416 128 192 384 96 288' fill='none' stroke='black' stroke-width='42' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--checkout-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='31 31 450 450'%3E%3Ccircle cx='256' cy='256' r='192' fill='none' stroke='black' stroke-width='47'/%3E%3Cpath d='M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 6z' fill='none' stroke='black' stroke-width='32' stroke-linejoin='round'/%3E%3Ccircle cx='256' cy='348' r='20'/%3E%3C/svg%3E");
	/* Ionicons v7.4.0 cart-outline (MIT). Stroke 40, not 32: the cart then looks as heavy as the arrow (48) beside it (owner review 13). */
	--checkout-icon-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Ccircle cx='176' cy='416' r='16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='40'/%3E%3Ccircle cx='400' cy='416' r='16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='40'/%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='40' d='M48 80h64l48 272h256'/%3E%3Cpath d='M160 288h249.44a8 8 0 007.85-6.43l28.8-144a8 8 0 00-7.85-9.57H128' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='40'/%3E%3C/svg%3E");
	--checkout-icon-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M112 112l20 320c1 19 14 32 32 32h184c18 0 31-13 32-32l20-320M80 112h352M192 112V72a24 24 0 0124-24h80a24 24 0 0124 24v40M256 176v224M184 176l8 224M328 176l-8 224' fill='none' stroke='black' stroke-width='32' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	/* Ionicons v7.4.0 outline paths (MIT), with the checkout heading stroke and viewBox. */
	--shop-heading-icon-reader: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='16 16 480 480'%3E%3Crect x='96' y='48' width='320' height='416' rx='48' ry='48' style='fill:none;stroke:%23000;stroke-linejoin:round;stroke-width:38px'/%3E%3Cline x1='176' y1='128' x2='336' y2='128' style='fill:none;stroke:%23000;stroke-linecap:round;stroke-linejoin:round;stroke-width:38px'/%3E%3Cline x1='176' y1='208' x2='336' y2='208' style='fill:none;stroke:%23000;stroke-linecap:round;stroke-linejoin:round;stroke-width:38px'/%3E%3Cline x1='176' y1='288' x2='256' y2='288' style='fill:none;stroke:%23000;stroke-linecap:round;stroke-linejoin:round;stroke-width:38px'/%3E%3C/svg%3E");
	/* The cart and the mini cart show the remove icon in one size (owner review 13). */
	--shop-remove-icon-size: 1rem;
	/* ACSS --text-s is 12 px at both measured widths. The scale has no 14 px size. */
	--shop-product-name-size: 14px;
	--shop-product-dimensions-size: var(--text-s, 12px);
	--checkout-line: #ceced2;
	/* Match the contact form divider above rejected attachments. */
	--shop-divider: rgb(0 0 0 / 5%);
	--checkout-tint: var(--primary-ultra-light, #f8fcf9);
	--checkout-accent: var(--primary, #245933);
	--checkout-hover: var(--primary-hover, #2b683c);
	--checkout-muted: var(--shade-dark, #2b2b2b);
	--checkout-radius: 4px;
	/* White text on it, and it on the #fcede3 mini cart action, reach 4.5:1 (WCAG 1.4.3): 5.38:1 and 4.70:1. #ce6016 gave 3.96:1 and 3.46:1. */
	--shop-cta-color: #ad4f12;
	--checkout-field-gap: 20px;
	--checkout-focus: #1d3658;
	--checkout-error: #b00;
	--checkout-error-tint: #ffe6ec;
	--checkout-feedback-padding: 6px 10px;
	--checkout-panel-padding: clamp(1rem, 2.25vw, 1.75rem);
}

/* One horizontal edge inset for every storefront header section.
 * The purchase header's Bricks section sets inline padding to 0; restore
 * the ACSS pad-header token so it matches the global header. */
#brx-header .brxe-section.pad-header--s {
	padding-inline: var(--section-padding-x);
}

#brx-header .shop-purchase-back {
	display: inline-grid;
	grid-template-columns: 0.75rem max-content;
	align-items: center;
	gap: 0.375rem;
	inline-size: max-content;
	min-height: 1.75rem;
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--checkout-line);
	border-radius: var(--button-radius, 1rem);
	background: transparent;
	color: #000;
	font-size: var(--text-s, 0.75rem);
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
}

#brx-header .shop-purchase-back:focus-visible {
	outline: 2px solid var(--checkout-focus);
	outline-offset: 2px;
}

#brx-header .shop-purchase-back::before {
	content: "";
	height: 0.75rem;
	background: currentColor;
	mask: var(--checkout-icon-arrow) center / contain no-repeat;
	transform: scaleX(-1);
}

.shop-icon-heading {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.shop-icon-heading--reader::before {
	content: "";
	flex: 0 0 1em;
	height: 1em;
	background: currentColor;
	mask: var(--shop-heading-icon-reader) center / contain no-repeat;
}

:is(.shop-cart-page, .shop-order-page) #brx-content :is(.shop-cart-empty__actions a, .shop-cart__actions .checkout-button, .shop-order-received .button, .cart-link-choice__button, .woocommerce-verify-email .button),
.shop-checkout-page #brx-content .shop-checkout-expired .button,
#brx-header .shop-mini-cart .woocommerce-mini-cart__buttons a {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	min-height: var(--checkout-control-height);
	height: auto;
	margin: 0;
	padding: var(--checkout-control-padding);
	border: 1px solid var(--checkout-accent);
	border-radius: var(--button-radius, 1rem);
	background: var(--shop-action-background, var(--checkout-accent));
	box-shadow: none;
	color: var(--shop-action-color, #fff);
	font-family: inherit;
	font-size: var(--text-m, 1rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.5px;
	text-align: center;
	text-transform: none;
}

.shop-cart-empty__actions a:not(.button),
.cart-link-choice__button:not(.cart-link-choice__button--primary),
.shop-mini-cart .woocommerce-mini-cart__buttons a:not(.checkout) {
	--shop-action-background: #fff;
	--shop-action-color: var(--checkout-accent);
	--shop-action-hover: var(--checkout-tint);
}

:is(.shop-cart-page, .shop-order-page) #brx-content :is(.shop-cart-empty__actions a, .shop-cart__actions .checkout-button, .shop-order-received .button, .cart-link-choice__button, .woocommerce-verify-email .button):hover,
.shop-checkout-page #brx-content .shop-checkout-expired .button:hover,
#brx-header .shop-mini-cart .woocommerce-mini-cart__buttons a:hover {
	background: var(--shop-action-hover, var(--checkout-hover));
}

/* The purchase CTAs use the legacy storefront button treatment. */
.shop-cart-page #brx-content :is(.shop-cart__actions .checkout-button, .shop-cart-empty__actions a.button),
.shop-checkout-page #brx-content form.shop-checkout.checkout :is(.shop-checkout__next, #place_order),
.shop-order-page #brx-content :is(.shop-order-received .button.pay, .shop-order-received .shop-order-received__continue, .woocommerce-verify-email .button),
.woocommerce-order-pay #brx-content form#order_review #place_order {
	background: var(--shop-cta-color);
	border-color: var(--shop-cta-color);
	border-radius: var(--button-radius, 1rem);
	color: #fff;
}

.shop-cart-page #brx-content :is(.shop-cart__actions .checkout-button, .shop-cart-empty__actions a.button),
.shop-order-page #brx-content :is(.shop-order-received .button.pay, .shop-order-received .shop-order-received__continue, .woocommerce-verify-email .button) {
	--shop-action-hover: var(--shop-cta-color);
}

:is(.shop-cart-page, .shop-order-page) #brx-content :focus-visible,
.shop-checkout-page #brx-content .shop-checkout-expired .button:focus-visible,
#brx-header .shop-mini-cart :focus-visible {
	outline: 3px solid var(--checkout-focus);
	outline-offset: 4px;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content :is(.shop-checkout__summary, .shop-order-received) .product-name .product-quantity {
	display: inline;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
	font-weight: 500;
	white-space: nowrap;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-order-shipment__products {
	display: grid;
	gap: 0.5rem;
	margin: 0.25rem 0 0.75rem;
	padding: 0;
	list-style: none;
	text-align: start;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-order-shipment__products > li {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	overflow-wrap: anywhere;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-order-shipment__products .product-name {
	font-size: var(--shop-product-name-size);
}

.shop-order-shipment__products .product-name > .shop-order-shipment__dimensions {
	display: block;
	color: var(--checkout-muted);
	font-size: var(--shop-product-dimensions-size);
	line-height: 1.4;
	white-space: normal;
}

.shop-order-shipment__products .shop-order-shipment__thumbnail img {
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	object-fit: contain;
}

:is(.shop-checkout-page, .shop-order-page, .shop-cart-page) #brx-content table.shop_table:is(.woocommerce-checkout-review-order-table, .shop-order-details__totals, .shop-cart__summary),
#brx-header .shop-mini-cart table.shop_table.shop-cart__summary {
	width: 100%;
	table-layout: fixed;
	border: 0;
	border-collapse: collapse;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
}

:is(.shop-checkout-page, .shop-order-page, .shop-cart-page) #brx-content table.shop_table:is(.woocommerce-checkout-review-order-table, .shop-order-details__totals, .shop-cart__summary) :is(tbody, tr, th, td),
#brx-header .shop-mini-cart table.shop_table.shop-cart__summary :is(tbody, tr, th, td) {
	border: 0;
	background: none;
}

:is(.shop-checkout-page, .shop-order-page, .shop-cart-page) #brx-content table.shop_table:is(.woocommerce-checkout-review-order-table, .shop-order-details__totals, .shop-cart__summary) :is(th, td),
#brx-header .shop-mini-cart table.shop_table.shop-cart__summary :is(th, td) {
	padding: 0.65rem 0;
	text-align: start;
	vertical-align: top;
}

:is(.shop-checkout-page, .shop-order-page, .shop-cart-page) #brx-content table.shop_table:is(.woocommerce-checkout-review-order-table, .shop-order-details__totals, .shop-cart__summary) th,
#brx-header .shop-mini-cart table.shop_table.shop-cart__summary th {
	width: 43%;
	font-weight: 600;
}

:is(.shop-checkout-page, .shop-order-page, .shop-cart-page) #brx-content table.shop_table:is(.woocommerce-checkout-review-order-table, .shop-order-details__totals, .shop-cart__summary) td,
#brx-header .shop-mini-cart table.shop_table.shop-cart__summary td {
	width: auto;
	padding-inline-start: 0.75rem;
	text-align: end;
}

:is(.shop-checkout-page, .shop-order-page, .shop-cart-page) #brx-content table.shop_table:is(.woocommerce-checkout-review-order-table, .shop-order-details__totals, .shop-cart__summary) td :is(.woocommerce-Price-amount, bdi, .shop-checkout__summary-tax),
#brx-header .shop-mini-cart table.shop_table.shop-cart__summary td :is(.woocommerce-Price-amount, bdi, .shop-checkout__summary-tax) {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-cost-summary {
	box-sizing: border-box;
	min-width: 0;
	padding: var(--checkout-panel-padding);
	border: 1px solid var(--checkout-line);
	border-radius: var(--checkout-radius);
	background: #fff;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-cost-summary > :is(h2, h3) {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-cost-summary table.shop_table {
	margin: 0;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-cost-summary table.shop_table tr > :is(th, td) {
	padding: 0.55rem 0;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-cost-summary table.shop_table :is(.order-total, .shop-order-details__totals tbody > tr:last-child) > :is(th, td) {
	padding-block-start: 0.8rem;
	border-block-start: 1px solid var(--checkout-line);
	font-size: 1rem;
	font-weight: 700;
}

:is(.shop-checkout-page, .shop-order-page) #brx-content .shop-cost-summary table.shop_table :is(.order-total, .shop-order-details__totals tbody > tr:last-child) .shop-checkout__summary-tax {
	font-size: 0.75rem;
}

.shop-checkout-page #brx-content .shop-cost-summary table.shop_table .order-total .shop-checkout__summary-tax {
	font-weight: 500;
}

.shop-checkout-page #brx-content table.woocommerce-checkout-review-order-table {
	margin: 0;
}


:is(.shop-cart-page #brx-content, .shop-checkout-page #brx-content, .shop-order-page #brx-content, #brx-header .shop-mini-cart)
	:is(summary, button, [role="button"], .button, label.checkbox, label:has(input:is([type="checkbox"], [type="radio"])), input:is([type="checkbox"], [type="radio"]) + label) {
	-webkit-user-select: none;
	user-select: none;
}

:is(.shop-cart-page, .shop-checkout-page, .shop-order-page) #brx-content,
.shop-cart-page #brx-content .quantity label.screen-reader-text {
	font-weight: 500;
}

#brx-content .shop-shipping-package {
	box-sizing: border-box;
	padding: clamp(0.625rem, 1.5vw, 1rem);
	border: 1px solid var(--checkout-line);
	border-radius: var(--checkout-radius);
	background: #fff;
	overflow-wrap: anywhere;
}

#brx-content .shop-shipping-package + .shop-shipping-package {
	margin-top: 1rem;
}

#brx-content .shop-shipping-package .shop-shipping-rate {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 0.75rem;
	position: relative;
	margin: 0;
	padding: 0.75rem 0.875rem 0.75rem 2.5rem;
	border: 1px solid var(--checkout-line);
	border-radius: var(--checkout-radius);
	background: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
	transition: background-color var(--checkout-motion), border-color var(--checkout-motion);
}

#brx-content .shop-shipping-package .shop-checkout__rate-price {
	flex: none;
	text-align: end;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

#brx-content .shop-shipping-package .shop-checkout__rate-price .tax_label {
	display: block;
	color: var(--checkout-muted);
	font-weight: 500;
}

#brx-content .shop-shipping-package .shop-order-shipment__items {
	margin-block-end: 0.25rem;
	font-size: 0.875rem;
}

#brx-content .shop-shipping-package .shop-order-shipment__items > .shop-order-shipment__products {
	margin-block-end: 0.375rem;
}

#brx-content .shop-shipping-package .shop-order-shipment__items summary {
	width: fit-content;
	color: var(--checkout-accent);
	line-height: 22.9636px;
	text-decoration: none;
	cursor: pointer;
	min-height: 2.75rem;
	align-content: center;
}

#brx-content .shop-shipping-package .shop-order-shipment__items summary:focus-visible {
	outline: 3px solid var(--checkout-focus);
	outline-offset: 3px;
}

#brx-content .shop-shipping-package .shop-shipping-package__title {
	margin: 0 0 0.5rem;
	color: #000;
	font-size: var(--text-s, 0.75rem);
	font-weight: 600;
	letter-spacing: 0.4px;
	line-height: 22.9636px;
	text-transform: uppercase;
}

#brx-content .shop-shipping-package .shop-shipping-rate--saved,
#brx-content .shop-shipping-package input[type="radio"] + .shop-shipping-rate:hover,
#brx-content .shop-shipping-package input:checked + .shop-shipping-rate,
#brx-content .shop-shipping-package input[type="hidden"] + .shop-shipping-rate {
	border-color: var(--checkout-accent);
}

.shop-shipping-rate--saved::before {
	position: absolute;
	inset-block-start: 0.9rem;
	inset-inline-start: 0.875rem;
	box-sizing: border-box;
	width: 1rem;
	height: 1rem;
	background: var(--checkout-accent);
	mask: var(--checkout-icon-check) center / contain no-repeat;
	content: "";
}

@media (max-width: 22.5rem) {
	#brx-content .shop-shipping-package .shop-shipping-rate {
		padding-inline-start: 2rem;
		gap: 0.5rem;
	}

	.shop-shipping-rate--saved::before {
		inset-inline-start: 0.625rem;
	}
}


#brx-content .wpgb-facet:has(.shop-archive-result-count) > .wpgb-load-more {
	box-sizing: border-box;
	min-height: 40px;
	padding: 0 15px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
}

.shop-archive-result-count {
	margin: 0;
	font-size: .8125rem;
	text-align: center;
}

.wpgb-load-more + .shop-archive-result-count {
	margin-block-start: 6px;
}
