/*
 * WooCommerce, aligned to the theme.json tokens.
 *
 * WooCommerce ships its own stylesheet with hard-coded colours and its own
 * spacing scale. Rather than dequeue it (which loses layout and JS-driven
 * states), this sheet re-points the visible surfaces at our design tokens.
 */

/* ---------------------------------------------------------------------------
 * Block-based shop (Product Collection, Cart and Checkout blocks).
 *
 * WooCommerce 8+ renders shop, cart and checkout with blocks by default, using
 * the wc-block-* class names below. The classic `.woocommerce ul.products`
 * selectors further down still matter for the My Account area, the
 * [products] shortcode and any classic template a plugin restores. Both sets
 * are needed.
 * ------------------------------------------------------------------------- */

.wc-block-product-template {
	gap: var(--wp--preset--spacing--40);
}

/* WooCommerce's responsive grid is auto-fill with a 1.25em gap baked into the
   column width. With our wider gap it drops a column, so the counts are set
   here: four on a desktop, three on a tablet, two on a phone. */
.wc-block-product-template__responsive.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: var(--wp--preset--spacing--50);
}

@media (max-width: 1000px) {
	.wc-block-product-template__responsive.columns-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wc-block-product-template__responsive.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--30);
	}
}

/* No card: the packshot on white, the name and one line under it. */
.wc-block-product-template .wc-block-product {
	background: transparent;
	border: 0;
	padding: 0;
	text-align: left;
}

.wc-block-product-template .wc-block-product:hover .wc-block-components-product-title a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.wc-block-components-product-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
}

