/* Generated by astro-product/scripts/sync-core.mjs from packages/foundation/components/product-gallery. Do not edit. */
/**
 * product-gallery: WooCommerce's Product Gallery block (large image, previous/next buttons, thumbnail strip).
 * Measured in new-woocommerce.sketch, Shop Product Detail: a 720×458 image (3:2 here, WooCommerce's preset), 25 below
 * it a strip of four 180×114 thumbnails without gaps, white 30×30 previous/next squares stacked in a corner (the next
 * one on top). The rules repeat the layout of WooCommerce's block styles so the reference (without them) matches;
 * those styles sit in :where(), so the root class wins.
 */
.rt-product-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--rt-spacing-40);
}

/* Large image: every image sits in a horizontal scroll container; WooCommerce scrolls to the selected one. */
.rt-product-gallery .wc-block-product-gallery-large-image {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: var(--rt-product-gallery-surface);
}

.rt-product-gallery .wc-block-product-gallery-large-image__container {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	/* WooCommerce: a scroll-snap row (product-gallery.js scrolls it), its scrollbar hidden */
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.rt-product-gallery .wc-block-product-gallery-large-image__container::-webkit-scrollbar {
	display: none;
}

.rt-product-gallery .wc-block-product-gallery-large-image__wrapper {
	scroll-snap-align: start;
	display: flex;
	flex-shrink: 0;
	min-width: 100%;
	max-width: 100%;
	margin: 0;
	aspect-ratio: var(--wc-block-product-gallery-large-image-ratio-width, 3) / var(--wc-block-product-gallery-large-image-ratio-height, 2);
}

.rt-product-gallery .wc-block-product-gallery-large-image .wc-block-components-product-image {
	width: 100%;
	height: 100%;
	margin: 0;
}

.rt-product-gallery .wc-block-product-gallery-large-image img {
	display: block;
	width: 100%;
	height: 100%;
	mix-blend-mode: multiply;
}

/* Previous/next squares, flush with the large image's bottom right corner, the next one on top. */
.rt-product-gallery .wc-block-product-gallery-large-image__inner-blocks {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.rt-product-gallery .wc-block-next-previous-buttons {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 0;
	width: 100%;
	height: 100%;
}

.rt-product-gallery .wc-block-next-previous-buttons__button {
	display: grid;
	place-items: center;
	position: relative;
	z-index: 2;
	width: 1.875rem;
	height: 1.875rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--rt-product-gallery-arrow);
	color: var(--rt-product-gallery-arrow-icon);
	cursor: pointer;
	pointer-events: auto;
}

/* WooCommerce's chevrons have no viewBox, so they are scaled rather than resized (8×12 to 6×9). */
.rt-product-gallery .wc-block-next-previous-buttons__icon {
	padding: 0;
	scale: 0.75;
}

.rt-product-gallery .wc-block-next-previous-buttons__button[aria-disabled="true"] {
	cursor: not-allowed;
}

.rt-product-gallery .wc-block-next-previous-buttons__button[aria-disabled="true"] .wc-block-next-previous-buttons__icon {
	opacity: 0.3;
}

/*
 * Thumbnail strip: four 3:2 thumbnails fill the width (the strip's ratio follows the block's thumbnail size, 25% by
 * default); more images scroll.
 */
.rt-product-gallery .wc-block-product-gallery-thumbnails {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 0;
	overflow: hidden;
	aspect-ratio: calc(150 / var(--wc-block-product-gallery-thumbnails-size, 25)) / 1;
}

.rt-product-gallery .wc-block-product-gallery-thumbnails__scrollable {
	display: flex;
	flex-direction: row;
	gap: 0;
	height: 100%;
	overflow: auto hidden;
	scrollbar-width: none;
}

.rt-product-gallery .wc-block-product-gallery-thumbnails__thumbnail {
	display: flex;
	flex: 0 0 auto;
	height: 100%;
	background: var(--rt-product-gallery-surface);
}

.rt-product-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	display: block;
	width: auto;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	cursor: pointer;
}

.rt-product-gallery .wc-block-product-gallery-thumbnails--active-overlay .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	filter: brightness(0.8);
	cursor: default;
}

