/* store: product, shop, checkout and order confirmation templates */

/* the few rules of woocommerce's classic css that product pages still used; its four files don't load on shop or product pages */
.woocommerce div.product {
	position: relative;
}

.woocommerce div.product .woocommerce-tabs {
	clear: both;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	position: relative;
	list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::after {
	content: " ";
	display: table;
	clear: both;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	position: relative;
	z-index: 0;
	display: inline-block;
	color: #515151;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	z-index: 2;
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin-bottom: 2em;
}

.woocommerce div.product form.cart div.quantity {
	float: left;
	vertical-align: middle;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
	vertical-align: middle;
}

.woocommerce img {
	max-width: 100%;
}

.woocommerce table.shop_attributes td {
	line-height: 1.5;
}

@media (min-width: 769px) {
	.woocommerce table.shop_attributes td p {
		padding: 8px 0;
	}
}

@media (max-width: 768px) {
	.woocommerce table.shop_attributes :is(th, td) {
		max-width: 100%;
	}
}

/* phosphor arrow-right, drawn in currentColor through a mask */
.fp-store {
	--fp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E");
}

/* anchors land below the sticky header */
.fp-store [id] {
	scroll-margin-top: calc(var(--fp-header-height) + 1.5rem);
}

.fp-store .woocommerce-breadcrumb {
	margin: 0;
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--custom--font-size--body-s);
}

/* the underline marks the links apart from the grey text by more than colour (wcag 1.4.1) */
.fp-store .woocommerce-breadcrumb a {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--line-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.fp-store .woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration-color: currentColor;
}

/* prices are specs: mono, ink, never red */
.fp-store .wc-block-components-product-price {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-weight: 500;
}

.fp-store .wc-block-components-product-price del {
	color: var(--wp--preset--color--body-grey);
	font-weight: 400;
}

.fp-store .wc-block-components-product-price ins {
	text-decoration: none;
}

.fp-store .woocommerce-price-suffix {
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: var(--wp--custom--font-size--body-s);
	font-weight: 400;
}

/* product: gallery beside the buy box from 1024px */

.wp-block-group.fp-product {
	display: grid;
	gap: 2.5rem;
	margin-block-start: 1.5rem;
}

.wp-block-group.fp-product > * {
	min-width: 0;
	margin: 0;
}

@media (min-width: 1024px) {
	.wp-block-group.fp-product {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 4rem;
		align-items: start;
	}
}

.fp-product .wc-block-product-gallery {
	gap: 1rem;
}

.fp-product .wc-block-product-gallery-large-image {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 28px;
	background: var(--wp--preset--color--white);
}

/* ring on the rounded frame, which clips the list's and the photo's own (thumbnail arrow keys focus the photo) */
.fp-product .wc-block-product-gallery-large-image:has(.wc-block-product-gallery-large-image__container:focus-visible, .wc-block-woocommerce-product-gallery-large-image__image:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.fp-product :is(.wc-block-product-gallery-large-image__container, .wc-block-woocommerce-product-gallery-large-image__image):focus-visible {
	outline: none;
}

/* fill the square frame; woocommerce letterboxes non-square photos with !important */
.fp-product .wc-block-product-gallery-large-image .wc-block-components-product-image--aspect-ratio-auto img {
	object-fit: cover !important;
}

/* five square thumbnails per row whatever the gap; more scroll sideways */
.fp-product .wc-block-product-gallery-thumbnails {
	height: auto;
	aspect-ratio: auto;
}

.fp-product .wc-block-product-gallery-thumbnails__scrollable {
	display: grid;
	grid-auto-columns: calc((100% - 3rem) / 5);
	grid-auto-flow: column;
	gap: 0.75rem;
	/* room for a thumbnail's focus ring inside the scroller's clip, without moving the row */
	margin: -4px;
	padding: 4px;
}

.fp-product .wc-block-product-gallery-thumbnails__thumbnail {
	width: auto;
	height: auto;
}

.fp-product .wc-block-product-gallery-thumbnails__thumbnail__image {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	transition: border-color 0.2s;
}

.fp-product .wc-block-product-gallery-thumbnails__thumbnail__image:hover {
	border-color: var(--wp--preset--color--line-strong);
}

.fp-product .wc-block-product-gallery-thumbnails--active-outline .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	padding: 0;
	border: 2px solid var(--wp--preset--color--ink);
}

/* round arrows inside the image frame */
.fp-product .wc-block-next-previous-buttons {
	box-sizing: border-box;
	padding-inline: 0.75rem;
}

.fp-product .wc-block-next-previous-buttons__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--soft);
	cursor: pointer;
	transition: border-color 0.2s, opacity 0.2s;
}

.fp-product .wc-block-next-previous-buttons__button:hover {
	border-color: var(--wp--preset--color--line-strong);
}

/* hidden after the fade so the dead button leaves the tab order (woocommerce only sets aria-disabled) */
.fp-product .wc-block-next-previous-buttons__button[aria-disabled="true"] {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: border-color 0.2s, opacity 0.2s, visibility 0s 0.2s;
}

.fp-product .wc-block-next-previous-buttons__icon {
	width: 0.875rem;
	height: 0.875rem;
	fill: currentColor;
}

/* buy box */

