body.single-product .ast-single-product-payments {
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: 12px 10px 14px;
}
body.single-product .ast-single-product-payments > legend {
  max-inline-size: calc(100% - 16px);
  padding-inline: 8px;
  font-size: 0.875rem;
  line-height: 1.35;
  text-wrap: balance;
  white-space: normal;
}
body.single-product .ast-single-product-payments > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.8vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}
body.single-product .ast-single-product-payments > ul > li.ast-custom-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 44px;
  min-inline-size: 0;
  inline-size: 44px;
  max-inline-size: 44px;
  margin: 0;
}
body.single-product .ast-single-product-payments li.ast-custom-payment > .ahfb-svg-iconset {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  margin: 0;
}
body.single-product .ast-single-product-payments li.ast-custom-payment svg {
  display: block;
  inline-size: 100%;
  max-inline-size: 44px;
  block-size: 28px;
}
body.single-product .ast-single-product-payments .apxw-apple-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: 100%;
  padding: 4px;
}
body.single-product .ast-single-product-payments .apxw-apple-mark-image,
body.single-product .ast-single-product-payments li.ast-custom-payment img {
  display: block;
  max-inline-size: 100%;
  inline-size: auto;
  block-size: 26px;
  object-fit: contain;
}
body.single-product .product_meta.apex-sp-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  box-sizing: border-box;
  inline-size: 100%;
  margin: 0 0 18px;
  padding: 12px 0 0;
  border-top: 1px solid var(--ast-border-color, #d4d4d4);
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.single-product .product_meta.apex-sp-metadata > span {
  display: block;
  margin: 0;
  min-inline-size: 0;
  font-weight: 500;
}
body.single-product .product_meta.apex-sp-metadata > .tagged_as {
  flex-basis: 100%;
}
body.single-product .product_meta.apex-sp-metadata a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.single-product .apex-sp-editorial-slot {
  display: block;
}
@media (max-width: 767px) {
  body.single-product .product_meta.apex-sp-metadata {
    margin-block: 0 20px;
    padding: 12px 2px 0;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.single-product .product_meta.apex-sp-metadata {
    scroll-behavior: auto;
  }
}

/* Desktop review and checkout share a deliberate gap. Keep existing phone spacing. */
@media (min-width: 768px) {
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot + .ast-single-product-payments {
    margin-block-start: 16px;
  }
  body.single-product .summary.entry-summary > .apex-pdp-trustrow {
    justify-content: flex-start;
    text-align: start;
    gap: 6px 10px;
    padding-block-start: 4px;
  }
}
/* Retain native Woo tab links, roles and keyboard behavior; change presentation only. */
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 600px;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid #cbd5df;
  border-radius: 15px;
  background: rgba(240, 246, 249, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  list-style: none;
  overflow: visible;
}
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs::before,
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li::before,
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li::after {
  display: none;
}
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li {
  display: flex;
  float: none;
  flex: 1 1 0;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 48px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d4dee6;
  border-radius: 10px;
  color: #334155;
  background: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(15, 35, 52, .05);
}
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li.active > a {
  color: #fff;
  background: #142e40;
  border-color: #142e40;
  box-shadow: 0 2px 5px rgba(15, 35, 52, .14);
}
@media (hover: hover) {
  body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li:not(.active) > a:hover {
    color: #12324b;
    border-color: #6a879c;
    background: #f7fbff;
  }
}
body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li > a:focus-visible {
  outline: 2px solid #0867cc;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  body.single-product div.product .woocommerce-tabs ul.tabs.wc-tabs > li > a {
    padding-inline: 8px;
    font-size: 13px;
  }
}

/* Replace duplicated native section spacing; retain the existing content margins. */
body.single-product div.product > div.images,
body.single-product div.product > .summary.entry-summary {
  margin-block-end: 0;
}
body.single-product div.product > .woocommerce-tabs {
  padding-block-start: 16px;
}

@media (max-width: 767px) {
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot + .ast-single-product-payments {
    margin-block-start: 16px;
  }
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 8px;
    margin-block-start: 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: start;
  }
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review__text {
    white-space: normal;
  }
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review__sep {
    display: none;
  }
}