/* Phones: WooCommerce swipes between images, hides the arrows and makes the strip 5:1 (it scrolls). */
@media (width <= 37.5rem) {
	.rt-product-gallery .wc-block-next-previous-buttons {
		display: none;
	}

	.rt-product-gallery .wc-block-product-gallery-thumbnails {
		aspect-ratio: 5 / 1;
	}
}

/*
 * WooCommerce's full-screen view (product-gallery.js, a click on the large image): a white page over everything with
 * the close button at the top end and the images under each other, 8px apart; the page under it does not scroll.
 */
.rt-has-gallery-dialog body {
	overflow: hidden;
}

.rt-product-gallery .rt-product-gallery__dialog {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: var(--rt-color-base);
	color: var(--rt-color-contrast);
}

.rt-product-gallery .rt-product-gallery__dialog:focus {
	outline: none;
}

.rt-product-gallery .rt-product-gallery__dialog[open] {
	display: flex;
	flex-direction: column;
}

.rt-product-gallery .rt-product-gallery__dialog .wc-block-product-gallery-dialog__header {
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	padding: 14px;
}

.rt-product-gallery .rt-product-gallery__dialog .wc-block-product-gallery-dialog__close-button {
	display: flex;
	padding: 4px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.rt-product-gallery .rt-product-gallery__dialog .wc-block-product-gallery-dialog__close-button svg {
	fill: currentColor;
}

.rt-product-gallery .rt-product-gallery__dialog .wc-block-product-gallery-dialog__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-height: 0;
	padding: 0 8px;
	overflow-y: auto;
}

.rt-product-gallery .rt-product-gallery__dialog .wc-block-product-gallery-dialog__content img {
	display: block;
	width: 100%;
	height: auto;
}

.rt-product-gallery .wc-block-product-gallery-large-image__wrapper {
	cursor: pointer;
}

/* A variation's own image waits hidden until that variation is chosen (product-gallery.js) */
.rt-product-gallery li[hidden] {
	display: none;
}
/* Generated by astro-product/scripts/sync-core.mjs from packages/foundation/components/product-summary. Do not edit. */
/**
 * product-summary: WooCommerce's single product blocks (title, rating, short description, price, Add to Cart + Options,
 * product meta). Measured in new-woocommerce.sketch, Shop Product Detail: a 360 wide column, the name (26, bold), the
 * description (14/23), the price (26, bold) with the old price (14) after it, 80×49 image swatches 10 apart, a 70×50
 * framed quantity and a 190×50 black "Add to Cart" (16, bold) 10 apart, categories and tags (12, medium). The rules
 * repeat the layout of WooCommerce's block styles so the reference (without them) matches; rules that must win over
 * those styles carry the root class and the form class.
 */
:where(.rt-product-summary) {
	color: var(--rt-color-contrast);
}

.rt-product-summary {
	display: flex;
	flex-direction: column;
	font-family: var(--rt-font-family-body);
}

.rt-product-summary .rt-product-summary__title {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: var(--rt-font-size-large-plus);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.3;
	letter-spacing: 0;
}

.rt-product-summary .rt-product-summary__rating {
	margin: 0;
	padding-block-start: var(--rt-spacing-20);
	font-size: var(--rt-font-size-small);
}

.rt-product-summary .rt-product-summary__excerpt {
	margin: 0;
	padding-block-start: var(--rt-spacing-30);
	font-size: var(--rt-font-size-small);
	line-height: var(--rt-font-line-height-body);
}

.rt-product-summary .rt-product-summary__excerpt p {
	margin: 0;
}

/* Price: the current price first, the struck-through old price after it. */
.rt-product-summary .rt-product-summary__price {
	margin: 0;
	padding-block-start: 1.3125rem;
	font-size: var(--rt-font-size-large-plus);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.3;
}

.rt-product-summary .rt-product-summary__price .wc-block-components-product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.625rem;
	margin: 0;
	font-size: inherit;
}

.rt-product-summary .rt-product-summary__price del {
	order: 1;
	color: var(--rt-product-summary-old-price);
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-regular);
}

.rt-product-summary .rt-product-summary__price ins {
	text-decoration: none;
}