.wp-block-group.fp-product__summary {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.wp-block-group.fp-product__summary > * {
	margin: 0;
}

.fp-product__summary .wp-block-post-title {
	letter-spacing: -0.005em;
	line-height: 1.1;
}

.fp-product__summary .wc-block-components-product-price {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 1.5rem;
	line-height: 1.3;
}

:is(.fp-product__summary, .fp-shop-card) .wc-block-components-product-summary {
	color: var(--wp--preset--color--body-grey);
}

/* the g2's what's in the box follows add to cart, under a rule */
.fp-product__summary > .wp-block-add-to-cart-form + .wp-block-woocommerce-product-summary:has(.wc-block-components-product-summary > *) {
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

:is(.fp-product__summary, .fp-shop-card) .wc-block-components-product-summary > * {
	margin-block: 0 1rem;
}

:is(.fp-product__summary, .fp-shop-card) .wc-block-components-product-summary > :last-child {
	margin-bottom: 0;
}

/* headings inside the short description read as labels (buy box and the shop's device card) */
:is(.fp-product__summary, .fp-shop-card) .wc-block-components-product-summary :is(h2, h3, h4) {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* short-description lists become a check list */
:is(.fp-product__summary, .fp-shop-card) .wc-block-components-product-summary ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
	gap: 0.5rem 1.5rem;
	padding: 0;
	list-style: none;
}

:is(.fp-product__summary, .fp-shop-card) .wc-block-components-product-summary li {
	position: relative;
	padding-left: 1.75rem;
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
}

:is(.fp-product__summary, .fp-shop-card) .wc-block-components-product-summary li::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 1.125rem;
	height: 1.125rem;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* quantity pill and add to cart */

/* the extra classes beat woocommerce's `.woocommerce div.product form.cart` rules */
.fp-product .fp-product__summary .wp-block-add-to-cart-form form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

/* classic clearfix pseudos would become flex items and inset the row */
.fp-product .fp-product__summary .wp-block-add-to-cart-form form.cart::before,
.fp-product .fp-product__summary .wp-block-add-to-cart-form form.cart::after {
	content: none;
}

/* out-specifies the stepper's own quantity rule (5 classes, 3 elements) */
.fp-product .fp-product__summary .wc-block-add-to-cart-form--stepper form.cart .wc-block-components-quantity-selector.quantity {
	display: flex;
	flex: none;
	align-items: center;
	height: 3rem;
	margin: 0;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
}

/* a focused field inks the pill's edge, like the cart's */
.fp-product .fp-product__summary .wc-block-add-to-cart-form--stepper form.cart .wc-block-components-quantity-selector.quantity:has(input:focus-visible) {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

/* out-specifies woocommerce's stepper input rule (7 classes, 2 elements) */
.fp-product .fp-product__summary .wc-block-add-to-cart-form--stepper .wc-block-components-quantity-selector input[type="number"].input-text.qty.text {
	box-sizing: border-box;
	width: 2.75rem;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 1rem;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.fp-product .fp-product__summary .wc-block-add-to-cart-form--stepper .wc-block-components-quantity-selector input[type="number"].input-text.qty.text:focus {
	box-shadow: none;
	outline: none;
}

/* a 44px tap target that paints a 36px circle, so hover and press sit clear of the pill's edge */
:is(.fp-product__summary, .fp-cart) .wc-block-components-quantity-selector__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.25rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	background-clip: content-box;
	color: var(--wp--preset--color--ink);
	font-size: 1.25rem;
	line-height: 1;
	opacity: 1;
	cursor: pointer;
	transition: background-color 0.15s;
}

/* touch screens keep :hover after a tap, so the tint would stick */
@media (hover: hover) {
	:is(.fp-product__summary, .fp-cart) .wc-block-components-quantity-selector__button:hover {
		background-color: var(--wp--preset--color--tint);
	}
}

:is(.fp-product__summary, .fp-cart) .wc-block-components-quantity-selector__button:active {
	background-color: var(--wp--preset--color--line);
}

/* woocommerce rings the button on every click; only keyboard focus gets a ring, inside the pill */
:is(.fp-product__summary, .fp-cart) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus {
	box-shadow: none;
}

/* the ring traces the 36px circle, clear of the pill's edge */
:is(.fp-product__summary, .fp-cart) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -6px;
	background-color: var(--wp--preset--color--tint);
}

.fp-product__summary .single_add_to_cart_button {
	flex: 1 1 12rem;
	min-height: 3rem;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.2s, background-color 0.2s;
}

.fp-product__summary .single_add_to_cart_button:hover {
	transform: translateY(-1px);
}

.fp-product__summary .single_add_to_cart_button:active {
	transform: scale(0.98);
}

.fp-product__summary .wc-block-components-product-sku {
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* details: woocommerce's own product tabs; a product with nothing to show drops the band */

.fp-product-details:not(:has(.woocommerce-tabs)) {
	display: none;
}

/* a segmented control so the tabs read as pressable; the extra classes beat woocommerce's classic tabs */
.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs {
	display: flex;
	gap: 0.25rem;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 var(--wp--preset--spacing--50);
	padding: 0.25rem;
	overflow: visible;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: rgb(28 25 23 / 0.05);
}

.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs::before,
.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li::before,
.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li::after {
	content: none;
}

/* .active is listed so this also beats woocommerce's white active tab */
.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs :is(li, li.active) {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: none;
}

.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	box-sizing: border-box;
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
	background: rgb(255 255 255 / 0.6);
	color: var(--wp--preset--color--ink);
}

.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
	color: var(--wp--preset--color--ink);
}

/* phones: the track spans the width and tighter labels keep all three on one line from 390px */
@media (max-width: 639px) {
	.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs {
		width: 100%;
	}

	.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li a {
		padding-inline: 0.5rem;
		letter-spacing: 0.04em;
	}
}

@media (max-width: 359px) {
	.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li a {
		font-size: 0.75rem;
	}
}

.fp-product-details .wp-block-woocommerce-product-details .woocommerce-tabs .panel {
	margin: 0;
	padding: 0;
}

/* text on the left, specs on the right, like the reference; a lone column takes the row */
.fp-tab-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: var(--wp--preset--spacing--50) 4rem;
}

.fp-tab-split > * {
	min-width: 0;
}

.fp-tab-split__text {
	max-width: 36rem;
	color: var(--wp--preset--color--body-grey);
}

.fp-tab-split__text > :first-child {
	margin-top: 0;
}

.fp-tab-split__text iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
}

/* specs: label above value on a hairline, two columns when there's room */
.fp-product-details .fp-tab-split__specs table.woocommerce-product-attributes.shop_attributes {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
}

.fp-product-details .fp-tab-split__specs table.woocommerce-product-attributes.shop_attributes tbody {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	column-gap: 2rem;
}

