/**
 * Product gallery, summary hierarchy and responsive purchase layout.
 */

.myc-view-product .myc-product-page {
	max-width: var(--ps-content-discovery);
	padding-top: var(--ps-space-5);
}

body.myc-layout-full.myc-view-product .myc-product-page {
	max-width: none;
}

.myc-product-breadcrumb {
	margin-bottom: var(--ps-space-5);
}

.myc-product-breadcrumb a:hover,
.myc-product-breadcrumb a:focus-visible {
	color: var(--ps-color-brand-700);
}

.myc-product-layout {
	gap: clamp(var(--ps-space-6), 5vw, var(--ps-space-8));
}

@media (min-width: 1081px) {
	/* Give the product summary a little more room on constrained layouts. */
	body.myc-layout-contained .myc-product-layout,
	body.myc-layout-wide .myc-product-layout {
		grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
	}
}

.myc-product-gallery {
	gap: var(--ps-space-3);
}

.myc-product-image-grid {
	gap: var(--ps-space-3);
	transition: opacity var(--ps-transition-fast);
}

/*
 * A four-image gallery configured as one desktop column follows an editorial
 * rhythm: feature image, two-image row, then one final feature image. The
 * image-count guard keeps galleries with another count on the conventional
 * single-column layout.
 */
@media (min-width: 1081px) {
	.myc-product-image-grid[data-myc-gallery-desktop-columns="1"][data-myc-gallery-image-count="4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.myc-product-image-grid[data-myc-gallery-desktop-columns="1"][data-myc-gallery-image-count="4"] .myc-product-thumb:first-child,
	.myc-product-image-grid[data-myc-gallery-desktop-columns="1"][data-myc-gallery-image-count="4"] .myc-product-thumb:nth-child(4) {
		grid-column: 1 / -1;
	}
}

/*
 * The leading image remains full width on touch layouts. Build the remaining
 * thumbnails on a 12-unit track so an incomplete final row can share the
 * available width evenly without changing the configured 2/3/4-column rhythm.
 */
/*
 * Keep the mobile gallery composition through the compact 600–760px range.
 * Tablet-specific gallery settings begin at 761px, so there is no interim
 * width where a one-column tablet preference can resemble the desktop grid.
 */
@media (min-width: 600px) and (max-width: 760px) {
	.myc-product-image-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.myc-product-image-grid .myc-product-thumb:not(:first-child) {
		grid-column: span var(--myc-product-gallery-mobile-span);
	}

	.myc-product-image-grid[data-myc-gallery-mobile-tail="1"] .myc-product-thumb:last-child {
		grid-column: span 12;
	}

	.myc-product-image-grid[data-myc-gallery-mobile-tail="2"] .myc-product-thumb:nth-last-child(-n + 2) {
		grid-column: span 6;
	}

	.myc-product-image-grid[data-myc-gallery-mobile-tail="3"] .myc-product-thumb:nth-last-child(-n + 3) {
		grid-column: span 4;
	}
}

@media (min-width: 761px) and (max-width: 1080px) {
	.myc-product-image-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.myc-product-image-grid .myc-product-thumb {
		grid-column: span var(--myc-product-gallery-tablet-span);
	}

	.myc-product-image-grid[data-myc-gallery-tablet-tail="1"] .myc-product-thumb:last-child {
		grid-column: span 12;
	}

	.myc-product-image-grid[data-myc-gallery-tablet-tail="2"] .myc-product-thumb:nth-last-child(-n + 2) {
		grid-column: span 6;
	}

	.myc-product-image-grid[data-myc-gallery-tablet-tail="3"] .myc-product-thumb:nth-last-child(-n + 3) {
		grid-column: span 4;
	}
}

@media (max-width: 599px) {
	.myc-product-image-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.myc-product-image-grid .myc-product-thumb:not(:first-child) {
		grid-column: span var(--myc-product-gallery-mobile-span);
	}

	.myc-product-image-grid[data-myc-gallery-mobile-tail="1"] .myc-product-thumb:last-child {
		grid-column: span 12;
	}

	.myc-product-image-grid[data-myc-gallery-mobile-tail="2"] .myc-product-thumb:nth-last-child(-n + 2) {
		grid-column: span 6;
	}

	.myc-product-image-grid[data-myc-gallery-mobile-tail="3"] .myc-product-thumb:nth-last-child(-n + 3) {
		grid-column: span 4;
	}
}

.myc-product-thumb,
.myc-product-thumb-placeholder {
	border-color: var(--ps-color-border);
	border-radius: var(--ps-radius-lg);
	background: var(--ps-color-surface-muted);
}

.myc-product-thumb {
	-webkit-tap-highlight-color: transparent;
}

.myc-product-thumb:focus-visible {
	border-color: var(--ps-color-brand-600);
	outline: none;
	box-shadow: var(--ps-shadow-focus);
}

.myc-product-thumb::after {
	background: linear-gradient(180deg, transparent 52%, rgb(15 12 13 / 72%) 100%);
}

.myc-product-thumb span {
	right: var(--ps-space-2);
	bottom: var(--ps-space-2);
	border-radius: var(--ps-radius-sm);
	background: var(--ps-color-ink-strong);
}

/* Same soft, dark-neutral shadow the catalog cards lift into on hover
   (rgb(20 22 31 / 9%)), but at rest rather than on interaction: lower
   opacity and a wider blur so it reads as ambient depth, not a lift. */
.myc-product-summary {
	padding: clamp(var(--ps-space-5), 3vw, var(--ps-space-6));
	border-color: var(--ps-color-border);
	border-radius: var(--ps-radius-lg);
	background: var(--ps-color-surface);
	box-shadow: 0 12px 48px rgb(20 22 31 / 6%);
}

.myc-product-cats {
	display: flex;
	align-items: center;
	gap: var(--ps-space-2);
	margin-bottom: var(--ps-space-4);
}

.myc-product-categories,
.myc-product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ps-space-2);
}

