/*
 * Product page (PDP) — Figma Product base 7:719, Variants 7:925.
 * Loaded on is_product() only (inc/shop-product.php). Depends on highscope-shop.
 */

.hs-pdp-main {
	margin: 0;
	padding: 0;
}

.hs-pdp-main .woocommerce-notices-wrapper:not(:empty) {
	padding-inline: var(--hs-gutter);
}

.hs-pdp {
	--hs-pdp-grey: #8a877f;
	--hs-pdp-line: #e6e2d9;
	margin-block-start: 0; /* no block gap: the hero sits right under the breadcrumb (Figma 14:1919) */
	color: var(--hs-navy);
}

/* ---------- P01 Breadcrumb (7:722) ---------- */

.hs-pdp-breadcrumb {
	padding-block: 20px;
}

.hs-pdp-breadcrumb .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 14px;
	line-height: normal;
	color: var(--hs-pdp-grey, #8a877f);
}

.hs-pdp-breadcrumb .woocommerce-breadcrumb a:hover {
	color: var(--hs-navy);
}

/* ---------- P02 Hero (7:724 / 7:930 / 7:1000) ---------- */

.hs-pdp-hero {
	display: flex;
	align-items: center;
	gap: 64px;
	padding: 64px;
	border-radius: var(--hs-radius-lg);
	background: var(--hs-cream);
}

.hs-pdp-hero--gallery,
.hs-pdp--tool .hs-pdp-hero,
.hs-pdp--course .hs-pdp-hero {
	align-items: flex-start;
}

.hs-pdp-media {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 16px;
	width: 620px;
	max-width: 100%;
}

.hs-pdp-media__main {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--hs-radius-md);
	background: var(--hs-pdp-line);
	overflow: hidden;
}

/* Base packshot stretches to the buy box height (7:725). */
.hs-pdp--physical .hs-pdp-hero:not(.hs-pdp-hero--gallery) {
	align-items: stretch;
}

.hs-pdp--physical .hs-pdp-hero:not(.hs-pdp-hero--gallery) .hs-pdp-media__main {
	flex: 1;
	min-height: 100%;
}

/* Physical product with thumbnails (Figma 14:1922): 620 × 456.5 packshot above 143px thumbs. */
.hs-pdp--physical .hs-pdp-hero--gallery .hs-pdp-media__main {
	aspect-ratio: 620 / 456.5;
}

.hs-pdp-media__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hs-pdp-media__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-pdp-media__thumb {
	position: relative;
	display: block;
	width: 100%;
	height: 143px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 24px;
	background: var(--hs-pdp-line);
	overflow: hidden;
	cursor: pointer;
}

.hs-pdp-media__thumb[aria-pressed="true"] {
	border-color: var(--hs-navy);
}

.hs-pdp-media__thumb:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
	outline-offset: 2px;
}

.hs-pdp-media__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Views (template-parts/product/hero.php): one slide shown at a time. */
.hs-pdp-media__slide {
	position: absolute;
	inset: 0;
}

.hs-pdp-media__slide[hidden] {
	display: none;
}

/* Figma F13 / F14: the package-coloured tile behind the shop icon. */
.hs-pdp-media__main.is-illustration {
	background: var(--tone-300, var(--wp--preset--color--sky-300));
}

/* Figma 34:2105: the subsection's shop icon, a full-bleed square on the pillar colour, at 87% of
   the tile width (art ~33% of the tile); the bands around it are the same colour. */
.hs-pdp-media__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 87%;
	max-width: none;
	height: auto;
	aspect-ratio: 1;
	translate: -50% -50%;
}

.hs-pdp-media__thumb--icon {
	background: var(--tone-300, var(--wp--preset--color--sky-300));
}

/* Buy box (7:726) */

.hs-buybox {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	min-width: 0;
}

.hs-buybox > * {
	margin: 0;
}