/* specs with no description beside them span the row: wider cells, so 8 specs sit 4 + 4, not 5 + 3 */
.fp-product-details .fp-tab-split__specs:only-child table.woocommerce-product-attributes.shop_attributes tbody {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.fp-product-details .fp-tab-split__specs table.woocommerce-product-attributes.shop_attributes tr {
	display: block;
	padding-block: 0.875rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.fp-product-details .fp-tab-split__specs table.woocommerce-product-attributes.shop_attributes tr :is(th, td) {
	display: block;
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	font-style: normal;
	text-align: left;
}

.fp-product-details .fp-tab-split__specs table.woocommerce-product-attributes.shop_attributes tr th {
	margin-bottom: 0.25rem;
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.fp-product-details .fp-tab-split__specs table.woocommerce-product-attributes.shop_attributes tr td,
.fp-product-details .fp-tab-split__specs table.woocommerce-product-attributes.shop_attributes tr td p {
	margin: 0;
	color: var(--wp--preset--color--ink);
}

/* product cards: shop and related */

/* related products get their own stone band; the section above dips into it on the site's wave */
.fp-related-band {
	--fp-band: var(--wp--preset--color--tint);
	--fp-band-above: var(--wp--preset--color--surface);
	position: relative;
	background: var(--fp-band);
}

/* straight after the (stone) tab band, the colours swap so the two bands stay apart */
.fp-product-details:has(.woocommerce-tabs) + .fp-related-band {
	--fp-band: var(--wp--preset--color--surface);
	--fp-band-above: var(--wp--preset--color--tint);
}

.fp-related-band::before {
	content: "";
	position: absolute;
	top: -1px;
	right: 0;
	left: 0;
	height: clamp(32px, 4vw, 64px);
	background: var(--fp-band-above);
	pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 Q720,160 0,0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 Q720,160 0,0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.wp-block-group.fp-related__head {
	gap: 1rem 2rem;
}

.fp-related__head > *,
.fp-related__head .wp-block-buttons {
	margin: 0;
}

/* a product with nothing related renders no collection, so the band goes too */
.fp-related-band:not(:has(.wc-block-product)) {
	display: none;
}

/* one card everywhere (shop, category pages, related); the grid it sits in decides its shape */
.fp-store .wc-block-product-template.fp-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

.fp-product-grid > li {
	width: auto;
	margin: 0;
}

@media (min-width: 640px) {
	.fp-related .wc-block-product-template.fp-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* shop parts pair up only once a row card can hold a long name */
@media (min-width: 1280px) {
	.fp-shop .wc-block-product-template.fp-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.fp-related .wc-block-product-template.fp-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem;
	}
}

/* post cards show a tile when there's no image; product cards always have one */
.fp-card.fp-shop-card::before {
	content: none;
}

.fp-shop-card .wc-block-components-product-image {
	margin: 0;
	background: var(--wp--preset--color--white);
}

.fp-shop-card .wc-block-components-product-image img {
	display: block;
	width: 100%;
}

.fp-shop-card .fp-card__body {
	padding: 1.5rem;
}

.fp-shop-card .fp-card__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	letter-spacing: -0.005em;
	line-height: 1.2;
}

/* which models a part fits, from its Compatible with attribute; devices have none */
.fp-shop-card .fp-card__fit {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--custom--font-size--body-s);
}

.fp-card__fit:empty,
.fp-product__fit:empty {
	display: none;
}

/* the box list and the details link belong to the shop's device showcase */
.fp-shop-card :is(.fp-card__summary, .fp-card__more) {
	display: none;
}

/* price left, button right, level on the text baseline; wraps under the price when narrow */
.fp-shop-card .fp-card__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.fp-shop-card .fp-card__buy > * {
	margin: 0;
}

.fp-shop-card .wc-block-components-product-price {
	font-size: 1.125rem;
}

/* above the card-wide title link; the block classes out-rank woocommerce's centred, borderless button */
.fp-shop-card .wp-block-button.wc-block-components-product-button {
	position: relative;
	z-index: 1;
	align-items: flex-start;
	gap: 0;
}

.fp-shop-card .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	min-height: 3rem;
	margin: 0;
	padding: 0 28px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.fp-shop-card .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:is(:hover, :focus-visible) {
	border-color: var(--wp--custom--color--outline-hover);
	background: var(--wp--custom--color--outline-hover);
	color: var(--wp--preset--color--white);
}

/* hover lifts through the site's button rule; focus matches it under the press rule's weight, except the shop's red device button */
:where(li:not(.product_cat-pemf)) > .fp-shop-card :where(.wc-block-components-product-button__button):focus-visible {
	transform: translateY(-1px);
}

/* once added, view cart sits centred under the button, set like the notices' view cart */
.fp-shop-card .wc-block-components-product-button > span {
	align-self: center;
}

.fp-shop-card .wc-block-components-product-button .added_to_cart {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.fp-shop-card .wc-block-components-product-button .added_to_cart::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--fp-arrow) center / contain no-repeat;
	mask: var(--fp-arrow) center / contain no-repeat;
	transition: translate 0.2s;
}

.fp-shop-card .wc-block-components-product-button .added_to_cart:hover {
	color: var(--wp--preset--color--accent);
}

.fp-shop-card .wc-block-components-product-button .added_to_cart:hover::after {
	translate: 3px 0;
}

/* set like the outline buttons */
.fp-shop-card .fp-card__more {
	position: relative;
	z-index: 1;
	align-items: center;
	min-height: 3rem;
	padding: 0 28px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.fp-shop-card .fp-card__more:is(:hover, :focus-visible) {
	border-color: var(--wp--custom--color--outline-hover);
	background: var(--wp--custom--color--outline-hover);
	color: var(--wp--preset--color--white);
	transform: translateY(-1px);
}

/* shop parts and accessories: a row card, the photo beside the details like a cart line */
.fp-shop li:not(.product_cat-pemf) .fp-shop-card {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	gap: 1rem;
	padding: 1rem;
}

.fp-shop li:not(.product_cat-pemf) .fp-shop-card .wc-block-components-product-image {
	align-self: start;
	overflow: hidden;
	border-radius: 8px;
}

.fp-shop li:not(.product_cat-pemf) .fp-card__body {
	padding: 0;
}

.fp-shop li:not(.product_cat-pemf) .fp-card__title {
	font-size: var(--wp--preset--font-size--large);
}

@media (min-width: 640px) {
	.fp-shop li:not(.product_cat-pemf) .fp-shop-card {
		grid-template-columns: 10rem minmax(0, 1fr);
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.fp-shop li:not(.product_cat-pemf) .fp-card__title {
		font-size: var(--wp--preset--font-size--x-large);
	}
}

/* shop: device packages take the full row, with what's in the box and the one red button */
.fp-shop li.product_cat-pemf {
	grid-column: 1 / -1;
}

.fp-shop li.product_cat-pemf .fp-card__summary {
	display: block;
}

.fp-shop li.product_cat-pemf .fp-card__more {
	display: inline-flex;
}

.fp-shop li.product_cat-pemf .fp-card__title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.fp-shop li.product_cat-pemf .fp-card__buy {
	justify-content: flex-start;
	padding-top: 1rem;
}

.fp-shop li.product_cat-pemf .fp-card__buy > .wp-block-woocommerce-product-price {
	flex-basis: 100%;
}

.fp-shop li.product_cat-pemf .wc-block-components-product-price {
	font-size: 1.5rem;
}

.fp-shop li.product_cat-pemf .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	border-color: transparent;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.fp-shop li.product_cat-pemf .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:hover {
	background: var(--wp--preset--color--accent-dark);
}

/* phones: the two buttons stack full width */
@media (max-width: 639px) {
	.fp-shop li.product_cat-pemf .fp-card__buy > :not(.wp-block-woocommerce-product-price) {
		flex: 1 1 100%;
	}

	.fp-shop li.product_cat-pemf .fp-card__buy :is(.wc-block-components-product-button__button, .fp-card__more) {
		justify-content: center;
		width: 100%;
	}
}

@media (min-width: 768px) {
	.fp-shop li.product_cat-pemf .fp-shop-card {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
	}

	.fp-shop li.product_cat-pemf .fp-card__body {
		padding: clamp(1.5rem, 4vw, 3.5rem);
	}
}

/* order confirmation */

.wp-block-group.fp-order-head > * {
	margin: 0;
}

.fp-order-head .wc-block-order-confirmation-status h1 {
	margin: 0;
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.08;
}

.fp-order-head .wc-block-order-confirmation-status p {
	max-width: 36rem;
	margin: 1rem 0 0;
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--preset--font-size--large);
}

/* failed payments: "try again" is the page's one primary action */
.fp-order-head .wc-block-order-confirmation-status__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.fp-order-head .wc-block-order-confirmation-status__actions .button {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0 28px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.fp-order-head .wc-block-order-confirmation-status__actions .button:not(:first-child):is(:hover, :focus-visible) {
	border-color: var(--wp--custom--color--outline-hover);
	background: var(--wp--custom--color--outline-hover);
	color: var(--wp--preset--color--white);
	transform: translateY(-1px);
}

.fp-order-head .wc-block-order-confirmation-status__actions .button:first-child {
	border-color: transparent;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.fp-order-head .wc-block-order-confirmation-status__actions .button:first-child:hover {
	background: var(--wp--preset--color--accent-dark);
}

/* order number, date, total, email, payment: a spec strip */
.fp-order-head .wc-block-order-confirmation-summary {
	margin-block-start: var(--wp--preset--spacing--50);
}

.fp-order-head .wc-block-order-confirmation-summary-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1.25rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-order-head .wc-block-order-confirmation-summary-list-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--line-strong);
}

.fp-order-head .wc-block-order-confirmation-summary-list-item__key {
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fp-order-head .wc-block-order-confirmation-summary-list-item__value {
	overflow-wrap: anywhere;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

/* phones: label and value share a row so the five facts stay compact */
@media (max-width: 639px) {
	.fp-order-head .wc-block-order-confirmation-summary-list {
		gap: 0;
	}

	.fp-order-head .wc-block-order-confirmation-summary-list-item {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
		padding-block: 0.75rem;
	}

	.fp-order-head .wc-block-order-confirmation-summary-list-item__value {
		text-align: right;
	}
}

.fp-order-head .wc-block-order-confirmation-create-account {
	border-radius: 16px;
}

.wp-block-group.fp-order {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	margin-block-start: var(--wp--preset--spacing--60);
}

.wp-block-group.fp-order > * {
	min-width: 0;
	margin: 0;
}

.wp-block-group.fp-order__help {
	max-width: 28rem;
}

@media (min-width: 1024px) {
	.wp-block-group.fp-order {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 4rem;
		align-items: start;
	}
}

.fp-order h2,
.fp-order h3 {
	margin-block: 0 1rem;
}

/* the order, its addresses and the help list are white cards; the two addresses sit side by side */
.wp-block-group.fp-order__main {
	display: grid;
	gap: 1.5rem;
}

/* without access to the order the blocks render nothing, so the help card moves up alone */
.wp-block-group.fp-order__main:not(:has(*)) {
	display: none;
}

.fp-order__main > * {
	margin: 0;
}

@media (min-width: 640px) {
	.wp-block-group.fp-order__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fp-order__main > :not(.wc-block-order-confirmation-shipping-wrapper, .wc-block-order-confirmation-billing-wrapper) {
		grid-column: 1 / -1;
	}
}

.fp-order__main > *,
.wp-block-group.fp-order__help {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
}

/* items and totals read like the cart: thumbnail rows, then the summary without a line under every row */
.fp-order .wc-block-order-confirmation-totals table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

.fp-order .wc-block-order-confirmation-totals :is(th, td) {
	padding: 0.375rem 0;
	border: 0;
	text-align: left;
	vertical-align: top;
}

.fp-order .wc-block-order-confirmation-totals :is(th, td):last-child {
	text-align: right;
}

.fp-order .wc-block-order-confirmation-totals thead th {
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fp-order .wc-block-order-confirmation-totals tbody td {
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.fp-order .fp-order-item__image {
	float: left;
	width: 4.5rem;
	height: auto;
	aspect-ratio: 1;
	margin-inline-end: 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	object-fit: cover;
}

.fp-order .wc-block-order-confirmation-totals tbody a {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.fp-order .wc-block-order-confirmation-totals tbody a:hover {
	color: var(--wp--preset--color--accent);
}

.fp-order .wc-block-order-confirmation-totals .product-quantity {
	display: block;
	margin-top: 0.25rem;
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
}

.fp-order .wc-block-order-confirmation-totals .woocommerce-Price-amount {
	font-family: var(--wp--preset--font-family--dm-mono);
	font-weight: 500;
}

.fp-order .wc-block-order-confirmation-totals tfoot :is(th, td) {
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--custom--font-size--body-s);
	font-weight: 400;
}

.fp-order .wc-block-order-confirmation-totals tfoot tr:first-child :is(th, td) {
	padding-top: 1.25rem;
}

.fp-order .wc-block-order-confirmation-totals tfoot tr:last-child :is(th, td) {
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
	font-size: 1.25rem;
	font-weight: 600;
}

.fp-order .wc-block-order-confirmation-totals tfoot tr:first-child:last-child :is(th, td) {
	padding-top: 1.25rem;
	border-top: 0;
}

/* the card is the frame; woocommerce's own box around the address would be a second one */
.fp-order :is(.wc-block-order-confirmation-shipping-address, .wc-block-order-confirmation-billing-address) {
	padding: 0;
	border: 0;
}

.fp-order address,
.fp-order .woocommerce-customer-details--phone {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-style: normal;
	line-height: 1.6;
}

.fp-order .wc-block-order-confirmation-order-note {
	margin-top: 1.25rem;
	border-color: var(--wp--preset--color--line);
	border-radius: 8px;
}

.fp-order__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-order__links li + li {
	border-top: 1px solid var(--wp--preset--color--line);
}

.fp-order__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 2.75rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.fp-order__links a::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--fp-arrow) center / contain no-repeat;
	mask: var(--fp-arrow) center / contain no-repeat;
	transition: translate 0.2s;
}

.fp-order__links a:hover {
	color: var(--wp--preset--color--accent);
}

.fp-order__links a:hover::after {
	translate: 3px 0;
}

/* checkout: a quiet header and footer so the form is the only thing on the page */

.fp-checkout-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
}

.fp-checkout-header__bar {
	min-height: 4.5rem;
}

.fp-checkout-header .wc-block-customer-account a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--custom--font-size--body-s);
	text-decoration: none;
}

.fp-checkout-header .wc-block-customer-account a:hover {
	color: var(--wp--preset--color--accent);
}

.fp-checkout-header .wc-block-customer-account svg {
	width: 1.5rem;
	height: 1.5rem;
}

.fp-checkout > h1 {
	margin-block-end: var(--wp--preset--spacing--50);
}

.fp-checkout .wp-block-woocommerce-checkout {
	padding-top: 0;
}

.fp-checkout-footer {
	padding-block: 2rem;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--body-grey);
}

