/* Core Marketplace Product Card v5.3.9 — final buybox gap cleanup only.
   Do not touch gallery, benefits, parameters, description or security here. */

body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary,
body.single-product.woocommerce.amui-product-card-v539 .amui-product-main > div.summary{
  display:block!important;
  gap:0!important;
  row-gap:0!important;
  column-gap:0!important;
}

/* The right column must be one compact white buybox:
   seller row -> price row -> quantity/CTA row. No grey spacer between price and form. */
body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price,
body.single-product.woocommerce.amui-product-card-v539 div.product .summary .price{
  margin:0!important;
  margin-bottom:0!important;
  border-bottom:0!important;
}

body.single-product.woocommerce.amui-product-card-v538 div.product form.cart,
body.single-product.woocommerce.amui-product-card-v539 div.product form.cart{
  margin-top:0!important;
  transform:none!important;
  border-top:1px solid #d8dee6!important;
}

/* Collapse every legacy availability/context spacer that can remain between price and cart. */
body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price + .stock,
body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price + p.stock,
body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price + .amui-product-buybox-context,
body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price + .amui-product-highlights,
body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price + .woocommerce-product-details__short-description,
body.single-product.woocommerce.amui-product-card-v538 div.product .summary .price + .product_meta,
body.single-product.woocommerce.amui-product-card-v539 div.product .summary .price + .stock,
body.single-product.woocommerce.amui-product-card-v539 div.product .summary .price + p.stock,
body.single-product.woocommerce.amui-product-card-v539 div.product .summary .price + .amui-product-buybox-context,
body.single-product.woocommerce.amui-product-card-v539 div.product .summary .price + .amui-product-highlights,
body.single-product.woocommerce.amui-product-card-v539 div.product .summary .price + .woocommerce-product-details__short-description,
body.single-product.woocommerce.amui-product-card-v539 div.product .summary .price + .product_meta{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
}

/* In case a browser keeps a hidden Woo node as an empty line, force all known hidden
   buybox helpers to be physically non-layout. */
body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary > .stock,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary > p.stock,
body.single-product.woocommerce.amui-product-card-v538 .amui-product-main > div.summary > .amui-product-buybox-context,
body.single-product.woocommerce.amui-product-card-v539 .amui-product-main > div.summary > .stock,
body.single-product.woocommerce.amui-product-card-v539 .amui-product-main > div.summary > p.stock,
body.single-product.woocommerce.amui-product-card-v539 .amui-product-main > div.summary > .amui-product-buybox-context{
  display:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  overflow:hidden!important;
}