.hs-buybox__title {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.hs-buybox__pillar {
	margin: 0;
	font-family: var(--hs-script);
	font-weight: 700;
	font-size: 28px;
	line-height: normal;
	color: var(--tone-700);
}

.hs-pdp.hs-tone--lemon .hs-buybox__pillar {
	color: var(--wp--preset--color--lemon-900);
}

.hs-buybox__heading {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 52px;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--hs-navy);
	text-wrap: balance;
}

.hs-buybox__summary,
.hs-buybox__summary p {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
}

.hs-pdp--tool .hs-buybox__summary,
.hs-pdp--tool .hs-buybox__summary p,
.hs-pdp--course .hs-buybox__summary,
.hs-pdp--course .hs-buybox__summary p {
	font-size: 20px;
}

/* Price (7:731) */
.hs-buybox > .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	font-family: var(--hs-serif);
	font-size: 44px;
	line-height: 64px; /* Figma 14:1933 price row is 64px tall */
	color: var(--hs-navy);
}

.hs-buybox > .price .hs-price-unit {
	font-family: var(--hs-sans);
	font-size: 16px;
	line-height: 1; /* keep the 64px price row from growing around the baseline */
}

/* Hide Woo's per-variation price/description: the main price above is updated instead. */
.hs-buybox .single_variation .woocommerce-variation-price,
.hs-buybox .single_variation .woocommerce-variation-description:empty {
	display: none;
}

.hs-buybox .single_variation .woocommerce-variation-availability:not(:empty) {
	margin-bottom: 16px;
	font-size: 14px;
}

/* Forms: field rows then the buttons row */
.hs-buybox form.cart {
	width: 100%;
	margin: 0;
}

.hs-buybox__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.hs-buybox__variations-form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.hs-buybox__field {
	display: flex;
	flex: 1 0 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.hs-buybox__variations-form > .hs-buybox__field {
	flex: none; /* column form: a 100% basis would mean 100% of the height */
}

.hs-buybox__field[hidden] {
	display: none;
}

.hs-buybox__field--qty {
	margin-bottom: 16px; /* 28px between selector and buttons (12px gap + 16px). */
}

.hs-buybox__label {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	color: var(--hs-navy);
}

legend.hs-buybox__label {
	float: left;
	width: 100%;
	margin-bottom: 10px;
}

legend.hs-buybox__label + * {
	clear: both;
}

/* Quantity (7:736) */
.hs-buybox .quantity {
	gap: 0;
	height: auto;
	padding: 0 8px;
	border: 1.5px solid var(--hs-pdp-line);
	border-radius: var(--hs-radius-sm);
	background: #fff;
}

.hs-buybox .quantity .qty,
.woocommerce .hs-buybox .quantity .qty {
	width: 2em;
	min-height: 0;
	height: 56px; /* + 1.5px borders = the 59px button beside it */
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
}

.hs-buybox .hs-qty-btn {
	width: 38px;
	height: 56px;
	font-size: 18px;
	font-weight: 500;
}

/* Qty dropdown beside Add To Cart (Figma F13; woocommerce/global/quantity-input.php). */
.hs-buybox__field--inline {
	flex: none;
	margin-bottom: 0;
}

.hs-buybox .quantity.hs-qty-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 59px; /* Figma 14:1938: as tall as the Add to cart button */
	padding: 0 14px;
	box-sizing: border-box;
}

.hs-qty-select__label {
	font-size: 16px;
	font-weight: 600;
	color: var(--hs-navy);
}

.hs-buybox .hs-qty-select select.qty {
	appearance: none;
	height: 100%;
	padding: 0 22px 0 4px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--hs-navy);
	cursor: pointer;
}

.hs-buybox .hs-qty-select select.qty:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
	outline-offset: 2px;
	border-radius: 6px;
}

.hs-qty-select__chevron {
	position: absolute;
	right: 14px;
	width: 11px;
	height: auto;
	pointer-events: none;
}

.hs-pdp--physical .hs-buybox .single_add_to_cart_button {
	flex: 1 1 220px;
}