.wc-block-components-product-price,
.wc-block-components-formatted-money-amount {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.wc-block-components-product-price__regular {
	color: var(--wp--preset--color--ink-2);
	font-weight: 400;
}

/* Inside a product grid the gate is a text link, not a button: the tile is
   the packshot and its name, nothing competes with them. */
.wc-block-product .wc-block-components-product-button {
	align-items: flex-start;
	justify-content: flex-start;
}

.wc-block-product .wc-block-components-product-button__button,
.woocommerce ul.products li.product .button {
	margin: 0.35rem 0 0;
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.wc-block-product .wc-block-components-product-button__button:hover,
.woocommerce ul.products li.product .button:hover {
	background: transparent;
	color: var(--wp--preset--color--ink-2);
}

/* Quantity steppers are used constantly in a wholesale cart. */
.wc-block-components-quantity-selector {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	font-variant-numeric: tabular-nums;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.wc-block-components-sale-badge {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border: none;
	border-radius: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wc-block-components-product-backorder-badge {
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--paper);
	border-radius: 0;
	font-size: var(--wp--preset--font-size--x-small);
}

.wc-block-breadcrumbs,
.wc-block-product-results-count,
.wc-block-catalog-sorting {
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--x-small);
}

.wc-block-components-notice-banner {
	border-radius: 0;
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-components-totals-item {
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-components-totals-item__value {
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

/* Mini cart: the persistent reorder entry point for trade customers. */
.wc-block-mini-cart__button {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--ink);
}

/* ---------- Catalogue (classic templates) ---------- */

.woocommerce ul.products li.product {
	background: transparent;
	border: 0;
	padding: 0;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
}

/* Price is the number a trade buyer scans for, so give it weight and a
   tabular figure so columns of prices line up. */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.laverno-price-suffix {
	display: inline-block;
	margin-inline-start: 0.4em;
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-radius: 0;
	padding: 0.95em 2em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--wp--preset--color--ink-3);
	color: var(--wp--preset--color--paper);
}

.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

/* ---------- Stock and order states ---------- */

.woocommerce div.product .stock            { color: var(--wp--preset--color--ink); font-weight: 500; }
.woocommerce div.product .stock.low-stock  { color: var(--wp--preset--color--amber); }
.woocommerce div.product .stock.out-of-stock { color: var(--wp--preset--color--red); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--wp--preset--color--stone);
	border-top-color: var(--wp--preset--color--ink);
	border-radius: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-error { border-top-color: var(--wp--preset--color--red); }

/* ---------- Tables: cart, order review, account orders ---------- */

.woocommerce table.shop_table,
.woocommerce table.shop_attributes {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce table.shop_table th {
	background: var(--wp--preset--color--stone);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-2);
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	border-color: var(--wp--preset--color--line);
	padding: 0.85rem 1rem;
}

.woocommerce table.shop_table .amount { font-variant-numeric: tabular-nums; }

/* Quantity inputs get used heavily in wholesale carts, so make them tappable. */
.woocommerce .quantity .qty {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	padding: 0.5em;
	min-width: 4.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.woocommerce .quantity .qty:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 1px;
}

/* ---------- Forms ---------- */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	padding: 0.65em 0.8em;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.woocommerce form .form-row label {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--ink-2);
}

/* ---------- Breadcrumb ---------- */

.woocommerce .woocommerce-breadcrumb {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--ink-2);
}

/* ---------------------------------------------------------------------------
 * Image-led product cards.
 *
 * The block grid ships with small, inconsistent thumbnails. A dealer browsing
 * a range needs to see the finish, so the image gets a fixed ratio and fills
 * the card width.
 * ------------------------------------------------------------------------ */

.wc-block-product-template .wc-block-product {
	padding: 0;
	overflow: hidden;
}

.wc-block-product-template .wc-block-product .wc-block-components-product-image {
	margin: 0;
	background: var(--wp--preset--color--stone);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.wc-block-product-template .wc-block-product .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The caption sits flush with the image edge, two quiet lines under it. */
.wc-block-product-template .wc-block-product > :not(.wc-block-components-product-image) {
	padding-inline: 0;
	margin-block: 0;
}

.wc-block-product-template .wc-block-product > :nth-child(2) {
	padding-top: 0.9rem;
}

.wc-block-product-template .wc-block-product > :nth-child(3) {
	padding-top: 0.2rem;
}

.wc-block-product-template .wc-block-product .wc-block-components-product-price {
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
}

/* Category pages: the term description reads as an intro, not body copy. */
.woocommerce-products-header__title,
.wp-block-query-title {
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.02em;
}

.term-description {
	max-width: 62ch;
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
}

/* Category pages open with a room shot or finish close-up, full width, with
   the category name at the lower left. A faint dark wash from the left keeps
   the white type readable without darkening the product on the right. Lower
   than the homepage hero, so the range stays in view. */
.t-mood {
	position: relative;
	margin: 0;
	height: clamp(260px, 42vh, 460px);
	overflow: hidden;
	background: var(--wp--preset--color--stone);
}

.t-mood + .t-arch {
	margin-top: 0;
}

/* Two classes, to outrank WooCommerce's .woocommerce img { height: auto }. */
.t-mood .t-mood__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 60%;
}

.t-mood::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(18, 18, 19, 0.38) 0%, rgba(18, 18, 19, 0.14) 38%, rgba(18, 18, 19, 0) 62%);
	pointer-events: none;
}

.t-mood__caption {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	padding-bottom: var(--wp--preset--spacing--50);
}

