/* Product purchase — Template Product (2026-10): breadcrumb 40 top; grid 40/76, image card 1.05 (4:3, radius 24) +
   info .95, gap 56; kicker 12 uppercase; H1 48/1.08; price 36 + "From"/period 15 .68; note 13 .68; short 16/1.6 .82;
   selects 48 high, label 13.5 700; buttons mt 28 gap 16; partner note 13 .82 / .68; trust rows 13.5 .82, check orange. */
.bd-pp { color: var(--bd-haze); }
.bd-pp :where(p, h1, ul) { margin: 0; }
.bd-pp__top { padding-top: calc(40px * var(--bd-s)); }
.bd-pp__crumbs { font-size: 13px; }
.bd-pp__crumbs a { color: var(--bd-body); }
.bd-pp__notices:not(:empty) .woocommerce-notices-wrapper:not(:empty) { margin-top: 22px; }

.bd-pp__grid { display: flex; gap: 56px; align-items: flex-start; padding-block: calc(40px * var(--bd-s)) calc(96px * var(--bd-s)); }
.bd-pp__media { flex: 1.05; min-width: 0; position: relative; aspect-ratio: 4 / 3; border-radius: var(--bd-r-card); overflow: hidden; background: var(--bd-quiet); border: 1px solid var(--bd-hairline); }
.bd-pp__illu { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.bd-pp__media-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font: 700 40px/1.15 var(--wp--preset--font-family--montserrat); letter-spacing: -.02em; color: var(--bd-body); }
.bd-pp__info { flex: .95; min-width: 0; padding-top: 6px; }