/* Figma 14:1936: qty + Add to cart + quote box run 481px wide, not the full buy box. */
.hs-pdp--physical .hs-buybox__form {
	max-width: 481px;
}

/* Figma 14:1921: the buy box is centred against the packshot + thumbnails column. */
.hs-pdp--physical .hs-pdp-hero--gallery {
	align-items: center;
}

/* "Buying for a program or district? We can send a quote instead. Get a quote →" */
.hs-buybox__quote {
	display: flex;
	flex: 1 0 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	box-sizing: border-box;
	margin-top: 0; /* the form's 12px row gap already separates it from the buttons (Figma 14:1936) */
	padding: 24px 32px 15px; /* Figma 14:1943 */
	border: 1.5px solid var(--hs-pdp-line);
	border-radius: 28px;
	background: transparent;
}

.hs-buybox__quote-text {
	max-width: 264px;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--hs-navy);
}

.hs-buybox__quote-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--hs-navy);
	text-decoration: none;
	white-space: nowrap;
}

.hs-buybox__quote-arrow {
	width: 13px;
	height: auto;
	transition: transform 0.2s ease;
}

.hs-buybox__quote-link:hover .hs-buybox__quote-arrow {
	transform: translateX(3px);
}

/* Buttons (7:740) */
.hs-buybox .single_add_to_cart_button[hidden],
.hs-buybox__quote-cta[hidden],
.hs-buybox__secondary[hidden] {
	display: none;
}

/* Radio cards in a row (7:948 / 7:1018). Shared look lives in shop.css .hs-radio-card. */
.hs-radio-cards--row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.hs-buybox .hs-radio-card {
	align-items: flex-start;
	padding: 10px 12px;
	border: 1.5px solid var(--hs-pdp-line);
	border-radius: var(--hs-radius-sm);
	line-height: normal;
}

.hs-buybox .hs-radio-card:has(input:checked) {
	border-color: var(--hs-navy);
	box-shadow: inset 0 0 0 0.5px var(--hs-navy); /* 2px selected border without shifting content */
}

/* The radio dot is replaced by the card border (design shows none); the input stays focusable. */
.hs-buybox .hs-radio-card input[type="radio"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.hs-radio-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.hs-buybox .hs-radio-card__main {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.hs-buybox .hs-radio-card__sub {
	font-size: 14px;
	line-height: 1.3;
	color: var(--hs-pdp-grey);
	opacity: 1;
}

/* Tool plans (7:948): unselected cards are dimmed; selected price is navy. */
.hs-pdp--tool .hs-radio-card:not(:has(input:checked)) .hs-radio-card__body {
	opacity: 0.6;
}

.hs-pdp--tool .hs-radio-card:has(input:checked) .hs-radio-card__sub {
	color: var(--hs-navy);
}

/* Course dates (Figma 14:2263): roomier cards, 16px lines, lemon fill when selected. */
.hs-pdp--course .hs-radio-cards--row {
	gap: 12px;
}

.hs-pdp--course .hs-buybox .hs-radio-card {
	padding: 16px;
}

.hs-pdp--course .hs-buybox .hs-radio-card:has(input:checked) {
	background: var(--wp--preset--color--lemon-300);
}

.hs-pdp--course .hs-radio-card__body {
	gap: 6px;
}

.hs-pdp--course .hs-buybox .hs-radio-card__main,
.hs-pdp--course .hs-buybox .hs-radio-card__sub {
	font-size: 16px;
	line-height: normal;
}

/* ---------- Attendee fields (inc/attendee-fields.php) ---------- */

#attendee-fields-wrapper {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	margin: 0;
	color: var(--hs-navy);
	font-family: var(--hs-sans);
}

#attendee-fields-wrapper .attendee-fields-title {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
}

#attendee-fields-wrapper .attendee-fields-title .required {
	font-size: 12px;
	font-weight: 400;
	color: var(--hs-pdp-grey);
}