/* Native #content rules otherwise restore block LI/anchors and the old 1px rule. */
body.single-product #content div.product .woocommerce-tabs ul.tabs.wc-tabs {
  align-items: stretch;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs.wc-tabs > li {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  flex: 1 1 0;
  min-inline-size: 0;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs.wc-tabs > li > a {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  justify-content: center;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs.wc-tabs::before,
body.single-product #content div.product .woocommerce-tabs ul.tabs.wc-tabs::after {
  display: none;
}

/* Keep Woo's programmatic reset and alert; only remove its visible Clear link. */
body.single-product #content div.product .summary.entry-summary form.variations_form a.reset_variations {
  display: none !important;
}
/* The native presentation table contains only the label/select; CTA and price stay outside. */
body.single-product #content div.product .summary.entry-summary form.variations_form > table.variations {
  box-sizing: border-box;
  border-collapse: separate;
  border-spacing: 0;
  padding: 12px 14px 14px;
  border: 1px solid #d4e0e7;
  border-radius: 12px;
  background: linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
    url('https://apexlab.org/wp-content/uploads/2026/01/apex-laboratory-brand-asset-03.jpeg') center / cover no-repeat #f7fafc;
}
body.single-product #content div.product .summary.entry-summary form.variations_form > table.variations td.value > select {
  display: block;
  margin: 0;
  background-color: #fff;
}

/* Keep the published shipping suffix together when the price line wraps. */
body.single-product .summary.entry-summary .ast-shipping-text {
  display: inline-block;
  white-space: nowrap;
}

/* Stretch only standard native quantity/CTA rows; unknown hook children retain native layout. */
body.single-product #content div.product .summary.entry-summary form.variations_form .woocommerce-variation-add-to-cart:has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))),
body.single-product #content div.product .summary.entry-summary form.cart:not(.variations_form):has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))) {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
}
body.single-product #content div.product .summary.entry-summary form.variations_form .woocommerce-variation-add-to-cart:has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))) > .quantity,
body.single-product #content div.product .summary.entry-summary form.cart:not(.variations_form):has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))) > .quantity {
  display: flex;
  align-items: stretch;
  flex: 0 0 64px;
  inline-size: 64px;
  min-inline-size: 0;
  float: none;
  margin: 0 0 1rem;
}
body.single-product #content div.product .summary.entry-summary form.variations_form .woocommerce-variation-add-to-cart:has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))) > .quantity > input.qty[type="number"],
body.single-product #content div.product .summary.entry-summary form.cart:not(.variations_form):has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))) > .quantity > input.qty[type="number"] {
  box-sizing: border-box;
  flex: 1 1 auto;
  align-self: stretch;
  inline-size: 100%;
  min-inline-size: 0;
  block-size: auto;
  min-block-size: 48px;
  margin: 0;
  font-size: 16px !important;
}
body.single-product #content div.product .summary.entry-summary form.variations_form .woocommerce-variation-add-to-cart:has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))) > button.single_add_to_cart_button,
body.single-product #content div.product .summary.entry-summary form.cart:not(.variations_form):has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"]))) > button.single_add_to_cart_button {
  align-self: stretch;
  flex: 0 1 50%;
  min-inline-size: 0;
  block-size: auto;
  float: none;
  margin: 0 0 1rem;
}

/* Only this standard simple flex row no longer needs its empty float clearfix. */
body.single-product #content div.product .summary.entry-summary form.cart:not(.variations_form):has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"])))::before,
body.single-product #content div.product .summary.entry-summary form.cart:not(.variations_form):has(> .quantity > input.qty[type="number"]):has(> button.single_add_to_cart_button):not(:has(> :not(.quantity):not(button.single_add_to_cart_button):not(input[type="hidden"]))):not(:has(> .quantity > :not(label.screen-reader-text):not(input.qty[type="number"])))::after {
  display: none;
}

/* Preserve the complete native review and both links on one line. */
body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review {
  flex-wrap: nowrap;
  white-space: nowrap;
}
body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review__text,
body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review__link {
  white-space: nowrap;
}
body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review > .apex-editorial-review__text,
body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review > .apex-editorial-review__link {
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review {
    gap: 0 3px;
    font-size: clamp(10px, 3.125vw, 12px);
  }
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review__icon,
  body.single-product .summary.entry-summary > .apex-sp-editorial-slot .apex-editorial-review__sep {
    display: none;
  }
  body.single-product .summary.entry-summary > .apex-pdp-trustrow {
    margin-block-end: 18px;
  }
}
/* Reuse the viewed main-cart ice: reveal its lower diagonal detail, keep select white. */
body.single-product #content div.product .summary.entry-summary form.variations_form > table.variations {
  background-image: linear-gradient(rgba(255, 255, 255, .62), rgba(255, 255, 255, .62)),
    url('https://apexlab.org/wp-content/uploads/2026/01/apex-laboratory-brand-asset-03.jpeg');
  background-position: center 66%;
}