.myc-product-categories a {
	border-color: var(--ps-color-brand-border);
	border-radius: var(--ps-radius-sm);
	background: var(--ps-color-brand-50);
	color: var(--ps-color-brand-700);
}

.myc-product-categories a:hover,
.myc-product-categories a:focus-visible {
	border-color: var(--ps-color-brand-600);
	background: var(--ps-color-brand-100);
}

.myc-product-cats .myc-product-tags a {
	border-color: var(--ps-color-border);
	border-radius: var(--ps-radius-sm);
	background: var(--ps-color-surface-subtle);
	color: var(--ps-color-text-muted);
}

.myc-product-cats .myc-product-tags a:hover {
	border-color: var(--ps-color-text-muted);
	background: var(--ps-color-surface-muted);
	color: var(--ps-color-text);
}

.myc-product-cats .myc-product-tags a:focus-visible {
	border-color: var(--ps-color-brand-border);
	background: var(--ps-color-brand-50);
	color: var(--ps-color-brand-700);
}

.myc-product-thumb .myc-product-pro-badge {
	position: absolute;
	top: var(--ps-space-3);
	right: auto;
	bottom: auto;
	left: var(--ps-space-3);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border: 0;
	border-radius: var(--ps-radius-sm);
	background: var(--ps-color-ink-strong);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	opacity: 1;
	transition: none;
	pointer-events: none;
}

/* Only the Jugador edition takes the gold, the same one the PRO chip carries
   on the catalog cards; Aficionado keeps the plain white above. */
.myc-product-thumb .myc-product-pro-badge.is-pro {
	color: var(--ps-color-gold);
}

@media (min-width: 1081px) {
	.myc-product-thumb .myc-product-pro-badge {
		min-height: 30px;
		padding: 0 var(--ps-space-3);
		font-size: 11px;
	}
}

.myc-product-summary h1 {
	font-family: var(--ps-font-display);
	font-size: clamp(38px, 3.75vw, 54px);
	/* Oswald runs narrower and taller than the body sans, so the tracking it
	   ships with reads tight at this size and a line-height of exactly 1
	   clips its ascenders. */
	letter-spacing: .005em;
	line-height: 1.06;
}