.fp-checkout-footer p {
	margin: 0;
}

.fp-checkout-footer .fp-checkout-footer__disclaimer {
	margin-block-start: 1rem;
}

.fp-checkout-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	font-size: var(--wp--custom--font-size--body-s);
	list-style: none;
}

.fp-checkout-footer__links a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.fp-checkout-footer__links a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* form left, summary right; the rule runs the full height of the form, like the reference */
@container (min-width: 700px) {
	.fp-checkout .wc-block-checkout__main {
		padding-right: clamp(1.5rem, 5cqi, 4rem);
		border-right: 1px solid var(--wp--preset--color--line);
	}

	.fp-checkout .wc-block-checkout__sidebar {
		top: 2rem;
		padding-left: clamp(1.5rem, 5cqi, 4rem);
	}

	.fp-checkout .wc-block-components-sidebar :is(.wc-block-components-panel, .wc-block-components-totals-coupon, .wc-block-components-totals-item) {
		padding-inline: 0;
	}

	/* the divider already sets the summary apart, so no box around it */
	.fp-checkout .wp-block-woocommerce-checkout-order-summary-block {
		border: 0;
		border-radius: 0;
	}

	/* level with "Contact information" across the divider */
	.fp-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
		margin-top: 0;
	}

	.fp-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
		margin: 0 0 0.5rem;
	}
}

