/* Product detail template. Native WooCommerce content remains editable. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product {
	--wpdef-pdp-width: 1120px;
	--wpdef-pdp-ink: var(--wp--custom--color--ink);
	--wpdef-pdp-muted: var(--wp--preset--color--muted);
	--wpdef-pdp-blue: var(--wp--preset--color--accent);
	--wpdef-pdp-line: var(--wp--custom--color--line-1);
	/* Height of the main gallery image as a share of its width: 0.75 is 4:3, the 1200 x 900 of the catalog cards and thumbnails. */
	--wpdef-pdp-image-height: 0.75;
	color: var(--wpdef-pdp-ink);
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product {
	margin-block-start: 0;
	padding-block: 0 !important;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product > .alignfull { margin-block: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero-band,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details-band,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related-band {
	padding-inline: max(24px, calc((100% - var(--wpdef-pdp-width)) / 2));
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero-band {
	background: linear-gradient(115deg, var(--wp--preset--color--background), var(--wp--custom--color--surface-2) 70%, var(--wp--custom--color--surface-1));
	padding-block: 18px 36px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero-band > .alignwide,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details-band > .alignwide,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related-band > .alignwide {
	max-width: var(--wpdef-pdp-width);
	width: 100%;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-breadcrumbs,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-breadcrumb {
	color: var(--wpdef-pdp-muted);
	font-size: 12px;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-breadcrumb a { color: inherit; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-store-notices:empty { display: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero {
	align-items: flex-start;
	display: grid;
	gap: 44px;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	margin-block: 20px 0;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero > .wp-block-column {
	margin: 0;
	min-width: 0;
}

/* Reset the classic gallery's floated 48% width and nested frames. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-product-image-gallery {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
	max-width: none;
	padding: 0;
	position: relative;
	width: 100%;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
	background: transparent;
	border: 0;
	float: none;
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100% !important;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery .flex-viewport,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery__image {
	background: var(--wp--custom--color--surface-2);
	border-radius: 8px;
	overflow: hidden;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery__image > a { display: block; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery__image > a > img {
	aspect-ratio: 1 / var(--wpdef-pdp-image-height);
	display: block;
	height: auto;
	object-fit: contain;
	width: 100%;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-product-image-gallery .onsale {
	background: var(--wp--preset--color--error);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 750;
	inset: 12px auto auto 12px;
	line-height: 1.5;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 4px 10px;
	z-index: 3;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	background: var(--wp--preset--color--white);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--wp--custom--color--ink) 9%, transparent);
	height: 34px;
	inset: 12px 12px auto auto;
	width: 34px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin: 14px 0 0;
	overflow-x: auto;
	padding: 2px;
	scroll-snap-type: x mandatory;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 calc((100% - 40px) / 5);
	float: none;
	margin: 0;
	scroll-snap-align: start;
	width: auto;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery .flex-control-thumbs img {
	aspect-ratio: 4 / 3;
	border: 2px solid transparent;
	border-radius: 6px;
	object-fit: cover;
	opacity: 0.8;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--secondary);
	opacity: 1;
}
/* WooCommerce clears the thumbnails' margin with a more specific selector, which left them touching the main image. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery.images .flex-control-thumbs { margin-top: var(--wp--preset--spacing--30); }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
/* The arrows are centred on the main image: its middle sits at half its height, a share of the gallery width, and margin percentages follow that width. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-direction-nav a {
	align-items: center;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wpdef-pdp-line);
	border-radius: 50%;
	box-shadow: 0 2px 10px color-mix(in srgb, var(--wp--custom--color--ink) 14%, transparent);
	color: var(--wpdef-pdp-blue);
	display: flex;
	font-size: 0;
	height: 44px;
	justify-content: center;
	margin-top: calc(100% * var(--wpdef-pdp-image-height) / 2 - 22px);
	position: absolute;
	text-decoration: none;
	top: 0;
	transition: background-color 160ms ease, color 160ms ease;
	width: 44px;
	z-index: 4;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-direction-nav a::before {
	background-color: currentColor;
	content: '';
	height: 20px;
	mask: url('../images/product-chevron.svg') center / contain no-repeat;
	width: 20px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-direction-nav .flex-next::before { transform: scaleX(-1); }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-direction-nav a:hover {
	background: var(--wpdef-pdp-blue);
	border-color: var(--wpdef-pdp-blue);
	color: var(--wp--preset--color--white);
}
/* A white ring under the outline keeps the focus visible on light and dark images. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-direction-nav a:focus-visible {
	box-shadow: 0 0 0 3px var(--wp--preset--color--white);
	outline: 3px solid var(--wp--preset--color--secondary);
	outline-offset: 3px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-prev { left: 12px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-next { right: 12px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-disabled { visibility: hidden; }

/* Product metadata beneath the gallery. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta { margin-top: 22px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-inner {
	display: grid;
	gap: 0;
	grid-template-columns: 1.2fr 1fr 1.35fr;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-item {
	margin: 0;
	min-width: 0;
	padding: 0 12px 0 25px;
	position: relative;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-item + .wpdef-single-product__meta-item {
	border-inline-start: 1px solid var(--wpdef-pdp-line);
	padding-inline-start: 34px;
}
.wpdef-single-product__meta-item::before,
.wpdef-single-product__benefit::before {
	background-color: var(--wp--preset--color--secondary);
	content: '';
	display: block;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}
.wpdef-single-product__meta-item::before { height: 16px; inset: 1px auto auto 0; position: absolute; width: 16px; }
.wpdef-single-product__meta-item + .wpdef-single-product__meta-item::before { inset-inline-start: 12px; }
.wpdef-single-product__meta-category::before { mask-image: url('../images/product-category.svg'); }
.wpdef-single-product__meta-sku::before { mask-image: url('../images/product-barcode.svg'); }
.wpdef-single-product__meta-tags::before { mask-image: url('../images/product-tag.svg'); }
.wpdef-single-product__meta-brand::before { mask-image: url('../images/product-brand.svg'); }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-item > p:first-child {
	color: var(--wpdef-pdp-muted);
	font-size: 12px;
	line-height: 1.4;
	margin: 0 0 4px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-item .wp-block-post-terms {
	color: var(--wpdef-pdp-muted);
	font-size: 12px;
	line-height: 1.6;
	margin: 0;
	overflow-wrap: anywhere;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-item a { color: inherit; text-decoration: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-item a:hover { text-decoration: underline; }
/* A product without a brand shows the three other details in their usual row. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-brand:not(:has(.wp-block-post-terms)) { display: none; }
/* With a brand, the four details sit in two rows of two at every width, so long names and tags keep a single line where possible. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-inner:has(> .wpdef-single-product__meta-brand .wp-block-post-terms) { gap: 16px 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-inner:has(> .wpdef-single-product__meta-brand .wp-block-post-terms) > .wpdef-single-product__meta-sku { border-inline-start: 0; padding-inline-start: 25px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-inner:has(> .wpdef-single-product__meta-brand .wp-block-post-terms) > .wpdef-single-product__meta-sku::before { inset-inline-start: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-inner:has(> .wpdef-single-product__meta-brand .wp-block-post-terms) > .wpdef-single-product__meta-tags { border-inline-start: 1px solid var(--wpdef-pdp-line); grid-column: auto; padding-inline-start: 34px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-inner:has(> .wpdef-single-product__meta-brand .wp-block-post-terms) > .wpdef-single-product__meta-tags::before { inset-inline-start: 12px; }

/* Compact purchase panel. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__summary > * { margin-block: 0 14px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__category { font-size: 12px; margin-bottom: 12px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__category a {
	background: var(--wp--custom--color--surface-3);
	border-radius: 999px;
	color: var(--wp--preset--color--secondary);
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	text-decoration: none;
	text-transform: uppercase;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__title {
	color: var(--wpdef-pdp-ink);
	font-size: clamp(27px, 2.8vw, 36px);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0 0 12px;
	max-width: 19ch;
	overflow-wrap: normal;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__rating { font-size: 13px; margin-bottom: 18px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__rating a { color: var(--wp--preset--color--muted); font-size: 12px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .star-rating span::before,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wc-block-components-product-rating__stars span::before { color: var(--wp--preset--color--rating); }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__price {
	align-items: center;
	color: var(--wp--custom--color--ink);
	display: flex;
	flex-wrap: wrap;
	font-size: 28px;
	font-weight: 750;
	gap: 8px;
	line-height: 1.25;
	margin: 0 0 12px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__price .wc-block-components-product-price { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__price ins { order: -1; text-decoration: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__price del { color: var(--wp--preset--color--muted); font-size: 13px; font-weight: 400; }

:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__excerpt { color: var(--wpdef-pdp-muted); font-size: 14px; line-height: 1.6; margin-bottom: 18px; max-width: 48ch; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__excerpt p { margin: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form { border-top: 1px solid var(--wpdef-pdp-line); margin: 18px 0; padding-top: 18px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .stock { color: var(--wp--preset--color--success); font-size: 12px; margin: 0 0 10px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart { margin: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart::before,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart::after,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-variation-add-to-cart::before,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-variation-add-to-cart::after { display: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.grouped_form { display: block; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart:not(.grouped_form):not(.variations_form),
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-variation-add-to-cart {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .quantity { float: none; flex: 0 0 116px; margin: 0; width: 116px; }
/* The theme shows the quantity label above its field, so the button lines up with the field rather than the label. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .quantity:has(.wpdef-quantity-label) { display: block; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .wpdef-quantity-label { color: var(--wpdef-pdp-muted); display: block; font-size: 13px; font-weight: 650; line-height: 1.4; margin: 0 0 6px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart:not(.grouped_form):not(.variations_form):has(.wpdef-quantity-label),
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-variation-add-to-cart:has(.wpdef-quantity-label) { align-items: flex-end; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .quantity .qty {
	background: white;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	color: var(--wp--preset--color--accent);
	font-size: 14px;
	height: 44px;
	line-height: 1;
	margin: 0;
	max-width: none;
	min-height: 0;
	padding: 4px;
	text-align: center;
	width: 100%;
}

:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button {
	align-items: center;
	background: linear-gradient(100deg, var(--wp--preset--color--secondary), var(--wp--preset--color--accent));
	border: 1px solid transparent;
	border-radius: 6px;
	color: white;
	display: inline-flex;
	flex: 1;
	float: none;
	font-size: 13px;
	font-weight: 650;
	gap: 9px;
	justify-content: center;
	line-height: 1.4;
	min-height: 44px;
	padding: 11px 18px;
	text-align: center;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button::before {
	background: currentColor;
	content: '';
	height: 17px;
	mask: url('../images/product-cart.svg') center / contain no-repeat;
	width: 17px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button:hover { background: var(--wp--custom--color--ink); color: white; }
/* Until a variation is chosen, drop the gradient so the shared disabled colours in style.css show. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart .single_add_to_cart_button:is(.disabled, :disabled) { background-image: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .variations { margin-bottom: 14px; width: 100%; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .variations td,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .variations th { padding: 6px 8px 6px 0; }
/* Each label matches the height of its select, so it stays level with it even
   when the last cell also holds the Clear link below the select. The form
   classes outrank WooCommerce, which centres the label in the whole cell. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form form.cart .variations th { vertical-align: top; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .variations select { min-height: 3.25rem; width: 100%; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .variations th label { align-items: center; display: flex; margin: 0; min-height: 3.25rem; }

/* Preserve separate quantities for grouped products, without the oversized table. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list tbody { display: block; margin: 0; width: 100%; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list tr {
	align-items: center;
	border: 0;
	border-bottom: 1px solid var(--wpdef-pdp-line);
	display: grid;
	gap: 4px 16px;
	grid-template-columns: minmax(0, 1fr) 116px;
	margin: 0;
	padding: 10px 0;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list tr:first-child { padding-top: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list td { border: 0; display: block; margin: 0; min-width: 0; padding: 0; width: auto; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .woocommerce-grouped-product-list-item__quantity { grid-column: 2; grid-row: 1 / 3; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .woocommerce-grouped-product-list-item__label { grid-column: 1; grid-row: 1; font-size: 13px; line-height: 1.4; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .woocommerce-grouped-product-list-item__label a { color: var(--wpdef-pdp-ink); font-size: 13px; font-weight: 650; line-height: 1.4; text-decoration: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .woocommerce-grouped-product-list-item__label a:hover { text-decoration: underline; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .woocommerce-grouped-product-list-item__price { color: var(--wpdef-pdp-blue); font-size: 13px; grid-column: 1; grid-row: 2; text-align: start; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .woocommerce-grouped-product-list-item__price ins { font-weight: 700; text-decoration: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .woocommerce-grouped-product-list-item__price del { color: var(--wpdef-pdp-muted); font-size: 12px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list .stock { display: inline; font-size: 12px; margin-inline-start: 8px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .single_add_to_cart_button { margin-top: 14px; width: 100%; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__benefits { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__benefit { align-items: center; color: var(--wp--preset--color--muted); display: flex; flex: 1 1 auto; font-size: 12px; gap: 7px; line-height: 1.4; margin: 0; }
.wpdef-single-product__benefit::before { flex: 0 0 18px; height: 18px; width: 18px; }
.wpdef-single-product__benefit--secure::before { mask-image: url('../images/product-shield.svg'); }
.wpdef-single-product__benefit--shipping::before { mask-image: url('../images/product-truck.svg'); }
.wpdef-single-product__benefit--support::before { mask-image: url('../images/product-headset.svg'); }

/* Native product description, attributes and reviews. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details-band { background: white; padding-block: 20px 30px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details { margin: 0; }
/* Tabs wrap onto a second line instead of scrolling sideways, which hid the last tab on narrow screens and at 400% zoom. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs { border: 0; border-bottom: 1px solid var(--wpdef-pdp-line); display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 0 0 22px; overflow: visible; padding: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs::before,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li::before,
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li::after { display: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; flex: 0 0 auto; margin: 0; padding: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li a { border-bottom: 2px solid transparent; color: var(--wpdef-pdp-muted); display: block; font-size: 13px; font-weight: 650; min-height: 44px; padding: 13px 2px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li.active a { border-color: var(--wp--preset--color--secondary); color: var(--wpdef-pdp-ink); }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details .woocommerce-Tabs-panel { color: var(--wpdef-pdp-muted); font-size: 14px; line-height: 1.75; margin: 0; padding: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-Tabs-panel h2 { color: var(--wpdef-pdp-ink); font-size: 22px; line-height: 1.3; margin: 0 0 14px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-Tabs-panel--description > :where(p, ul, ol) { max-width: 75ch; }

/* Related products wrap in a grid, so every card is reachable without a scrolling box. */
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related-band { background: var(--wp--preset--color--background); padding-block: 26px 32px; }
/* A product without upsells shows no section. The Site Editor keeps it visible so the template can still be edited. */
.wp-site-blocks .wpdef-main--single-product .wpdef-single-product__upsells-band:not(:has(.wc-block-product)) { display: none; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related { margin: 0 auto; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related-heading { margin: 0 0 18px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products__title { color: var(--wpdef-pdp-ink); font-size: 22px; line-height: 1.25; margin: 0 0 4px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related-lead { color: var(--wpdef-pdp-muted); font-size: 12px; line-height: 1.5; margin: 0; }

:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products > .wc-block-product-template {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 2px 2px 12px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products > .wc-block-product-template > li { margin: 0; max-width: none; min-width: 0; width: auto; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card { background: white; border: 1px solid var(--wp--custom--color--surface-3); border-radius: 8px; box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--custom--color--ink) 6%, transparent); height: 100%; overflow: hidden; padding: 0 !important; position: relative; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card__media img { aspect-ratio: 4 / 3; object-fit: cover; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card__body { gap: 5px; padding: 12px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card__category { inset: 10px auto auto 10px; max-width: calc(100% - 20px); position: absolute; z-index: 2; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card__category a {
	align-items: center;
	background: var(--wp--preset--color--background);
	border-radius: 999px;
	box-sizing: border-box;
	color: var(--wp--preset--color--accent);
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	min-height: 28px;
	min-width: 28px;
	padding: 3px 8px;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card__title { font-size: 14px; line-height: 1.4; margin: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wp-block-woocommerce-product-rating { font-size: 12px; margin: 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card__price { font-size: 16px; margin: 3px 0; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products .wpdef-product-card__action .wp-block-button__link { font-size: 12px; min-height: 40px; padding: 10px 8px; }
:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product :where(a, button, input, select):focus-visible { outline: 2px solid var(--wp--preset--color--secondary); outline-offset: 3px; }

@media (max-width: 900px) {
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero { gap: 28px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__title { font-size: 28px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-inner { grid-template-columns: 1fr 1fr; gap: 14px 0; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-tags { grid-column: 1 / -1; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-tags.wpdef-single-product__meta-item { border: 0; padding-inline-start: 25px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta-tags::before { inset-inline-start: 0; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products > .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero-band,
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details-band,
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related-band { padding-inline: 20px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero { gap: 28px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__title { font-size: 30px; max-width: 23ch; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__meta { margin-top: 18px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__benefits { gap: 12px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__benefit { flex: 0 1 auto; font-size: 12px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products > .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__hero-band,
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__details-band,
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-single-product__related-band { padding-inline: 16px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list tr { gap: 5px 12px; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table.woocommerce-grouped-product-list .stock { display: block; margin: 3px 0 0; }
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wpdef-related-products > .wc-block-product-template { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger { height: 44px; width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product * { scroll-behavior: auto; }
}
/* The arrow icons are painted with a background, which forced-colours modes override, so repaint them with the link colour. */
@media (forced-colors: active) {
	:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .flex-direction-nav a::before { background-color: LinkText; }
}

:is(.wp-site-blocks, .editor-styles-wrapper) .wpdef-main--single-product .wp-block-woocommerce-add-to-cart-form .grouped_form .group_table label:not(.screen-reader-text) { margin: 0; }