/* Figma 14:2275: no card around a set; fields sit on the hero background. */
#attendee-fields-wrapper .attendee-field-set {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#attendee-fields-wrapper .attendee-field-set h4 {
	margin: 0;
	font-family: var(--hs-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: normal;
	color: var(--hs-navy);
}

#attendee-fields-wrapper .attendee-set-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

/* "+ Add another attendee" (Figma 14:2294) and per-set "Remove": text links. */
#attendee-fields-wrapper .attendee-add,
#attendee-fields-wrapper .attendee-remove {
	align-self: flex-start;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	color: var(--hs-navy);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

#attendee-fields-wrapper .attendee-remove {
	font-weight: 400;
	color: var(--hs-pdp-grey);
}

#attendee-fields-wrapper .attendee-add:hover,
#attendee-fields-wrapper .attendee-remove:hover {
	color: var(--hs-navy);
	text-decoration-thickness: 2px;
}

#attendee-fields-wrapper .attendee-add:focus-visible,
#attendee-fields-wrapper .attendee-remove:focus-visible {
	outline: 3px solid var(--wp--preset--color--sky-500);
	outline-offset: 2px;
	border-radius: 2px;
}

#attendee-fields-wrapper .attendee-add[hidden],
#attendee-fields-wrapper .attendee-remove[hidden] {
	display: none;
}

#attendee-fields-wrapper .attendee-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 12px;
}

#attendee-fields-wrapper .attendee-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	margin: 0;
}

#attendee-fields-wrapper .attendee-field.attendee-hidden {
	display: none !important;
}

#attendee-fields-wrapper .attendee-field-set label {
	display: block;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	color: var(--hs-navy);
}

#attendee-fields-wrapper .attendee-field-set label .req {
	color: var(--hs-pdp-grey);
}

#attendee-fields-wrapper .attendee-field-set input[type="text"],
#attendee-fields-wrapper .attendee-field-set input[type="email"],
#attendee-fields-wrapper .attendee-field-set select,
#attendee-fields-wrapper .attendee-field-set .select2-container .select2-selection--single {
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--hs-pdp-line);
	border-radius: 14px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--hs-navy);
	box-shadow: none;
	outline: none;
	transition: border-color 0.2s ease;
}

#attendee-fields-wrapper .attendee-field-set select {
	appearance: none;
	padding-right: 42px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230e2a5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
}

#attendee-fields-wrapper .attendee-field-set input:hover,
#attendee-fields-wrapper .attendee-field-set select:hover,
#attendee-fields-wrapper .attendee-field-set .select2-selection--single:hover {
	border-color: rgb(14 42 92 / 0.35);
}

#attendee-fields-wrapper .attendee-field-set input:focus,
#attendee-fields-wrapper .attendee-field-set select:focus,
#attendee-fields-wrapper .attendee-field-set .select2-container--focus .select2-selection--single,
#attendee-fields-wrapper .attendee-field-set .select2-container--open .select2-selection--single {
	border-color: var(--hs-navy);
	outline: 3px solid var(--wp--preset--color--sky-300);
	outline-offset: 0;
}

#attendee-fields-wrapper .attendee-field-set input:user-invalid,
#attendee-fields-wrapper .attendee-field-set select:user-invalid {
	border-color: var(--wp--preset--color--lilac-700);
}

/* select2 (country / state search select) */
#attendee-fields-wrapper .attendee-field-set .select2-container {
	width: 100% !important;
}

#attendee-fields-wrapper .attendee-field-set .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}

#attendee-fields-wrapper .attendee-field-set .select2-selection__rendered {
	padding: 0;
	line-height: 1.4;
	color: var(--hs-navy);
}

#attendee-fields-wrapper .attendee-field-set .select2-selection__placeholder {
	color: var(--hs-pdp-grey);
}

#attendee-fields-wrapper .attendee-field-set .select2-selection__arrow {
	top: 50%;
	right: 14px;
	height: 26px;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	#attendee-fields-wrapper .attendee-row {
		grid-template-columns: 1fr;
	}
}