.t-mood__caption h1 {
	margin: 0;
	color: var(--wp--preset--color--paper);
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.t-arch__lead--first {
	margin-top: 0;
}

@media (max-width: 860px) {
	.t-mood {
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.t-mood::after {
		background: linear-gradient(to top, rgba(18, 18, 19, 0.42) 0%, rgba(18, 18, 19, 0) 55%);
	}

	.t-mood__caption {
		padding-bottom: var(--wp--preset--spacing--40);
	}
}

/* Finish swatches on the product page: square crops of the finish itself,
   the current one marked by an ink outline. */
.t-finish {
	margin-block: var(--wp--preset--spacing--30);
}

.t-finish__label {
	margin: 0 0 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-2);
}

.t-finish__label span {
	color: var(--wp--preset--color--ink);
}

.t-finish__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-finish__swatch {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 3px;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-finish__swatch:hover,
.t-finish__swatch:focus-visible {
	border-color: var(--wp--preset--color--ink-2);
}

.t-finish__swatch.is-current {
	border-color: var(--wp--preset--color--ink);
}

.t-finish .t-finish__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.t-finish__name {
	font-size: 11px;
	line-height: 1.1;
	text-align: center;
}

/* In a grid the gate note is the second caption line, not a price. */
.wc-block-product .laverno-b2b-price-hidden {
	font-size: inherit;
	font-weight: 400;
	letter-spacing: 0;
}

/* ---------- Phone pass (see trade.css) ---------- */

@media (max-width: 720px) {
	/* Product grid: name and gate link as full rows to tap. */
	.wc-block-product .wp-block-post-title a {
		display: block;
		padding-block: 0.3rem;
	}

	.wc-block-product .wc-block-components-product-button__button {
		padding-block: 0.4rem;
	}

	/* Breadcrumbs wrap instead of pushing the page sideways, and each crumb
	   is a tappable height. */
	.wc-block-breadcrumbs,
	.woocommerce-breadcrumb {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.woocommerce-breadcrumb a,
	.wp-block-woocommerce-product-meta a {
		display: inline-block;
		padding-block: 0.3rem;
	}

	/* Related products: two to a row, captions flush left like the shop. */
	.wc-block-product-template.is-flex-container > li {
		width: calc(50% - 0.625em);
	}

	.wc-block-product .wp-block-post-title,
	.wc-block-product .wc-block-components-product-price,
	.wc-block-product .wp-block-woocommerce-product-price {
		text-align: left;
		justify-content: flex-start;
	}

	/* Product summary: SKU and category under each other, a smaller tab
	   heading, and all six finishes on one row. */
	.wp-block-woocommerce-product-meta .wp-block-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.woocommerce-Tabs-panel h2 {
		font-size: var(--wp--preset--font-size--x-large);
	}

	.t-finish__swatch {
		width: 40px;
		height: 40px;
	}

	.t-finish__list {
		gap: 0.4rem;
	}
}

/* Pagination: each page number is a 40px square, the current one in ink. */
.wp-block-query-pagination {
	gap: 0.25rem;
	margin-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.wp-block-query-pagination-numbers a.page-numbers:hover {
	background: var(--wp--preset--color--stone);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var(--wp--preset--color--ink);
}

/* ---------------------------------------------------------------------------
 * Product page, laid out as a trade product sheet.
 *
 * Article data under the name, an order panel that reads like a quote line
 * (net price per unit, stock, lead time, shipping), then specifications and
 * documents, and the other finishes as a list with article numbers. No zoom
 * icon, no tabs, no related products grid.
 * ------------------------------------------------------------------------ */

.t-pdp__top {
	gap: var(--wp--preset--spacing--60);
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}

.t-pdp .woocommerce-product-gallery__trigger {
	display: none;
}

/* The dimension drawing is not square like the packshots: frame it square
   so the slide and its thumbnail keep the same size. */
.t-gallery-drawing img,
.t-pdp .flex-control-thumbs img[src*="/maattekeningen/"] {
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--wp--preset--color--paper);
}

.t-gallery-drawing img {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	padding: 8%;
}

.t-sheet__title {
	margin: 0;
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink);
}

.t-sheet__ids {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.75rem;
	margin: 0.9rem 0 1.5rem;
	font-size: var(--wp--preset--font-size--small);
}

.t-sheet__ids > div {
	display: flex;
	gap: 0.45rem;
}

.t-sheet__ids dt {
	color: var(--wp--preset--color--ink-2);
}

.t-sheet__ids dd {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
}

/* The order panel: label and value rows on hairlines, then the order line. */
.t-order {
	margin-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--ink);
}

.t-order__rows {
	margin: 0;
}

.t-order__rows > div {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
	padding-block: 0.8rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
}

.t-order__rows dt {
	color: var(--wp--preset--color--ink-2);
}

.t-order__rows dd {
	margin: 0;
	color: var(--wp--preset--color--ink);
}

.t-order__price .amount {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.t-order__unit {
	margin-inline-start: 0.4em;
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--x-small);
}

.t-order__form {
	margin-top: 1.25rem;
}

/* Stock is a row of the panel; WooCommerce's own line would repeat it. */
.t-order__form .stock {
	display: none;
}

.t-order__form form.cart {
	display: flex !important;
	justify-content: flex-start !important;
	gap: 0.75rem;
	margin: 0 !important;
	padding: 0 !important;
}

/* WooCommerce's clearfix pseudo elements would each take a gap in the row. */
.t-order__form form.cart::before,
.t-order__form form.cart::after {
	display: none !important;
}

.t-order__form form.cart .quantity {
	margin: 0 !important;
}

.t-order__form form.cart .quantity .qty {
	width: 5rem;
	height: 100%;
	min-height: 3rem;
	margin: 0 !important;
}

.t-order__form form.cart .single_add_to_cart_button {
	flex: 1 1 auto !important;
	margin: 0 !important;
	min-height: 3rem;
}

/* For a visitor the panel ends in the login call to action, without the
   box it has elsewhere, so there is not a box inside a box. */
.t-order .laverno-b2b-cta {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.t-order .laverno-b2b-cta__lead {
	color: var(--wp--preset--color--ink-2);
}

/* ---------- Specifications and documents ---------- */

.t-pdp-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--60);
	margin-block: var(--wp--preset--spacing--60);
}