/* woocommerce sizes titles off the medium preset (22px in its themes, 16px here) at a weight Marcellus doesn't have */
.fp-checkout .wc-block-components-title.wc-block-components-title,
.fp-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	line-height: 1.3;
}

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

.fp-checkout .wc-block-components-checkout-step__heading {
	margin-bottom: 0.75rem;
}

.fp-checkout :is(.wc-block-components-checkout-step__description, .wc-block-checkout__terms, .wc-block-components-radio-control__description) {
	color: var(--wp--preset--color--body-grey);
}

/* fields: 8px like the site's other inputs; line-strong keeps the edge above 3:1 on white */
.fp-checkout :is(.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) .wc-block-components-text-input:not(.has-error) :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]),
.fp-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.fp-checkout .wc-block-components-textarea {
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 8px;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

/* under 16px, iOS zooms the page in when the field takes focus; woocommerce sets the order note at 14px */
.fp-checkout .wc-block-components-textarea {
	font-size: 1rem;
}

.fp-checkout :is(.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) .wc-block-components-text-input.has-error :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]) {
	border-radius: 8px;
}

/* focus is a 2px ink edge; red is kept for errors, so a field being typed in never reads as one */
.fp-checkout :is(.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) .wc-block-components-text-input:not(.has-error) :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]):focus,
.fp-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.fp-checkout .wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
	outline: none;
}

.fp-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	padding: 16px 9px 0;
	border-width: 1px;
}

.fp-checkout .wc-block-components-text-input label,
.fp-checkout .wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--wp--preset--color--body-grey);
}

.fp-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
}

.fp-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--white);
}

/* phone: checkout takes us and canada numbers only, so the field leads with +1 and the address country's flag */
.fp-checkout .wc-block-components-address-form .wc-block-components-address-form__phone::before {
	content: "+1";
	position: absolute;
	top: 1px;
	left: 1px;
	/* the input is woocommerce's fixed 50px; the error message below it shares the wrapper */
	height: 48px;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 4.5rem;
	padding-left: 2.625rem;
	border-right: 1px solid var(--wp--preset--color--line);
	background: url("../images/flags/us.svg") 0.875rem center / 1.375rem auto no-repeat;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1;
	pointer-events: none;
}

.fp-checkout .wc-block-components-address-form:has(select[id$="-country"] option[value="CA"]:checked) .wc-block-components-address-form__phone::before {
	background-image: url("../images/flags/ca.svg");
}

/* outweighs woocommerce's focused-and-filled padding (0,5,1), which put the number under the prefix while typing */
.fp-checkout .wc-block-components-form .wc-block-components-address-form .wc-block-components-address-form__phone.wc-block-components-text-input input[type="tel"] {
	padding-left: calc(4.5rem + 12px);
}

.fp-checkout .wc-block-components-address-form .wc-block-components-address-form__phone label {
	left: calc(4.5rem + 10px);
	max-width: calc(100% - 4.5rem - 24px);
}

/* shipping and payment options: separate cards, the chosen one ringed in ink like a focused field */
.fp-checkout .wc-block-components-radio-control--highlight-checked {
	display: grid;
	gap: 0.75rem;
}

.fp-checkout .wc-block-components-radio-control--highlight-checked::after,
.fp-checkout .wc-block-components-radio-control--highlight-checked :is(.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option)::after {
	content: none;
}

.fp-checkout .wc-block-components-radio-control--highlight-checked > :is(.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option) {
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-checkout .wc-block-components-radio-control--highlight-checked > :is(.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option):hover {
	border-color: var(--wp--preset--color--ink);
}

.fp-checkout .wc-block-components-radio-control--highlight-checked > :is(.wc-block-components-radio-control__option--checked-option-highlighted, .wc-block-components-radio-control-accordion-option--checked-option-highlighted),
.fp-checkout .wc-block-components-radio-control--highlight-checked > :is(.wc-block-components-radio-control__option--checked-option-highlighted, .wc-block-components-radio-control-accordion-option--checked-option-highlighted):hover {
	border-color: var(--wp--preset--color--ink);
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.fp-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border-color: var(--wp--preset--color--accent);
}

.fp-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--accent);
}