/* Meta (7:743) */
.hs-buybox__meta {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	padding-top: 24px;
	border-top: 1.5px solid var(--hs-pdp-line);
}

.hs-buybox__pairs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.hs-buybox__pairs-label {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
}

.hs-buybox__tags {
	display: contents; /* tags flow on the label's line, wrapping after it */
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-buybox__tag {
	padding: 9px 16px;
	border-radius: 100px;
	background: var(--tone-500);
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	color: var(--hs-navy);
}

.hs-buybox__note {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
	color: var(--hs-pdp-grey);
}

/* ---------- P03 What's inside (14:1948) ---------- */

.hs-pdp-inside {
	padding-block: 64px;
}

.hs-pdp-inside .hs-frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}

.hs-pdp-inside__heading {
	font-size: 64px;
	line-height: normal;
	text-align: center;
}

.hs-pdp-inside__cards {
	display: flex;
	gap: 12px;
	width: 100%;
}

.hs-pdp-inside__card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 40px;
	border-radius: var(--hs-radius-md);
}

.hs-pdp-inside__title {
	margin: 0;
	font-family: var(--hs-serif);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.15;
}

.hs-pdp-inside__card--count {
	flex: 0 0 350px;
	align-items: center;
	gap: 54px;
	background: var(--wp--preset--color--green-500);
	text-align: center;
}

.hs-pdp-inside__art {
	display: block;
	width: 255px;
	max-width: 100%;
	height: auto;
}

.hs-pdp-inside__card--areas {
	flex: 1 1 0;
	gap: 28px;
	min-width: 0;
	background: var(--hs-cream);
}

.hs-pdp-inside__areas {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-pdp-inside__area {
	padding: 9px 16px;
	border-radius: 100px;
	background: var(--hs-tag-bg, var(--wp--preset--color--sky-500));
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
}

/* Hover: the pill lifts a touch and tilts, alternating direction (like the mission pills). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hs-pdp-inside__area {
		transition: translate 0.35s var(--hs-ease-out, ease-out), rotate 0.35s var(--hs-ease-out, ease-out);
	}

	.hs-pdp-inside__area:hover {
		translate: 0 -3px;
		rotate: -3deg;
	}

	.hs-pdp-inside__area:nth-child(even):hover {
		rotate: 3deg;
	}
}

.hs-pdp-inside__card--included {
	flex: 0 0 350px;
	gap: 16px;
	background: var(--hs-navy);
	color: #fff;
}

.hs-pdp-inside__text {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
}

.hs-pdp-inside__script {
	margin: 0;
	font-family: var(--hs-script);
	font-size: 30px;
	line-height: normal;
	color: var(--wp--preset--color--sky-500);
}

/* ---------- P04 The details (7:786) — on top of blocks/faq-split/style.css ---------- */

.hs-pdp-details.hs-faq-split {
	padding-block: 24px;
}

.hs-pdp-details__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 684px;
	align-items: stretch;
	gap: 24px;
}

.hs-pdp-details__panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px;
	border-radius: 30px;
	background: var(--tone-500);
}

.hs-pdp-details__media {
	position: relative;
	flex: 1 1 auto;
	min-height: 320px;
	border-radius: 26px;
	overflow: hidden;
}

.hs-pdp-details__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hs-pdp-details__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding-block: 24px;
	text-align: center;
}

.hs-pdp-details__heading {
	font-size: 64px;
	line-height: 1;
	text-box: trim-both cap alphabetic;
}

.hs-pdp-details__text {
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
}

/* "The details" button: pink hover; green when the panel itself is pink (lilac products). */
.hs-pdp-details__intro {
	--hs-btn-hover: var(--wp--preset--color--lilac-500);
}

.hs-pdp.hs-tone--lilac .hs-pdp-details__intro {
	--hs-btn-hover: var(--wp--preset--color--green-500);
}

