/* ---------------------------------------------------------------------------
   VERTICAL RHYTHM — compact top band + tight buy box (owner 2026-11-24)
   Owner: "a lot of white space at the top for the RESEARCH USE ONLY
   disclaimer" and "white space pushing the add to cart button pretty low".

   GATED: every rule needs the pp-pdp-tight-v1 body class, which
   pdp-v2-aminoclub.php adds only while pp_pdp_tight_v1 is on (default OFF).
   Without the class this whole block is inert.

   Spacing only: no element, word, colour or type size changes here, and
   nothing is hidden. Measured on PP-3R, Add to Cart rises 305px on desktop
   (1440) and 338px on a 375px phone.

   One scale for every gap in this block: 4 / 8 / 12 / 16. Controls inside a
   group sit 2-8px apart; groups (identity, selectors, status, bulk, action,
   proof) sit 12px apart, so proximity does the grouping instead of air.

   Selectors use body...single-product div.product, not the ".woocommerce
   div.product" form used higher up: on the PDP "woocommerce" is a BODY class,
   so those descendant selectors never match and looser defaults were winning.
   Where a competing rule is !important (css/overrides-product.css,
   css/overrides-base.css, sections/pp-bulk-ladder.css) the rule here is too,
   and carries more specificity.

   The three above-the-fold rules marked CRITICAL are mirrored, with literal
   values, in inc/critical-css/pdp-tight-v1.css so first paint already has
   them; change both together. The base stylesheet keeps its own cache version.
   --------------------------------------------------------------------------- */
body.pp-theme-v2.pp-pdp-tight-v1.single-product {
  --ppv2-pdp-gap-xs: 4px;
  --ppv2-pdp-gap-sm: 8px;
  --ppv2-pdp-gap-md: 12px;
  --ppv2-pdp-gap-lg: 16px;
}

/* (a) Top of page. The RUO notice keeps its copy, link, colours and 12px type;
   only its padding (12px -> 6px) and bottom margin (24px -> 12px) tighten.
   Desktop/tablet only: below 768px the same node is moved under the product
   and styled as the .pp-shop-ruo-notice--pdp-mobile-end reading card above.
   CRITICAL (both rules). */
body.pp-theme-v2.pp-pdp-tight-v1.single-product .woocommerce-breadcrumb {
  margin-bottom: var(--ppv2-pdp-gap-sm);
  padding-top: 10px;
  padding-bottom: 10px;
}
@media (min-width: 768px) {
  body.pp-theme-v2.pp-pdp-tight-v1.single-product .pp-shop-ruo-notice {
    margin-bottom: var(--ppv2-pdp-gap-md);
    padding: 6px var(--ppv2-pdp-gap-lg);
  }
}

/* (b) Identity: title, RUO badge, price. The price lost a 1.2em paragraph
   margin (30.72px at this size). CRITICAL. */
body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product .summary > p.price {
  margin-bottom: var(--ppv2-pdp-gap-md) !important;
}

/* (c) Selectors: Product Line, Vial Size. Labels drop WooCommerce's 2em cell
   leading and 8px cell padding; "Clear" shares the pill row when it fits
   (it wraps under the pills when it does not) instead of owning a line. */
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product form.variations_form table.variations th.label {
  padding-top: 0 !important;
  line-height: 1.4;
}
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product form.variations_form table.variations tr + tr {
  margin-top: var(--ppv2-pdp-gap-md) !important;
}
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product form.variations_form table.variations td.value {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ppv2-pdp-gap-xs) var(--ppv2-pdp-gap-md);
  padding-bottom: 0 !important;
}
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product form.variations_form table.variations td.value .reset_variations {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  line-height: 1.2;
}

/* (d) Status and bulk: research-only line, availability, bulk explainer, the
   buy-more ladder. Bulk nodes sit in the form on variable products and beside
   it on simple ones, so they are scoped to the summary. Availability keeps the
   4px margins overrides-base.css gives .summary .stock. */
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product form.cart .woocommerce-variation.single_variation {
  margin: var(--ppv2-pdp-gap-md) 0 0 !important;
}
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product form.cart .woocommerce-variation-description p {
  margin-bottom: 2px;
}
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product .summary .pp-bulk-link-wrap {
  margin: var(--ppv2-pdp-gap-md) 0 0 !important;
}
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product .summary .pp-bulk-link-wrap .pp-bulk-blurb {
  margin-bottom: 0 !important;
}
html body.pp-theme-v2.pp-pdp-tight-v1.pp-bulk-ladder-v1.single-product div.product .summary .awdr-bulk-customizable-table {
  margin: 10px 0 var(--ppv2-pdp-gap-md) !important;
}
/* WDR re-renders the ladder into a second wrapper of the same class nested in
   the first; pp-bulk-ladder.css zeroes that inner box and the rule above must
   not give it a margin of its own. */
html body.pp-theme-v2.pp-pdp-tight-v1.pp-bulk-ladder-v1.single-product div.product .summary .awdr-bulk-customizable-table .awdr-bulk-customizable-table {
  margin: 0 !important;
}
/* Simple products stack quantity, button and the two trust rows in one column
   form with no gap; give them the 10px the variable row already has. */
html body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product .summary form.cart:not(.variations_form) {
  row-gap: 10px;
}

/* (e) Proof, under the action: trust grid, then the Certificate of Analysis
   card directly above the Made in USA / GMP seal row (owner 2026-11-24; the
   order is set by priorities 35 / 36 / 37 on woocommerce_single_product_summary
   while the gate is on). The card and the seals read as one group, so the seal
   row drops its own hairline when the card is its previous sibling;
   .product_meta keeps the single rule that closes the buy box. */
body.pp-theme-v2.pp-pdp-tight-v1.single-product .summary > .ppv2-pdp-trust {
  margin: var(--ppv2-pdp-gap-md) 0 0;
}
body.pp-theme-v2.pp-pdp-tight-v1.single-product .summary > .ppv2-pdp-coa-card {
  margin: var(--ppv2-pdp-gap-md) 0 0;
}
body.pp-theme-v2.pp-pdp-tight-v1.single-product .summary > .ppv2-pdp-coa-card + .pp-trust-marks--pdp {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}
body.pp-theme-v2.pp-pdp-tight-v1.single-product div.product .summary > .product_meta {
  margin-top: var(--ppv2-pdp-gap-md) !important;
  padding-top: var(--ppv2-pdp-gap-md) !important;
}