.t-pdp-specs h2,
.t-pdp-variants h2 {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* The spec list is the theme's .t-spec component, with an ink rule on top
   like the documents beside it. */
.t-pdp-specs .t-spec {
	border-top: 1px solid var(--wp--preset--color--ink);
}

.t-pdp-specs .t-spec > dt:first-of-type,
.t-pdp-specs .t-spec > dd:first-of-type {
	border-top: 0;
}

.t-pdp-specs .t-rows {
	border-top: 1px solid var(--wp--preset--color--ink);
}

/* ---------- Dimension drawing ---------- */

.t-pdp-drawing {
	margin-block: var(--wp--preset--spacing--60);
}

.t-pdp-drawing h2 {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	letter-spacing: -0.01em;
}

.t-pdp-drawing__figure {
	margin: 0;
	padding: var(--wp--preset--spacing--50) 0;
	border-top: 1px solid var(--wp--preset--color--ink);
	text-align: center;
}

.t-pdp-drawing__figure img {
	display: block;
	width: 100%;
	max-width: 760px;
	height: auto;
	margin: 0 auto;
}

.t-pdp-drawing__figure figcaption {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--ink-2);
}

/* ---------- Finishes as a list ---------- */

.t-pdp-variants {
	margin-block: var(--wp--preset--spacing--60);
}

.t-variants {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.t-variants th {
	padding: 0.6rem 1rem 0.6rem 0;
	border-bottom: 1px solid var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	color: var(--wp--preset--color--ink-2);
}

.t-variants td {
	padding: 0.5rem 1rem 0.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	vertical-align: middle;
}

.t-variants .is-name a {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-variants .is-name a:hover span {
	text-decoration: underline;
}

.t-variants .is-name img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	mix-blend-mode: multiply;
	flex: none;
}

.t-variants .is-current {
	background: color-mix(in srgb, var(--wp--preset--color--stone) 50%, var(--wp--preset--color--paper));
}

.t-variants .is-current .is-name span {
	font-weight: 500;
}

.t-variants .is-sku {
	color: var(--wp--preset--color--ink-2);
	font-variant-numeric: tabular-nums;
}

.t-variants .is-num {
	padding-right: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

@media (max-width: 860px) {
	.t-pdp-specs {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--50);
	}
}

@media (max-width: 640px) {
	.t-order__rows > div {
		grid-template-columns: 7.5rem minmax(0, 1fr);
	}

	.t-variants .is-sku {
		display: none;
	}

	.t-variants .is-name img {
		width: 44px;
		height: 44px;
	}

	.t-variants .is-name a {
		gap: 0.6rem;
	}
}

/* ---------------------------------------------------------------------------
 * Checkout (templates/page-checkout.html).
 *
 * The full header and footer instead of WooCommerce's bare checkout header,
 * square fields, the order summary on stone, the order button in copper and
 * the trade terms under the summary (patterns/checkout-usps.php).
 * ------------------------------------------------------------------------- */

.t-checkout {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
}

.t-checkout__head {
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.t-checkout__head h1 {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 300;
}

.t-checkout__back {
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--x-small);
	text-decoration: none;
}

.t-checkout__back:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
}