.myc-product-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--ps-space-3);
	margin-top: var(--ps-space-5);
	color: var(--ps-color-brand-700);
	font-size: clamp(28px, 3vw, 40px);
	font-variant-numeric: tabular-nums;
}

/*
 * A fixed size, not one relative to the price: this was calc(1em - 4px),
 * which against a 40px price still rendered at 36px and read as part of the
 * amount rather than a footnote to it. It shares the price's baseline — see
 * align-items above — rather than its box's bottom edge, which sat the
 * suffix lower than the digits by the height of the price's descender space.
 */
.myc-product-price-suffix {
	color: var(--ps-color-text-muted);
	font-size: 14px;
	font-weight: 650;
}

/* WooCommerce wraps the suffix in <small>, which would shrink it a second
   time on top of the size set above. */
.myc-product-price-suffix small {
	font-size: inherit;
}

.myc-product-meta {
	margin: var(--ps-space-5) 0 var(--ps-space-5);
	display: grid;
	gap: var(--ps-space-2);
}

.myc-product-meta-badges {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: var(--ps-space-2);
}

.myc-product-meta .myc-product-stock,
.myc-product-meta .myc-product-shipping,
.myc-product-meta .myc-product-delivery {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 var(--ps-space-3);
	border: 1px solid var(--ps-color-summary-border);
	border-radius: var(--ps-radius-sm);
	background: var(--ps-color-summary-fill);
	font-size: 12px;
	font-weight: 800;
}

.myc-product-meta .myc-product-stock.is-in-stock {
	border-color: #c8e6d2;
	background: #eef8f1;
	color: var(--ps-color-success);
}

.myc-product-meta .myc-product-stock.is-out-of-stock {
	border-color: var(--ps-color-brand-border);
	background: var(--ps-color-brand-50);
	color: var(--ps-color-brand-700);
}

.myc-product-short {
	margin-bottom: var(--ps-space-5);
	color: var(--ps-color-text-muted);
}

.myc-product-purchase {
	padding-top: var(--ps-space-5);
	border-top-color: var(--ps-color-border);
}

.myc-product-notes {
	gap: var(--ps-space-3);
	margin-top: var(--ps-space-5);
}

.myc-product-notes div {
	padding: 0 0 0 var(--ps-space-3);
	border: 0;
	border-left: 2px solid var(--ps-color-brand-600);
	border-radius: 0;
	background: transparent;
}

.myc-product-tabs {
	border-color: var(--ps-color-border);
	border-radius: var(--ps-radius-lg);
	box-shadow: none;
}

@media (min-width: 1200px) {
	.myc-product-meta .myc-product-stock,
	.myc-product-meta .myc-product-shipping,
	.myc-product-meta .myc-product-delivery {
		min-height: 36px;
		padding-inline: var(--ps-space-4);
		font-size: 13px;
	}
}

.myc-product-tabs-nav {
	background: var(--ps-color-surface-subtle);
}

.myc-product-tab-button.is-active {
	border-color: var(--ps-color-brand-border);
	background: var(--ps-color-brand-50);
	color: var(--ps-color-brand-700);
	box-shadow: none;
}

@media (min-width: 1200px) and (min-height: 800px) {
	.myc-product-gallery,
	.myc-product-summary {
		top: var(--ps-product-sticky-offset);
	}

}

@media (max-width: 1199px), (max-height: 799px) {
	.myc-product-gallery,
	.myc-product-summary {
		position: static;
		max-height: none;
		overflow: visible;
	}
}

@media (prefers-reduced-motion: reduce) {
	.myc-product-image-grid {
		transition: none;
	}
}