.fp-checkout .wc-block-components-radio-control__label {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

/* shipping rates compare as one list: service and price line up row to row; the chosen row turns ink */
.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-shipping-rates-control {
	container: fp-rates / inline-size;
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0 1rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option {
	--fp-rate-pad: 0.75rem;
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
	padding: var(--fp-rate-pad) 1rem var(--fp-rate-pad) 3rem;
	border: 0;
	border-radius: 0;
	background: none;
	transition: background-color 0.2s, box-shadow 0.2s;
}

/* dividers are shadows, not borders, so the chosen row covers them cleanly */
.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option + .wc-block-components-radio-control__option {
	box-shadow: inset 0 1px var(--wp--preset--color--line);
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option:first-child {
	border-top-left-radius: 7px;
	border-top-right-radius: 7px;
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option:last-child {
	border-bottom-left-radius: 7px;
	border-bottom-right-radius: 7px;
}

@media (hover: hover) {
	.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option:hover {
		background: var(--wp--preset--color--surface);
	}
}

/* the chosen row goes dark edge to edge, over the frame's 1px border */
.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option.wc-block-components-radio-control__option--checked-option-highlighted {
	z-index: 1;
	background: var(--wp--preset--color--night);
	box-shadow: 0 0 0 1px var(--wp--preset--color--night);
	color: var(--wp--preset--color--on-night);
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__option--checked-option-highlighted :is(.wc-block-components-radio-control__label, .wc-block-components-radio-control__secondary-label, .wc-block-components-formatted-money-amount) {
	color: var(--wp--preset--color--on-night);
}

/* red is under 3:1 on night, so the chosen radio and its focus ring go light */
.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control .wc-block-components-radio-control__option--checked-option-highlighted .wc-block-components-radio-control__input {
	border-color: var(--wp--preset--color--on-night);
	background: transparent;
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control .wc-block-components-radio-control__option--checked-option-highlighted .wc-block-components-radio-control__input:focus-visible {
	outline-color: var(--wp--preset--color--on-night);
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control .wc-block-components-radio-control__option--checked-option-highlighted .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--on-night);
}

/* text fades with the row, so it never flashes light on light */
.fp-checkout .wc-block-checkout__shipping-option :is(.wc-block-components-radio-control__label, .wc-block-components-radio-control__secondary-label, .wc-block-components-formatted-money-amount) {
	transition: color 0.2s;
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__option-layout {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
	row-gap: 0.125rem;
	align-items: baseline;
}

.fp-checkout .wc-block-checkout__shipping-option :is(.wc-block-components-radio-control__label-group, .wc-block-components-radio-control__description-group) {
	display: contents;
}

.fp-checkout .wc-block-checkout__shipping-option :is(.wc-block-components-radio-control__label, .wc-block-components-radio-control__secondary-label) {
	grid-row: 1;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__secondary-label {
	grid-column: -2;
	text-align: right;
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__secondary-description {
	grid-column: 1 / -1;
}

/* the dot stays on the first line when the name wraps */
.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control .wc-block-components-radio-control__input {
	top: calc(var(--fp-rate-pad) + 0.7rem);
	transform: translateY(-50%);
}

/* woocommerce rings the radio on every click; keep the ring for the keyboard, in the site's red */
.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control .wc-block-components-radio-control__input:focus {
	outline: 0;
}

.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control .wc-block-components-radio-control__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

@container fp-rates (min-width: 30rem) {
	.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked {
		column-gap: 1.5rem;
	}

	.fp-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option {
		--fp-rate-pad: 0.875rem;
	}
}

/* live quotes: a status at reading size while one runs (place order's status shares the look), and stale rates fade while the address changes (shipping-rates.js) */
.fp-checkout :is(.fp-rates-status, .fp-order-status) {
	display: grid;
	gap: 0.125rem;
	margin: 0;
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--custom--font-size--body);
	line-height: 1.45;
}

.fp-checkout :is(.fp-rates-status, .fp-order-status) > strong {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.fp-checkout .fp-rates-status > span:empty {
	display: none;
}

/* woocommerce's placeholder and the first quote's status wear the rate list's frame, so nothing jumps when the rates land */
.fp-checkout .wc-block-components-skeleton--checkout-shipping,
.fp-checkout .wc-block-components-checkout-step__content > .fp-rates-status[data-state="loading"] {
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

.fp-checkout .wc-block-components-skeleton--checkout-shipping > .fp-rates-status {
	grid-row: 1;
	grid-column: 1 / -1;
}

/* with shipping hidden until an address is entered, the first quote has no placeholder; the status stands in for "enter a shipping address" */
.fp-checkout .wc-block-components-checkout-step__content:has(> .fp-rates-status) > .wc-block-components-shipping-rates-control__no-shipping-address-message {
	display: none;
}

.fp-checkout .wc-block-components-checkout-step__content > .fp-rates-status[data-state="stale"] {
	margin-bottom: 0.75rem;
}

/* stale rates hold place order, so it looks held the way woocommerce shows its own disabled button */
.fp-checkout .wc-block-components-checkout-place-order-button[aria-disabled="true"] {
	pointer-events: none;
}

.fp-checkout .wc-block-components-checkout-place-order-button[aria-disabled="true"] .wc-block-components-button__text {
	opacity: 0.5;
}

/* the summary's delivery and total come from the same stale rate */
.fp-checkout:has(.wc-block-checkout__shipping-option[data-fp-rates="stale"]) :is(.wc-block-checkout__shipping-option .wc-block-components-shipping-rates-control, .wc-block-components-totals-shipping, .wc-block-components-totals-footer-item) {
	opacity: 0.4;
	transition: opacity 0.2s;
}

/* try again on a failed quote, in the notice's link spot */
.fp-checkout .fp-rates-retry {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.75rem;
}

.fp-checkout .fp-rates-retry > button {
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
	cursor: pointer;
}

@media (hover: hover) {
	.fp-checkout .fp-rates-retry > button:hover {
		color: var(--wp--preset--color--accent);
	}
}

.fp-checkout .fp-rates-retry > button[aria-disabled] {
	color: var(--wp--preset--color--body-grey);
	text-decoration: none;
	cursor: progress;
}

.fp-checkout .fp-rates-retry > [role="status"] {
	color: var(--wp--preset--color--body-grey);
}

/* prices are specs everywhere in the store: mono, ink */
.fp-checkout :is(.wc-block-components-radio-control__secondary-label, .wc-block-components-formatted-money-amount, .wc-block-components-order-summary-item__total-price, .wc-block-components-order-summary-item__individual-prices) {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-weight: 500;
}

/* the unit price is a footnote; the line total is the number that counts */
.fp-checkout .wc-block-components-order-summary-item__individual-prices,
.fp-checkout .wc-block-components-order-summary-item__individual-prices .wc-block-components-formatted-money-amount {
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--custom--font-size--body-s);
	font-weight: 400;
}

/* woocommerce sets both summaries in its 14px preset; 16px matches the form fields beside them */
.fp-checkout :is(.wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-cart-order-summary-block) {
	font-size: var(--wp--preset--font-size--medium);
}

/* summary; on phones it's a card like the site's others (the desktop column drops the box) */
.fp-checkout :is(.wc-block-components-totals-wrapper, .wc-block-components-checkout-order-summary__title) {
	border-color: var(--wp--preset--color--line);
}

.fp-checkout .checkout-order-summary-block-fill {
	border-color: var(--wp--preset--color--line);
	border-radius: 16px;
}

.fp-checkout .wc-block-components-order-summary {
	padding-inline: 0;
}

/* the short description belongs on the product page; here it's name, quantity and price */
.fp-checkout .wc-block-components-order-summary .wc-block-components-product-metadata__description {
	display: none;
}

.fp-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
}

.fp-checkout .wc-block-components-totals-coupon .wc-block-components-panel__content {
	padding-top: 0.75rem;
}

/* apply is secondary: the page's one red pill is place order */
.fp-checkout .wc-block-components-totals-coupon .wc-block-components-totals-coupon__button {
	border: 1px solid var(--wp--preset--color--line-strong);
	background: transparent;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.fp-checkout .wc-block-components-totals-coupon .wc-block-components-totals-coupon__button:not(:disabled):is(:hover, :focus-visible) {
	border-color: var(--wp--custom--color--outline-hover);
	background: var(--wp--custom--color--outline-hover);
	color: var(--wp--preset--color--white);
	transform: translateY(-1px);
}

.fp-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
	width: 64px;
}

.fp-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
	width: 64px;
	max-width: 64px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

.fp-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	border: 0;
	background: var(--wp--preset--color--ink);
	box-shadow: 0 0 0 2px var(--wp--preset--color--surface);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 0.75rem;
}

/* an h3, so outside the sidebar (the phone copy above place order) it would take the heading serif */
.fp-checkout .wc-block-components-product-name {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: var(--wp--custom--font-size--body);
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.4;
	text-decoration: none;
}

/* woocommerce stretches the name to the thumbnail's height, which strands the unit price at its bottom edge */
.fp-checkout .wc-block-components-order-summary-item .wc-block-components-product-name {
	flex-grow: 0;
}

.fp-checkout .wc-block-components-totals-item__label {
	color: var(--wp--preset--color--ink);
}

/* the applied code; woocommerce shrinks it twice, to 10.5px */
.fp-checkout .wc-block-components-totals-discount .wc-block-components-chip__text {
	font-size: var(--wp--preset--font-size--small);
}

.fp-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.fp-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: var(--wp--preset--font-size--x-large);
}

/* place order: the one red pill, full width at the end of the form */
.fp-checkout .wc-block-checkout__actions .wc-block-checkout__actions_row {
	flex-direction: column-reverse;
	align-items: stretch;
	gap: 1rem;
}

.fp-checkout .wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 3.5rem;
}

/* the order's status sits under the button (place-order.js); empty, it gives back the row's gap so nothing moves */
.fp-checkout .fp-order-status {
	text-align: center;
	text-wrap: balance;
}

.fp-checkout .fp-order-status:empty {
	margin-top: -1rem;
}

/* return to cart would leave mid-order, so it steps aside while the status shows; visibility keeps its space, so nothing jumps when it's back */
.fp-checkout:has(.fp-order-status:not(:empty)) .wc-block-components-checkout-return-to-cart-button {
	visibility: hidden;
}

.fp-checkout .wc-block-components-checkout-return-to-cart-button {
	align-self: center;
	color: var(--wp--preset--color--body-grey);
}

.fp-checkout .wc-block-components-checkout-return-to-cart-button:hover {
	color: var(--wp--preset--color--accent);
}

/* notices on every store page (added to cart, coupons, errors): white cards like the option cards; only errors use the red, success stays ink */
/* icon sits on the first line, so a wrapped message on phones doesn't leave it floating mid-card */
.fp-store .wc-block-components-notice-banner {
	align-items: flex-start;
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--custom--font-size--body-s);
}

.fp-store .wc-block-components-notice-banner:is(.is-success, .is-info, .is-default) {
	border-color: var(--wp--preset--color--line);
	background-color: var(--wp--preset--color--white);
}

.fp-store .wc-block-components-notice-banner.is-warning {
	border-color: var(--wp--preset--color--line-strong);
	background-color: var(--wp--preset--color--tint);
}

.fp-store .wc-block-components-notice-banner.is-error {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent-soft);
}

.fp-store .wc-block-components-notice-banner > svg {
	box-sizing: border-box;
	width: 1.5rem;
	height: 1.5rem;
}

.fp-store .wc-block-components-notice-banner:is(.is-success, .is-info, .is-default, .is-warning) > svg {
	background-color: var(--wp--preset--color--ink);
}

.fp-store .wc-block-components-notice-banner.is-error > svg {
	background-color: var(--wp--preset--color--accent);
}

/* woocommerce focuses the notice so screen readers announce it; it isn't a control, so no ring */
.fp-store .wc-block-components-notice-banner:focus-visible {
	outline: none;
}

/* message and link share a row; the link drops under the message when space runs out */
.fp-store .wc-block-components-notice-banner > .wc-block-components-notice-banner__content:has(> :is(.wc-forward, .fp-rates-retry)) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1.5rem;
	padding-right: 0;
}

/* the site's mono label with an arrow, like the order confirmation's links; woocommerce forces the link colour with !important */
.fp-store .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	float: none;
	min-height: 2.75rem;
	margin: -0.625rem 0;
	color: var(--wp--preset--color--ink) !important;
	opacity: 1;
	text-decoration: none;
	white-space: nowrap;
}

