/* Only progressively enhanced v2 choices; native forms remain the no-JS fallback. */
.mcux-enabled .mcux-product-choice-v2 { min-width: 0; margin: 0 0 1rem; padding: 0; border: 0; }
.mcux-enabled .mcux-product-choice-v2 legend { margin-bottom: .65rem; font-size: 1rem; font-weight: 650; }
.mcux-enabled .mcux-choice-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.mcux-enabled .mcux-choice-fields[data-mcux-axis-count="1"] { grid-template-columns: minmax(0, 1fr); }
.mcux-enabled .mcux-choice-fields[data-mcux-axis-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcux-enabled .mcux-choice-fields[data-mcux-axis-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcux-enabled .mcux-choice-field { min-width: 0; }
.mcux-enabled .mcux-choice-field label { display: block; margin: 0 0 .35rem; font-size: .875rem; font-weight: 550; }
.mcux-enabled .mcux-choice-field select { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: .55rem 1.5rem .55rem .65rem; border: 1px solid #cbd5dc; border-radius: 3px; background-color: #fff; color: #24323d; font: inherit; }
.mcux-enabled .mcux-choice-field select:disabled { background-color: #f5f6f7; color: #687580; }
.mcux-enabled .mcux-product-choice-v2 select:focus-visible,
.mcux-enabled .mcux-choice-guide:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mcux-enabled .mcux-choice-status { margin: .5rem 0 0; color: #52616d; font-size: .875rem; line-height: 1.5; }
.mcux-enabled .mcux-choice-status:empty { display: none; }
.mcux-enabled .mcux-choice-retry { min-height: 44px; padding: .35rem 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.mcux-enabled .mcux-choice-native-select,
.mcux-enabled .mcux-choice-native-label,
.mcux-enabled .mcux-choice-parent-price.mcux-choice-suppressed,
.mcux-enabled form.mcux-choice-promoted .woocommerce-variation-price { display: none !important; }
.mcux-enabled form.mcux-choice-v2:not(.mcux-choice-server-shown) .single_variation { display: none !important; }
.mcux-enabled .mcux-choice-selected-price { margin: .5rem 0 1rem; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 650; line-height: 1.4; }
/* Woo wraps variation price_html in another .price. Prevent that wrapper from
   reapplying Blocksy's smaller gray variation typography inside the main price.
   Sale ins/del, VAT suffixes and reference components retain their own styles. */
body.mcux-enabled .summary .mcux-choice-selected-price > .price,
body.mcux-enabled .entry-summary .mcux-choice-selected-price > .price { font: inherit; color: inherit; }
.mcux-enabled .mcux-choice-selected-price[hidden] { display: none !important; }
.mcux-enabled .mcux-choice-selected-price del { font-size: .7em; font-weight: 400; opacity: .65; }
.mcux-enabled .mcux-choice-selected-price ins { background: none; text-decoration: none; }
.mcux-enabled .mcux-choice-selected-price .woocommerce-price-suffix { font-size: .55em; font-weight: 400; }
.mcux-enabled .mcux-choice-guide { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: .5rem; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.mcux-enabled .mcux-choice-size-target { scroll-margin-top: 100px; }
.mcux-enabled .mcux-choice-size-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.mcux-enabled .mcux-choice-size { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: .45rem .65rem; border: 1px solid #cbd5dc; border-radius: 3px; background: #fff; color: #24323d; font: inherit; line-height: 1.3; cursor: pointer; }
.mcux-enabled .mcux-choice-size[aria-checked="true"] { border-color: currentColor; background: #edf1f3; box-shadow: inset 0 0 0 1px currentColor; font-weight: 650; }
.mcux-enabled .mcux-choice-size:disabled { color: #7c8790; background: #f5f6f7; border-color: #e0e4e7; cursor: not-allowed; }
.mcux-enabled .mcux-choice-size:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 480px) {
  .mcux-enabled .mcux-choice-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mcux-enabled .mcux-choice-field:first-child { grid-column: 1 / -1; }
  .mcux-enabled .mcux-choice-fields[data-mcux-axis-count="2"] > .mcux-choice-field:first-child,
  .mcux-enabled .mcux-choice-fields[data-mcux-axis-count="4"] > .mcux-choice-field:first-child { grid-column: auto; }
}

/* Purchase controls precede all unchanged selected-variation facts. Native DOM order matches visual order. */
.mcux-enabled form.mcux-choice-v2 .single_variation_wrap > .mcux-choice-details-after-cart { margin-top: 1rem; }
.mcux-enabled form.mcux-choice-v2 table.variations { margin-bottom: .75rem; }
.mcux-enabled form.mcux-choice-v2 .single_variation .woocommerce-variation-availability .stock { margin-bottom: .5rem; }

/* Measured desktop purchase spacing. Native select/button sizes and mobile spacing stay unchanged. */
@media (min-width: 768px) {
  body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary > .woocommerce-product-details__short-description { margin-bottom: 20px; }
  body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary > .woocommerce-product-details__short-description + .ct-product-divider { margin-bottom: 12px; }
  body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary form.mcux-choice-v2 table.variations th,
  body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary form.mcux-choice-v2 table.variations td { padding-top: 4px; padding-bottom: 4px; }
  body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary form.mcux-choice-v2 table.variations tr { row-gap: 4px; }
  body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary form.mcux-choice-v2 table.variations td.value { gap: 6px; }
  body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary form.mcux-choice-v2 table.variations { margin-bottom: 8px; }
}
/* Native price_html can nest span.price: inherit through it to retain selected-price emphasis. */
body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary > .mcux-choice-selected-price.price .price,
body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary > .mcux-choice-selected-price.price .woocommerce-Price-amount,
body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary > .mcux-choice-selected-price.price .woocommerce-Price-amount bdi { font-size: inherit; font-weight: inherit; line-height: inherit; }
body.mcux-enabled.wp-theme-blocksy.single-product .product-type-variable .summary > .mcux-choice-selected-price.price .woocommerce-price-suffix { font-size: 13px; }

/* Exact recognized summary repetitions only. Units and every other paragraph stay native. */
body.mcux-enabled.wp-theme-blocksy.single-product .summary .mcux-summary-redundant,
body.mcux-enabled .mcux-generated-family-code { display: none !important; }
body.mcux-enabled.wp-theme-blocksy.single-product .woocommerce-product-gallery > .mcux-summary-photo-note {
  margin: .65rem 0 0; padding: 0; color: #52616d; font-size: .8125rem; line-height: 1.5;
}