.rt-product-summary .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Add to Cart + Options: variation selector, stock text, quantity and button, 30 apart. */
.rt-product-summary .rt-product-summary__cart {
	display: flex;
	flex-direction: column;
	gap: 1.875rem;
	margin: 0;
	/* 31px under the price, as WordPress's Add to Cart + Options block (its 30px top margin and the row's 1px) */
	padding-block-start: 1.9375rem;
}

.rt-product-summary__cart > [hidden],
.rt-product-summary__cart .wc-block-components-product-stock-indicator:empty {
	display: none;
}

.rt-product-summary__cart .single_variation_wrap {
	display: contents;
}

/* WooCommerce's selector is a list of attributes, each a group with the name and the chips. */
.rt-product-summary__cart > [role="list"] {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.rt-product-summary__cart [role="list"] > div > div {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.rt-product-summary__cart [role="list"] > div > div > span:first-child {
	font-size: var(--rt-font-size-x-small);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.2;
}

.rt-product-summary__cart .wc-block-product-filter-chips {
	font-size: var(--rt-font-size-small);
}

.rt-product-summary__cart .wc-block-product-filter-chips__fieldset {
	display: contents;
}

.rt-product-summary__cart .wc-block-product-filter-chips__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

/* Text chips (attributes without images): framed boxes as tall as the swatches; the chosen one is filled. */
.rt-product-summary__cart .wc-block-product-filter-chips__item {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 3.0625rem;
	margin: 0;
	padding: 0 1.25rem;
	border: 1px solid var(--rt-product-summary-chip-border);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.rt-product-summary__cart .wc-block-product-filter-chips__item:hover {
	border-color: var(--rt-color-contrast);
}

.rt-product-summary__cart .wc-block-product-filter-chips__item[aria-checked="true"] {
	border-color: var(--rt-product-summary-action);
	background: var(--rt-product-summary-action);
	color: var(--rt-product-summary-action-text);
}

.rt-product-summary__cart .wc-block-product-filter-chips__item:focus-visible {
	outline: 2px solid var(--rt-color-accent);
	outline-offset: 2px;
}

.rt-product-summary__cart .wc-block-product-filter-chips__item:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.rt-product-summary__cart .wc-block-product-filter-chips__label {
	display: inline-flex;
	align-items: center;
}

/* Image swatches: an 80×49 picture, the name only for screen readers and as a tooltip; the chosen one is framed. */
.rt-product-summary__cart .wc-block-product-filter-chips:has(.wc-block-product-filter-chips__swatch) .wc-block-product-filter-chips__item {
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	outline: 1px solid transparent;
	outline-offset: 2px;
	transition: outline-color 0.2s ease;
}

.rt-product-summary__cart .wc-block-product-filter-chips:has(.wc-block-product-filter-chips__swatch) .wc-block-product-filter-chips__item:hover {
	outline-color: var(--rt-product-summary-chip-border);
}

.rt-product-summary__cart .wc-block-product-filter-chips:has(.wc-block-product-filter-chips__swatch) .wc-block-product-filter-chips__item[aria-checked="true"] {
	outline-color: var(--rt-color-contrast);
}

.rt-product-summary__cart .wc-block-product-filter-chips:has(.wc-block-product-filter-chips__swatch) .wc-block-product-filter-chips__item:focus-visible {
	outline: 2px solid var(--rt-color-accent);
}

.rt-product-summary__cart .wc-block-product-filter-chips__swatch {
	display: block;
	width: 5rem;
	height: 3.0625rem;
	border: 0;
	border-radius: 0;
	background-color: var(--rt-product-summary-swatch-surface);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.rt-product-summary__cart .wc-block-product-filter-chips__swatch ~ .wc-block-product-filter-chips__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Stock text ("3 in stock", "Out of stock"). */
.rt-product-summary .rt-product-summary__cart .wc-block-components-product-stock-indicator {
	margin: 0;
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.2;
	text-align: start;
}

/* Quantity and button in one row, 10 apart; an out of stock product leaves the row empty. */
.rt-product-summary__cart > div:has(> .wc-block-components-product-button) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.625rem;
}

.rt-product-summary__cart > div[class*="group"]:not(:has(*)) {
	display: none;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-quantity-selector {
	display: flex;
	box-sizing: border-box;
	width: 5.5rem;
	min-width: 0;
	height: 3.125rem;
	margin: 0;
	border: 1px solid var(--rt-product-summary-field-border);
	border-radius: 0;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-quantity-selector::after {
	content: none;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-bold);
	text-align: center;
	appearance: textfield;
}

.rt-product-summary__cart .wc-block-components-quantity-selector__input::-webkit-inner-spin-button,
.rt-product-summary__cart .wc-block-components-quantity-selector__input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	flex: 0 0 1.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: var(--rt-font-size-base);
	opacity: 0.6;
	cursor: pointer;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	opacity: 1;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	opacity: 0.3;
	cursor: default;
}

.rt-product-summary__cart .wc-block-components-quantity-selector :focus-visible {
	outline: 2px solid var(--rt-color-accent);
	outline-offset: -2px;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button {
	margin: 0;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button .wc-block-components-product-button__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 11.875rem;
	height: 3.125rem;
	margin: 0;
	padding: 0 2rem;
	border: 0;
	border-radius: 0;
	background: var(--rt-product-summary-action);
	color: var(--rt-product-summary-action-text);
	font-family: inherit;
	font-size: var(--rt-font-size-base);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button .wc-block-components-product-button__button:hover,
.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button .wc-block-components-product-button__button:focus-visible {
	background: var(--rt-product-summary-action-hover);
	color: var(--rt-product-summary-action-hover-text);
}

.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button .wc-block-components-product-button__button:focus-visible {
	outline: 2px solid var(--rt-color-contrast);
	outline-offset: 2px;
}

/* Until every attribute is chosen WooCommerce marks the button disabled (it explains on click). */
.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button .wc-block-components-product-button__button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Categories and tags. */
.rt-product-summary .rt-product-summary__meta {
	display: flex;
	flex-direction: column;
	gap: 0.6875rem;
	margin: 0;
	padding-block-start: 1.875rem;
}

.rt-product-summary .rt-product-summary__terms {
	margin: 0;
	font-size: var(--rt-font-size-x-small);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.2;
}

.rt-product-summary .rt-product-summary__terms a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 0.2em;
}

.rt-product-summary .rt-product-summary__terms a:hover,
.rt-product-summary .rt-product-summary__terms a:focus-visible {
	text-decoration: underline;
}

/* Phones: the button fills the row next to the quantity. */
@media (width <= 37.5rem) {
	.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button {
		flex: 1 1 auto;
	}

	.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button .wc-block-components-product-button__button {
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rt-product-summary__cart .wc-block-product-filter-chips__item,
	.rt-product-summary .rt-product-summary__cart .wc-block-components-product-button .wc-block-components-product-button__button {
		transition: none;
	}
}

/*
 * WooCommerce's store notice above the cart form (product-summary.js: Add to cart without a chosen option), with
 * WooCommerce's own notice look: a light red box, the round icon, a faded dismiss cross.
 */
.rt-product-summary .wc-block-components-notices > .wc-block-components-notice-banner {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
	box-sizing: border-box;
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid #cc1818; /* preset-exempt: WooCommerce's error notice colour */
	border-radius: 4px;
	background-color: #fff0f0; /* preset-exempt: WooCommerce's error notice colour */
	color: #2f2f2f; /* preset-exempt: WooCommerce's notice text colour */
	font-size: 0.875rem; /* preset-exempt: WooCommerce's notice size */
	font-weight: 400;
	line-height: 1.5;
}

.rt-product-summary .wc-block-components-notice-banner > svg {
	flex-shrink: 0;
	box-sizing: content-box;
	width: 24px;
	height: 24px;
	padding: 2px;
	border-radius: 50%;
	background-color: #cc1818; /* preset-exempt: WooCommerce's error notice colour */
	fill: #fff; /* preset-exempt: WooCommerce's notice icon colour */
}

.rt-product-summary .wc-block-components-notice-banner .wc-block-components-notice-banner__content {
	flex-grow: 1;
	align-self: center;
	padding-inline-end: 1rem;
}

.rt-product-summary .wc-block-components-notice-banner .wc-block-components-notice-banner__dismiss {
	align-self: flex-start;
	width: 16px;
	height: 16px;
	margin: 0.375rem 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	opacity: 0.6;
}

.rt-product-summary .wc-block-components-notice-banner .wc-block-components-notice-banner__dismiss svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}