@media (max-width: 760px) {
	.myc-view-product .myc-product-page {
		padding-top: var(--ps-space-4);
	}

	.myc-product-summary {
		padding: var(--ps-space-4);
		border: 1px solid var(--ps-color-border);
		border-radius: var(--ps-radius-md);
		background: var(--ps-color-surface);
	}

	.myc-product-summary h1 {
		font-size: clamp(34px, 11vw, 46px);
	}

	.myc-product-price {
		font-size: 30px;
	}

	.myc-product-meta {
		margin-bottom: var(--ps-space-5);
	}

	.myc-product-meta .myc-product-delivery {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.myc-product-cats {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* ------------------------------------------------------- tabla de tallas -- */

/*
 * Built by the [tabla_tallas] shortcode, in the size guide tab.
 *
 * The table remains a table at every viewport. On phones it becomes denser,
 * instead of switching to cards or requiring horizontal scrolling, so each
 * measurement stays comparable at a glance.
 */
.ps-size-table-wrap {
	margin: 0 0 var(--ps-space-5);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ps-size-table {
	--ps-size-table-row: #faf9fa;
	--ps-size-table-row-alt: #f5f3f4;
	--ps-size-table-row-hover: #ebe8ea;
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.ps-size-table :is(th, td) {
	padding: var(--ps-space-3) var(--ps-space-4);
	text-align: center;
	vertical-align: middle;
}

.ps-size-table thead th {
	background: var(--ps-color-surface-subtle);
	color: var(--ps-color-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* The size names its row the way a heading names its column. */
.ps-size-table tbody th[scope='row'] {
	color: var(--ps-color-ink);
	font-weight: 800;
	white-space: nowrap;
}

.ps-size-table tbody td {
	color: var(--ps-color-text);
	font-variant-numeric: tabular-nums;
}

.ps-size-table tbody tr :is(th, td) {
	background: var(--ps-size-table-row);
}

/* Reading a row is easier when the eye has a rail to follow. */
.ps-size-table tbody tr:nth-child(even) :is(th, td) {
	background: var(--ps-size-table-row-alt);
}

@media (hover: hover) and (pointer: fine) {
	.ps-size-table tbody tr :is(th, td) {
		transition: background-color 160ms ease;
	}

	.ps-size-table tbody tr:hover :is(th, td) {
		background: var(--ps-size-table-row-hover);
	}
}

@media (max-width: 1199px) {
	.ps-size-table tbody th[scope='row'] {
		padding-inline-start: var(--ps-space-4);
	}
}

@media (max-width: 640px) {
	.ps-size-table-wrap {
		overflow: hidden;
	}

	.ps-size-table {
		table-layout: fixed;
		font-size: 11px;
		line-height: 1.25;
	}

	.ps-size-table :is(th, td) {
		padding: 9px 4px;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	.ps-size-table :is(th, td):first-child {
		width: 18%;
		padding-right: 4px;
		padding-left: 4px;
	}

	.ps-size-table :is(th, td):nth-child(2),
	.ps-size-table :is(th, td):nth-child(3) {
		width: 16%;
	}

	.ps-size-table :is(th, td):nth-child(4) {
		width: 25%;
	}

	.ps-size-table :is(th, td):nth-child(5) {
		width: 25%;
	}

	.ps-size-table thead th {
		font-size: 9px;
		letter-spacing: .02em;
		white-space: normal;
	}

	.ps-size-table thead th:first-child {
		font-size: 9px;
		white-space: nowrap;
	}

.ps-size-table tbody th[scope='row'] {
	padding-inline: 4px;
	font-size: 12px;
}
}

/* -------------------------------------------------- modal guía de tallas -- */

.myc-product-purchase .variations th.has-ps-size-guide {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ps-space-3);
	width: 100%;
}

.ps-size-guide-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	margin: 0;
	padding: 3px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ps-color-brand-700);
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color var(--ps-transition-fast), text-decoration-color var(--ps-transition-fast);
}

.ps-size-guide-trigger svg {
	width: 16px;
	height: 16px;
	fill: none;
	flex: 0 0 auto;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.ps-size-guide-trigger:hover {
	color: var(--ps-color-brand-900);
	text-decoration-color: currentColor;
}

.ps-size-guide-trigger:focus,
.ps-size-guide-modal__close:focus {
	box-shadow: none;
	outline: none;
}

.ps-size-guide-trigger:focus-visible {
	box-shadow: none;
	outline: 2px solid var(--ps-color-brand-600);
	outline-offset: 3px;
}

html.ps-size-guide-is-open {
	overflow: hidden;
}

body.ps-size-guide-is-open {
	position: fixed;
	top: var(--ps-size-guide-scroll-offset, 0);
	right: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}

.ps-size-guide-modal__close:focus-visible {
	box-shadow: none;
	outline: 2px solid rgb(255 255 255 / 92%);
	outline-offset: 3px;
}

.ps-size-guide-modal {
	width: min(940px, calc(100vw - 32px));
	max-width: none;
	max-height: min(780px, calc(100svh - 32px));
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--ps-radius-lg);
	background: var(--ps-color-surface);
	box-shadow: 0 24px 64px rgb(23 19 21 / 28%);
	color: var(--ps-color-text);
	overflow: hidden;
}

.ps-size-guide-modal::backdrop {
	background: rgb(23 19 21 / 58%);
	backdrop-filter: blur(3px);
}

.ps-size-guide-modal[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	animation: ps-size-guide-enter var(--ps-transition-base) both;
}

.ps-size-guide-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ps-space-4);
	padding: 18px var(--ps-space-5);
	background: var(--ps-color-brand-800);
	color: var(--ps-color-surface);
}

.ps-size-guide-modal__header p {
	margin: 0;
	font-size: 15px;
	font-weight: 850;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ps-size-guide-modal__close {
	display: inline-grid;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 20%);
	border-radius: 50%;
	place-items: center;
	background: rgb(255 255 255 / 9%);
	box-shadow: none;
	color: var(--ps-color-surface);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--ps-transition-fast), border-color var(--ps-transition-fast);
}

.ps-size-guide-modal__close:hover {
	border-color: rgb(255 255 255 / 38%);
	background: rgb(255 255 255 / 16%);
}

.ps-size-guide-modal__close:active {
	border-color: rgb(255 255 255 / 28%);
	background: rgb(255 255 255 / 12%);
	box-shadow: none;
	outline: none;
}

.ps-size-guide-modal__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2.2;
}

.ps-size-guide-modal__body {
	min-height: 0;
	padding: var(--ps-space-6);
	overflow: auto;
	overscroll-behavior: contain;
}

.ps-size-guide-modal__layout {
	display: grid;
	grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
	gap: var(--ps-space-6);
	align-items: center;
}

.ps-size-guide-figure {
	margin: 0;
	padding: var(--ps-space-4);
	border-radius: var(--ps-radius-md);
	background: var(--ps-color-surface-subtle);
	color: var(--ps-color-text-muted);
	text-align: center;
}

.ps-size-guide-figure svg {
	display: block;
	width: min(100%, 270px);
	height: auto;
	margin: 0 auto;
}

.ps-size-guide-figure__shirt,
.ps-size-guide-figure__neck {
	fill: none;
	stroke: var(--ps-color-text);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.4;
}

.ps-size-guide-figure__measure {
	fill: none;
	stroke: var(--ps-color-brand-600);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.ps-size-guide-figure__label {
	fill: var(--ps-color-brand-600);
	font-family: var(--ps-font-sans);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
}

.ps-size-guide-figure figcaption {
	margin-top: var(--ps-space-2);
	font-size: 13px;
	line-height: 1.45;
}

.ps-size-guide-modal__content .ps-size-table-wrap {
	margin: 0;
	border: 1px solid var(--ps-color-border);
	border-radius: var(--ps-radius-md);
	overflow: hidden;
}

/* The tab can keep its introductory copy; the modal stays diagram-first. */
.ps-size-guide-modal__content > p:not(.ps-size-guide-note) {
	display: none;
}

.ps-size-guide-modal__content .ps-size-table {
	font-size: 14px;
}

.ps-size-guide-modal__content .ps-size-table :is(th, td) {
	padding: 11px var(--ps-space-3);
	text-align: center;
}

.ps-size-guide-modal__content .ps-size-table :is(th, td):first-child {
	text-align: center;
}

.ps-size-guide-note {
	margin: var(--ps-space-4) 0 0;
	padding: var(--ps-space-3) var(--ps-space-4);
	border-left: 3px solid var(--ps-color-brand-600);
	background: var(--ps-color-surface-subtle);
	color: var(--ps-color-text-muted);
	font-size: 14px;
	line-height: 1.55;
}

@media (min-width: 1025px) {
	.ps-size-guide-figure {
		display: flex;
		align-self: stretch;
		flex-direction: column;
		justify-content: center;
	}
}

@keyframes ps-size-guide-enter {
	from {
		opacity: 0;
		transform: translateY(8px) scale(.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Let the guide follow its content on touch devices without exceeding the viewport. */
@media (max-width: 1024px) {
	.ps-size-guide-modal {
		height: fit-content;
		max-height: min(780px, calc(100dvh - 40px));
		touch-action: none;
		overscroll-behavior: none;
	}

	.ps-size-guide-modal[open] {
		display: flex;
		flex-direction: column;
		animation: ps-size-guide-enter var(--ps-transition-base) both;
	}

	.ps-size-guide-modal__header {
		flex: 0 0 auto;
	}

	body.ps-size-guide-is-open .ps-size-guide-modal__body {
		flex: 0 1 auto;
		touch-action: pan-y;
		overscroll-behavior: contain;
	}

}

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
	.ps-size-guide-modal__close:is(:focus, :focus-visible, :active) {
		border-color: rgb(255 255 255 / 28%);
		background: rgb(255 255 255 / 12%);
		box-shadow: none !important;
		outline: none !important;
	}
}

@media (max-width: 760px) {
	.myc-product-purchase .variations th.has-ps-size-guide {
		align-items: center;
	}

	.ps-size-guide-trigger {
		min-height: 28px;
		font-size: 12px;
	}

	.ps-size-guide-trigger svg {
		width: 15px;
		height: 15px;
	}

	.ps-size-guide-modal {
		width: min(100vw - 32px, 620px);
		max-height: calc(100dvh - 48px);
		border-radius: var(--ps-radius-md);
	}

	.ps-size-guide-modal__header {
		padding: 15px var(--ps-space-4);
	}

	.ps-size-guide-modal__body {
		padding: var(--ps-space-4);
	}

	.ps-size-guide-modal__layout {
		grid-template-columns: 1fr;
		gap: var(--ps-space-4);
	}

	.ps-size-guide-figure {
		display: grid;
		grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
		gap: var(--ps-space-3);
		align-items: center;
		padding: var(--ps-space-3);
		text-align: left;
	}

	.ps-size-guide-figure svg {
		width: 100%;
	}

	.ps-size-guide-figure figcaption {
		margin: 0;
	}

	.ps-size-guide-modal__content .ps-size-table {
		font-size: 10px;
	}

	.ps-size-guide-modal__content .ps-size-table :is(th, td) {
		padding: 9px 4px;
	}

	.ps-size-guide-modal__content .ps-size-table :is(th, td):first-child {
		padding-left: 4px;
	}

	.ps-size-guide-note {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ps-size-guide-modal[open] {
		animation: none;
	}
}

/* ------------------------------------- two-photo gallery slider, mobile --- */

.myc-product-gallery-viewport {
	position: relative;
}

/*
 * Two photos on a phone used to stack full width, one under the other, so half
 * the gallery was a scroll away and the page ran twice as long for it. Below
 * this width they become one slide each.
 *
 * Keyed on the photo count the grid already publishes.
 */
@media (max-width: 760px) {
	.myc-product-image-grid[data-myc-gallery-image-count="2"] {
		display: flex;
		gap: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}

	.myc-product-image-grid[data-myc-gallery-image-count="2"]::-webkit-scrollbar {
		display: none;
	}

	.myc-product-image-grid[data-myc-gallery-image-count="2"] .myc-product-thumb {
		width: 100%;
		flex: 0 0 100%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
	.myc-product-image-grid[data-myc-gallery-image-count="2"] {
		scroll-behavior: auto;
	}
}

/* The arrows are added by script and only ever shown for this case. */
.myc-gallery-arrow {
	position: absolute;
	top: 50%;
	display: none;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--ps-color-border);
	border-radius: 50%;

	/*
	 * Opaque, and no backdrop-filter. A blurred backdrop over a scroll container
	 * whose opacity changes in one frame is a known way to make Safari on iOS
	 * flash: the layer has to be rebuilt at the moment the arrow disappears. The
	 * 160ms fade used to hide that; going instant exposed it.
	 *
	 * It costs nothing to drop — the surface was already 82% white, so the blur
	 * behind it was barely visible.
	 */
	background: var(--ps-color-surface);
	color: var(--ps-color-text);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity var(--ps-transition-fast), background-color var(--ps-transition-fast);
	-webkit-tap-highlight-color: transparent;
}

.myc-gallery-arrow--prev {
	left: var(--ps-space-3);
}

.myc-gallery-arrow--next {
	right: var(--ps-space-3);
}

.myc-gallery-arrow svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

/*
 * Kept in the layout rather than removed, so the photo does not shift when the
 * slide reaches an end.
 *
 * It leaves at once and comes back gently: fading out over the same 160ms it
 * fades in by left the arrow hanging over a photo that had already changed.
 *
 * `disabled` alone holds the interaction. `pointer-events: none` would also let
 * the touch through to whatever is beneath — here the photo's lightbox link —
 * so an arrow vanishing under a finger could hand that finger to the photo.
 */
.myc-gallery-arrow[disabled] {
	opacity: 0;
	transition: none;
}

@media (max-width: 760px) {
	.myc-product-gallery-viewport:has(.myc-product-image-grid[data-myc-gallery-image-count="2"]) .myc-gallery-arrow {
		display: flex;
	}
}

/*
 * Stacked, the gallery and the summary are one column, and the gap between them
 * was growing with the viewport — 32px on a phone, 51px by 1024 — while the
 * space above the photo stayed at 12–16px. Read down the page that put far more
 * air under the photo than over it. The clamp above is for the two-column
 * layout, where the gap is the space between the columns and wants to breathe.
 */
@media (max-width: 1080px) {
	.myc-product-layout {
		gap: var(--ps-space-4);
	}
}

/*
 * Outside the slider the radius is on the thumb, which clips to it — except
 * Safari drops that clip while a scroller is moving. The image carrying its own
 * radius survives that, because there is no clip left to lose.
 *
 * The <picture> is listed too: `inherit` reads the parent, and the mobile main
 * image sits inside one, so without it that image would inherit a zero.
 */
.myc-product-thumb picture,
.myc-product-thumb img,
.myc-product-thumb::after {
	border-radius: inherit;
}

/*
 * In the slider the rounding belongs to the frame, not to the photos.
 *
 * Rounding each photo meant two rounded rectangles travelling past each other,
 * with the curves moving and a square-cornered join passing through the middle
 * of the swipe. A rounded window with the photos sliding behind it holds the
 * same four corners still from beginning to end.
 *
 * The clip sits on the viewport, which does not scroll. That is also why it
 * survives on iOS: what Safari drops is the rounded clip of the element doing
 * the scrolling, and here that element is inside the frame rather than being
 * it. The arrows are inset well within the corners, so clipping does not reach
 * them.
 */
@media (max-width: 760px) {
	.myc-product-gallery-viewport:has(.myc-product-image-grid[data-myc-gallery-image-count="2"]) {
		overflow: hidden;
		border-radius: var(--ps-radius-lg);
	}

	/*
	 * The border goes with the radius. Left on, it kept drawing its own square
	 * corner a pixel inside the round one, and the frame read as not quite
	 * curved. It is there to separate a photo from the ones beside it in the
	 * grid; in the slider the frame does that, and there is nothing beside it.
	 */
	.myc-product-image-grid[data-myc-gallery-image-count="2"] .myc-product-thumb {
		border: 0;
		border-radius: 0;
	}
}