.t-checkout .wc-block-components-checkout-step__title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
}

.t-checkout .wc-block-components-checkout-step {
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Square fields with a hairline, ink when in use. */
.t-checkout .wc-block-components-text-input input,
.t-checkout .wc-block-components-textarea,
.t-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.t-checkout .wc-block-components-combobox .components-combobox-control input,
.t-checkout .wc-block-components-radio-control-accordion-option,
.t-checkout .wc-block-components-radio-control__option-layout,
.t-checkout .wc-block-components-shipping-rates-control__no-results-notice,
.t-checkout .wc-block-components-notice-banner {
	border-radius: 0 !important;
}

.t-checkout .wc-block-components-text-input input,
.t-checkout .wc-block-components-textarea,
.t-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.t-checkout .wc-block-components-combobox .components-combobox-control input {
	border-color: var(--wp--preset--color--line) !important;
}

.t-checkout .wc-block-components-text-input input:focus,
.t-checkout .wc-block-components-textarea:focus,
.t-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.t-checkout .wc-block-components-combobox .components-combobox-control input:focus {
	border-color: var(--wp--preset--color--ink);
	box-shadow: none;
	outline: 1px solid var(--wp--preset--color--ink);
	outline-offset: -2px;
}

.t-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border-radius: 0;
}

/* Order summary on stone, without WooCommerce's rounded border. */
.t-checkout .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--stone);
}

.t-checkout .wc-block-components-checkout-order-summary__title-text,
.t-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
}

.t-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper,
.t-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
.t-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel {
	border-color: var(--wp--preset--color--line);
}

.t-checkout .wc-block-components-checkout-order-summary__title {
	padding-top: var(--wp--preset--spacing--30);
}

.t-checkout .wc-block-components-order-summary-item__image img {
	background: var(--wp--preset--color--paper);
}

.t-checkout .wc-block-components-order-summary-item__quantity {
	border-radius: 0;
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	box-shadow: none;
}

/* The order button: copper, the one place on the checkout it is used. */
.t-checkout .wc-block-components-checkout-place-order-button,
.t-checkout .wc-block-components-checkout-place-order-button:not(:disabled) {
	min-height: 3.25rem;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--copper);
	color: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	box-shadow: none;
}

.t-checkout .wc-block-components-checkout-place-order-button:hover,
.t-checkout .wc-block-components-checkout-place-order-button:focus {
	background: var(--wp--preset--color--copper-2);
	color: var(--wp--preset--color--paper);
}

.t-checkout .wc-block-components-checkout-place-order-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.t-checkout .wc-block-components-checkout-return-to-cart-button {
	color: var(--wp--preset--color--ink-2);
}

/* Trade terms under the summary. */
.t-checkout-usps {
	margin-top: var(--wp--preset--spacing--40);
	padding: 0;
}

.t-checkout-usps ul {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-checkout-usps li {
	display: grid;
	grid-template-columns: 1.1rem minmax(0, 1fr);
	gap: 0.65rem;
	align-items: start;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.t-checkout-usps li svg {
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.1em;
	color: var(--wp--preset--color--copper);
	stroke-width: 2;
}

.t-checkout-usps__help {
	margin: var(--wp--preset--spacing--40) 0 0;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink-2);
	font-size: var(--wp--preset--font-size--x-small);
}

.t-checkout-usps__help a {
	color: var(--wp--preset--color--ink);
}