.fp-store .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--fp-arrow) center / contain no-repeat;
	mask: var(--fp-arrow) center / contain no-repeat;
	transition: translate 0.2s;
}

.fp-store .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover {
	color: var(--wp--preset--color--accent) !important;
}

.fp-store .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover::after {
	translate: 3px 0;
}

/* under the page title, one title-gap above the cart or form */
.fp-checkout .wc-block-store-notices {
	margin-block-end: var(--wp--preset--spacing--50);
}

.fp-checkout .wc-block-store-notices .wc-block-components-notice-banner {
	margin: 0;
}

.fp-checkout .wc-block-store-notices .wc-block-components-notice-banner + .wc-block-components-notice-banner {
	margin-top: 0.75rem;
}

/* cart: the step before checkout. its main carries .fp-checkout too, so fields, totals, coupon and prices match */

@container (min-width: 700px) {
	.fp-cart .wc-block-cart__main {
		padding-right: clamp(1.5rem, 5cqi, 4rem);
		border-right: 1px solid var(--wp--preset--color--line);
	}

	.fp-cart .wc-block-cart__sidebar {
		padding-left: clamp(1.5rem, 5cqi, 4rem);
	}

	.fp-cart .wc-block-cart__main .wc-block-cart-items,
	.fp-cart .wc-block-cart__main .wc-block-cart-items td {
		border-color: var(--wp--preset--color--line);
	}

	/* rows start and end on the column edges, like everything else on the page */
	.fp-cart .wc-block-cart__main .wc-block-cart-items :is(th, td):first-child {
		padding-left: 0;
	}

	.fp-cart .wc-block-cart__main .wc-block-cart-items :is(th, td):last-child {
		padding-right: 0;
	}
}