.bd-pp__kicker { font: 600 12px/1.3 var(--wp--preset--font-family--montserrat); letter-spacing: .07em; text-transform: uppercase; color: var(--bd-sun); }
.bd-pp__title { font: 700 48px/1.08 var(--wp--preset--font-family--montserrat); letter-spacing: -.025em; color: var(--bd-haze); margin-top: 16px !important; text-wrap: balance; }
.bd-pp__price { margin-top: 22px; }
.bd-pp__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.bd-pp__from, .bd-pp__period { font: 600 15px/1.2 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
.bd-pp__amount { font: 700 36px/1 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
.bd-pp__note { margin-top: 8px !important; font: 600 13px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
.bd-pp__short { margin-top: 22px !important; font: 600 16px/1.6 var(--wp--preset--font-family--montserrat); color: var(--bd-body); }
.bd-pp__short a, .bd-pp__compare { color: var(--bd-sun); text-decoration: underline; text-underline-offset: 3px; }
.bd-pp__short a:hover, .bd-pp__compare:hover { color: var(--bd-haze); }

/* Option selects: WooCommerce's variations table becomes a column of label + select. */
.bd-pp .variations, .bd-pp .variations tbody, .bd-pp .variations tr, .bd-pp .variations th, .bd-pp .variations td { display: block; padding: 0; border: 0; background: none; text-align: left; }
.bd-pp .variations { width: 100%; margin: 28px 0 0; border-collapse: collapse; line-height: 1.3; }
.bd-pp .variations tbody { display: flex; flex-direction: column; gap: 14px; }
.bd-pp .variations tr { display: flex; flex-direction: column; gap: 7px; }
.bd-pp .variations label, .bd-pp__label { font: 700 13.5px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
.bd-pp .variations select, .bd-pp__field select { width: 100%; min-height: 48px; padding: 0 40px 0 14px; font: 600 14.5px/1.2 var(--wp--preset--font-family--montserrat); }
.bd-pp .variations select[aria-invalid="true"] { border-color: #ff8fa8; }
.bd-pp .reset_variations, .bd-pp .reset_variations_alert { display: none !important; }
.bd-pp__error { margin-top: 14px !important; font: 600 13px/1.4 var(--wp--preset--font-family--montserrat); color: #ff8fa8; }
.bd-pp__selects { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.bd-pp__field { display: flex; flex-direction: column; gap: 7px; }

/* Buy row: button, partner swap, "Compare plans" side by side (WooCommerce's quantity field stays hidden). */
.bd-pp__buy { margin-top: 28px; }
.bd-pp__form form.cart { margin: 0; }
.bd-pp__form form.cart:not(.variations_form), .bd-pp .single_variation_wrap, .bd-pp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bd-pp .variations_form .single_variation_wrap { margin-top: 28px; }
.bd-pp .single_variation_wrap > .single_variation { flex-basis: 100%; margin-top: -8px; }
.bd-pp .single_variation_wrap > .single_variation:empty,
.bd-pp .woocommerce-variation-price, .bd-pp .woocommerce-subscriptions-product-details, .bd-pp .quantity, .bd-pp .first-payment-date { display: none !important; }
.bd-pp .woocommerce-variation-availability, .bd-pp .woocommerce-variation-description { font: 600 13px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
.bd-pp .woocommerce-variation-availability p, .bd-pp .woocommerce-variation-description p { margin: 0; }
/* Free Downloads (somdn) hides the disabled add-to-cart area; the button stays and explains a missing choice. */
.bd-pp .woocommerce-variation-add-to-cart { display: flex !important; align-items: center; gap: 16px; }
.bd-pp .single_add_to_cart_button,
.bd-pp .bd-partner-buy { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 0; margin: 0; padding: 16px 30px; border: 0; border-radius: var(--bd-r-pill); background: var(--bd-sun); color: var(--bd-ink); font: 700 15px/1.2 var(--wp--preset--font-family--montserrat); text-decoration: none; cursor: pointer; transition: background-color 180ms ease-out; }
.bd-pp .single_add_to_cart_button:hover, .bd-pp .bd-partner-buy:hover { background: #fbb06c; color: var(--bd-ink); }
.bd-pp .single_add_to_cart_button.wc-variation-is-unavailable { opacity: .55; cursor: not-allowed; }
.bd-pp .single_add_to_cart_button.loading { opacity: .7; }
.bd-pp__compare { font: 700 15px/1.2 var(--wp--preset--font-family--montserrat); text-underline-offset: 4px; }
.bd-pp .bd-free-dl :where(.somdn-shortcode-wrap, .somdn-download-wrap, form) { margin: 0; padding: 0; display: contents; }
.bd-pp .bd-free-dl .somdn-form-table-bottom { display: contents; }
.bd-pp .somdn-download-wrap-variable, .bd-pp .somdn-variable-anchor { display: none !important; }
.bd-pp__hint { margin-top: 14px !important; max-width: 460px; font: 600 13px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-body); }

/* Moodle Partners note (bdecent-core shop-partners.php). */
.bd-pp .bd-partner-note p { margin: 0; }
.bd-pp .bd-partner-note__why { margin-top: 14px !important; max-width: 460px; font: 600 13px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-body); }
.bd-pp .bd-partner-note__local { margin-top: 16px !important; font: 600 13px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
.bd-pp .bd-partner-note__local a { color: var(--bd-sun); }
.bd-pp .bd-partner-note__local a:hover { color: var(--bd-haze); }

/* Trust rows in <details> "Plan details": always open with the summary hidden from 768px; a collapsed short list on
   mobile (responsive spec §5, view.js closes it there). */
.bd-pp__more { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--bd-hairline); }
.bd-pp__more-sum { display: none; }
.bd-pp__trust { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font: 600 13.5px/1.45 var(--wp--preset--font-family--montserrat); color: var(--bd-body); }
.bd-pp__trust li { display: flex; gap: 10px; align-items: flex-start; }
.bd-pp__trust svg { flex: none; margin-top: 2px; color: var(--bd-sun); }

/* Notices: WooCommerce's block notice CSS colours the notice link #2f2f2f !important (unreadable on the dark banner):
   Sunshade; below 1024px on its own line with a 44px tap target. */
.bd-pp .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward { color: var(--bd-sun) !important; opacity: 1 !important; }
@media (max-width: 1023px) {
	.bd-pp .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward { float: none !important; display: flex !important; align-items: center; width: fit-content; min-height: 44px; margin: 2px 0 -10px !important; }
}

/* Option cards (responsive spec §5 "Template Product"): below 1024px view.js shows each option select as stacked
   radio cards, styled like the checkout's payment box: border 1.5 .24, radius 4, padding 13/16, min-height 52, radio
   dot 18 (chosen: Sunshade dot and border). The select stays in the form, hidden. */
.bd-pp__options { display: none; }
.bd-pp__option { display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-height: 52px; padding: 13px 16px; border: 1.5px solid rgba(247,248,249,.24); border-radius: var(--bd-r-sm); background: var(--bd-quiet); font: 600 14.5px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); cursor: pointer; transition: border-color 180ms ease-out, background-color 180ms ease-out; }
.bd-pp__option:hover { border-color: rgba(247,248,249,.5); }
.bd-pp__option input { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 18px; height: 18px; margin: 0; border: 1.5px solid rgba(247,248,249,.5); border-radius: 100px; background: transparent; cursor: pointer; }
.bd-pp__option input:checked { border: 5px solid var(--bd-sun); }
.bd-pp__option input:focus-visible { outline: none; }
.bd-pp__option:has(input:checked) { border-color: var(--bd-sun); background: rgba(250,154,66,.08); }
.bd-pp__option:has(input:focus-visible) { outline: 2px solid var(--bd-sun); outline-offset: 3px; }
.bd-pp__option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.bd-pp__option:has(input:disabled) input { cursor: not-allowed; }
.bd-pp__options.is-invalid .bd-pp__option { border-color: #ff8fa8; }

/* Purchase bar: only below 768px (view.js unhides it when the buy area has a primary action). */
.bd-pp__bar { display: none; }

@media (max-width: 1279px) {
	.bd-pp__grid { gap: 40px; }
	.bd-pp__title { font-size: 42px; }
	/* Tablet and mobile: 44px tap targets without changing the line heights (responsive spec §3, §6). */
	.bd-pp__compare { display: inline-flex; align-items: center; min-height: 44px; }
	.bd-pp__crumbs { align-items: center; }
	.bd-pp__crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -13px; }
}
@media (max-width: 1023px) {
	.bd-pp__grid { flex-direction: column-reverse; align-items: stretch; gap: 32px; }
	.bd-pp__media { flex: none; width: 100%; max-width: 640px; }
	.bd-pp__info { flex: none; padding-top: 0; }
	.bd-pp .single_add_to_cart_button, .bd-pp .bd-partner-buy, .bd-pp__actions .bd-btn { min-height: 48px; }
	.bd-pp select.has-cards { display: none; }
	.bd-pp__options { display: flex; flex-direction: column; gap: 8px; }
}
/* Mobile: H1 36/1.1, buttons full width; purchase bar fixed at the bottom (Ink .94 + blur like the sticky product bar
   §4.4): price left (amount 20 700, "From"/period 12.5 .68), primary button filling the rest (min-height 48). The
   page gets the bar's height as bottom padding so the footer stays readable. */
@media (max-width: 767px) {
	.bd-pp__title { font-size: 36px; line-height: 1.1; }
	.bd-pp__amount { font-size: 30px; }
	.bd-pp__media-name { font-size: 30px; }
	.bd-pp .woocommerce-variation-add-to-cart, .bd-pp .single_add_to_cart_button, .bd-pp .bd-partner-buy, .bd-pp__actions .bd-btn, .bd-pp__actions .bd-free-dl { width: 100%; }
	.bd-pp__bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; box-sizing: border-box; min-height: 72px; margin: 0; padding: 12px var(--bd-gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(5,1,52,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--bd-hairline); }
	.bd-pp__bar-price { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; max-width: 46%; margin: 0; }
	.bd-pp__bar-from, .bd-pp__bar-period { font: 600 12.5px/1.2 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
	.bd-pp__bar-amount { font: 700 20px/1.1 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
	.bd-pp .bd-pp__bar-btn { flex: 1 1 150px; min-height: 48px; padding: 10px 18px; line-height: 1.2; text-align: center; white-space: normal; }
	.bd-pp .bd-pp__bar-btn.is-long { flex-basis: 100%; } /* e.g. "Request via a Moodle Premium Partner": own row. */
	.bd-pp__bar:has(.is-long) .bd-pp__bar-price { max-width: none; }
	.bd-pp .bd-pp__bar-btn.is-unavailable { opacity: .55; }
	.bd-pp.has-bar .bd-pp__buy :is(.single_add_to_cart_button, .bd-btn--primary):not(.bd-pp__bar-btn),
	.bd-pp.has-bar .woocommerce-variation-add-to-cart { display: none !important; }
	body:has(.bd-pp.has-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
	.bd-pp__more { padding-top: 6px; }
	.bd-pp__more-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; list-style: none; cursor: pointer; font: 700 14.5px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
	.bd-pp__more-sum::-webkit-details-marker { display: none; }
	.bd-pp__more-sum::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease-out; }
	.bd-pp__more[open] .bd-pp__more-sum::after { transform: translateY(2px) rotate(-135deg); }
	.bd-pp__more[open] .bd-pp__trust { padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.bd-pp__option, .bd-pp__more-sum::after { transition: none; }
}