/* Not stretched: faq-split view.js measures the list to reserve its tallest state. */
.hs-pdp-details__list {
	align-self: start;
}

/* Accordion: Figma 7:795 — 28px thin +/− icon at full opacity. */
.hs-pdp-details .hs-faq-split__question {
	gap: 48px;
}

.hs-pdp-details .hs-faq-split__icon {
	width: 26px;
	height: 26px;
	margin-top: 0.15em;
	opacity: 1;
}

.hs-pdp-details .hs-faq-split__icon::before,
.hs-pdp-details .hs-faq-split__icon::after {
	height: 1.5px;
	margin-top: -0.75px;
}

.hs-pdp-details .hs-faq-split__answer {
	margin-top: -18px;
}

.hs-pdp-details .hs-faq-split__text {
	max-width: none;
	padding-right: 76px;
}

/* Desktop: long answers scroll inside, so the accordion column never outgrows the panel beside it. */
@media (min-width: 1024px) {
	.hs-pdp-details .hs-faq-split__text {
		max-height: 320px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	/* Always-visible scrollbar (macOS hides the native one until you scroll), so it reads as scrollable.
	   Chrome / Safari / Edge: a styled ::-webkit-scrollbar is never an overlay. */
	.hs-pdp-details .hs-faq-split__text::-webkit-scrollbar {
		width: 6px;
	}

	.hs-pdp-details .hs-faq-split__text::-webkit-scrollbar-track {
		border-radius: 6px;
		background: color-mix(in srgb, var(--hs-navy, #14275a) 10%, transparent);
	}

	.hs-pdp-details .hs-faq-split__text::-webkit-scrollbar-thumb {
		border-radius: 6px;
		background: color-mix(in srgb, var(--hs-navy, #14275a) 55%, transparent);
	}

	/* Firefox (no ::-webkit-scrollbar). Setting these in Chrome would switch off the styles above. */
	@supports not selector(::-webkit-scrollbar) {
		.hs-pdp-details .hs-faq-split__text {
			scrollbar-width: thin;
			scrollbar-color: color-mix(in srgb, var(--hs-navy, #14275a) 55%, transparent) color-mix(in srgb, var(--hs-navy, #14275a) 10%, transparent);
		}
	}
}

/* Single item (static card, no accordion): fills the row the panel sets; the text scrolls inside. */
.hs-pdp-details__list--single .hs-faq-split__question {
	cursor: auto;
}

@media (min-width: 1024px) {
	.hs-pdp-details__list--single {
		position: relative;
		align-self: stretch;
	}

	.hs-pdp-details__list--single .hs-faq-split__item {
		position: absolute;
		inset: 0;
		display: flex;
		flex-direction: column;
	}

	.hs-pdp-details__list--single .hs-faq-split__answer {
		flex: 1 1 auto;
		min-height: 0;
	}

	.hs-pdp-details__list--single .hs-faq-split__text {
		flex: 1 1 auto;
		align-self: stretch;
		min-height: 0;
		max-height: none;
	}
}

/* ---------- P05 Pairs well with (7:827) ---------- */

.hs-pdp-pairs {
	padding: 64px 0 24px;
}

/* Figma 14:2021: heading, text and button centred above the cards. */
.hs-pdp-pairs .hs-frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.hs-pdp-pairs__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.hs-pdp-pairs__heading {
	font-size: 64px;
	line-height: 1;
	text-box: trim-both cap alphabetic;
}

.hs-pdp-pairs__text {
	max-width: 510px;
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
}

.hs-pdp-pairs__grid {
	width: 100%;
}

/* Pairs-well-with cards (Figma 14:2027): 24px rhythm and a 28px title, vs 20px / 30px on the Shop grid. */
.hs-pdp-pairs .hs-product-card__copy,
.hs-pdp-pairs .hs-product-card__info {
	gap: 24px;
}

.hs-pdp-pairs .hs-product-card__title {
	font-size: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1279px) {
	.hs-pdp-hero {
		gap: 40px;
		padding: 40px;
	}

	.hs-pdp-media {
		width: 50%;
	}

	.hs-pdp-inside__card--count,
	.hs-pdp-inside__card--included {
		flex-basis: 300px;
	}

	.hs-pdp-details__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 1023px) {
	.hs-pdp-hero,
	.hs-pdp--physical .hs-pdp-hero:not(.hs-pdp-hero--gallery) {
		flex-direction: column;
		align-items: stretch;
	}

	.hs-pdp-media {
		width: 100%;
	}

	.hs-pdp--physical .hs-pdp-hero:not(.hs-pdp-hero--gallery) .hs-pdp-media__main {
		flex: none;
		min-height: 0;
	}

	.hs-pdp-inside__cards {
		flex-direction: column;
	}

	.hs-pdp-inside__card--count,
	.hs-pdp-inside__card--included {
		flex-basis: auto;
	}

	.hs-pdp-details__inner {
		grid-template-columns: 1fr;
	}

	.hs-pdp-details__media {
		flex: none;
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.hs-pdp-inside__heading,
	.hs-pdp-details__heading,
	.hs-pdp-pairs__heading {
		font-size: 48px;
	}
}

@media (max-width: 767px) {
	.hs-pdp-hero {
		gap: 28px;
		padding: 20px;
		border-radius: var(--hs-radius-md);
	}

	.hs-pdp-media__main {
		border-radius: 24px;
	}

	.hs-pdp-media__thumbs {
		gap: 8px;
	}

	.hs-pdp-media__thumb {
		height: auto;
		aspect-ratio: 1;
		border-radius: 14px;
	}

	.hs-buybox__heading {
		font-size: 36px;
	}

	.hs-buybox__summary,
	.hs-buybox__summary p,
	.hs-pdp--tool .hs-buybox__summary,
	.hs-pdp--tool .hs-buybox__summary p,
	.hs-pdp--course .hs-buybox__summary,
	.hs-pdp--course .hs-buybox__summary p {
		font-size: 16px;
	}

	.hs-buybox > .price {
		font-size: 36px;
	}

	.hs-radio-cards--row {
		grid-template-columns: 1fr;
	}

	.hs-buybox__form .hs-btn {
		flex: 1 1 auto;
	}

	.hs-pdp-inside {
		padding-block: 48px;
	}

	.hs-pdp-inside .hs-frame {
		gap: 32px;
	}

	.hs-pdp-inside__card {
		padding: 28px 24px;
	}

	.hs-pdp-inside__card--count {
		gap: 28px;
	}

	.hs-pdp-inside__title {
		font-size: 26px;
	}

	.hs-pdp-inside__heading,
	.hs-pdp-details__heading,
	.hs-pdp-pairs__heading {
		font-size: 40px;
	}

	.hs-pdp-details__panel {
		padding: 16px;
		border-radius: 24px;
	}

	.hs-pdp-details__media {
		border-radius: 18px;
	}

	.hs-pdp-details .hs-faq-split__text {
		padding-right: 0;
	}

	.hs-pdp-details .hs-faq-split__icon {
		width: 20px;
		height: 20px;
	}

	.hs-pdp-pairs__text {
		font-size: 18px;
	}
}

/* ---------- Variation form details ---------- */

/* Woo slides the variation box in; nothing visible to show when availability is empty. */
.hs-buybox .single_variation_wrap .woocommerce-variation:has(.woocommerce-variation-availability:empty) {
	display: none !important;
}

.hs-buybox .single_add_to_cart_button[hidden] {
	display: none;
}

/* Woo adds .wp-element-button; theme.json's `:root :where(.wp-element-button)` (same specificity as
   .hs-btn, printed later) resets text-transform. Design: "Add To Cart" / "Start Now". */
.hs-buybox .single_add_to_cart_button {
	text-transform: capitalize;
}