/* phones: woocommerce's fixed 132px middle track pushes the totals past the edge */
@container (max-width: 699px) {
	.fp-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 80px minmax(0, 1fr) auto;
	}

	.fp-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
		grid-column: 2;
	}

	/* only as tall as the price: the quantity pill spills into this column and its remove button sat under the cell */
	.fp-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
		grid-column: 3;
		align-self: start;
		padding-left: 0.75rem;
	}

	/* woocommerce hides the summary title on phones; the checkout's phone card keeps it, so this does too */
	.fp-cart .wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title {
		display: block;
		padding-top: var(--wp--preset--spacing--40);
	}
}

/* "Order summary", set like the checkout's */
.fp-cart .wc-block-cart .wc-block-cart__totals-title {
	padding: 0 0 0.5rem;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	line-height: 1.3;
	text-transform: none;
}

/* column labels read as specs, like the order confirmation's */
.fp-cart table.wc-block-cart-items .wc-block-cart-items__header {
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	letter-spacing: 0.1em;
}

/* th centres by default, which set "Product" off the column edge */
.fp-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-image {
	width: 96px;
	text-align: left;
}

.fp-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

.fp-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	margin-bottom: 0.25rem;
	font-size: var(--wp--custom--font-size--body);
}

.fp-cart a.wc-block-components-product-name:hover {
	color: var(--wp--preset--color--accent);
}

/* same footnote unit price as the checkout summary */
.fp-cart .wc-block-cart-item__prices,
.fp-cart .wc-block-cart-item__prices .wc-block-components-formatted-money-amount {
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--custom--font-size--body-s);
	font-weight: 400;
}

.fp-cart .wc-block-cart-items .wc-block-components-product-metadata__description {
	display: none;
}

.fp-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
	font-size: var(--wp--custom--font-size--body);
}

/* the product page's quantity pill; its round buttons are shared rules above */
.fp-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	align-items: center;
	width: auto;
	height: 3rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
}

.fp-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector:has(input:focus-visible) {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.fp-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	flex: none;
	width: 2.5rem;
	min-width: 0;
	padding: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 1rem;
}

.fp-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus {
	box-shadow: none;
	outline: none;
}

.fp-cart .wc-block-components-quantity-selector > .wc-block-components-quantity-selector__button {
	border-radius: 50%;
}

/* remove: a 44px round icon button beside the pill, like its +/- buttons */
.fp-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	color: var(--wp--preset--color--body-grey);
	transition: background-color 0.15s, color 0.15s;
}

@media (hover: hover) {
	.fp-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover {
		background: var(--wp--preset--color--tint);
		color: var(--wp--preset--color--accent);
	}
}

/* proceed to checkout: the same full-width pill as place order */
.fp-cart .wc-block-cart__submit-button {
	min-height: 3.5rem;
}

/* phones pin the button to the bottom of the screen (woocommerce's 782px): page colours and gutter, and under the header (50) so the menu drawer covers it */
@media (max-width: 782px) {
	.fp-cart .wc-block-cart .wc-block-cart__submit-container--sticky {
		z-index: 40;
		padding-inline: var(--wp--style--root--padding-left);
		border-top: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--surface);
	}
}

.fp-cart .wp-block-woocommerce-empty-cart-block {
	max-width: 36rem;
	margin-inline: auto;
}

/* an empty cart (functions.php) keeps its empty state and height while the cart script starts */
.wp-block-woocommerce-cart.fp-cart--empty {
	min-height: 11.75rem;
}

/* only until real rows arrive: the class stays if the cart fills without a reload (another tab, back button) */
.wp-block-woocommerce-cart.fp-cart--empty > .wp-block-woocommerce-filled-cart-block:not(:has(.wc-block-cart-item__remove-link)) {
	display: none;
}

.wp-block-woocommerce-cart.is-loading.fp-cart--empty > .wp-block-woocommerce-empty-cart-block {
	display: block;
}

@media (min-width: 600px) {
	.wp-block-woocommerce-cart.fp-cart--empty {
		min-height: 10.25rem;
	}
}

.fp-cart .fp-cart-empty__lead {
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

.fp-cart .wp-block-woocommerce-empty-cart-block .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40);
}

@media (prefers-reduced-motion: reduce) {
	.fp-product__summary .single_add_to_cart_button,
	.fp-order__links a::after,
	.fp-checkout .wc-block-components-radio-control--highlight-checked > *,
	.fp-checkout:has(.wc-block-checkout__shipping-option[data-fp-rates="stale"]) :is(.wc-block-checkout__shipping-option .wc-block-components-shipping-rates-control, .wc-block-components-totals-shipping, .wc-block-components-totals-footer-item),
	.fp-cart .wc-block-cart-item__remove-link,
	.fp-shop-card .wc-block-components-product-button .added_to_cart::after,
	.fp-store .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward::after {
		transition: none;
	}

	.fp-product__summary .single_add_to_cart_button:hover,
	.fp-product__summary .single_add_to_cart_button:active,
	:where(li:not(.product_cat-pemf)) > .fp-shop-card :where(.wc-block-components-product-button__button):focus-visible,
	.fp-shop-card .fp-card__more:is(:hover, :focus-visible),
	.fp-order-head .wc-block-order-confirmation-status__actions .button:not(:first-child):is(:hover, :focus-visible),
	.fp-checkout .wc-block-components-totals-coupon .wc-block-components-totals-coupon__button:not(:disabled):is(:hover, :focus-visible),
	.fp-order__links a:hover::after,
	.fp-shop-card .wc-block-components-product-button .added_to_cart:hover::after,
	.fp-store .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover::after {
		transform: none;
		translate: none;
	}
}
