/* V1.2.8 – scoped purchase rows for both WooCommerce product types.
   Theme floats/flex and old widget rules must not cover delivery text. */
body.single-product.mgv123-ui-product div.product .summary form.cart:not(.variations_form):not(.grouped_form){
  display:grid!important;
  grid-template-columns:clamp(76px,23%,102px) minmax(0,1fr)!important;
  grid-auto-rows:auto!important;
  align-items:center!important;
  justify-content:stretch!important;
  column-gap:12px!important;
  row-gap:11px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  padding:14px!important;margin:10px 0 12px!important;
  box-sizing:border-box!important;
}
body.single-product.mgv123-ui-product div.product .summary form.cart:not(.variations_form):not(.grouped_form) .quantity{
  grid-column:1!important;grid-row:1!important;align-self:center!important;
  float:none!important;clear:none!important;position:static!important;
  display:flex!important;justify-content:stretch!important;align-items:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;
}
body.single-product.mgv123-ui-product div.product .summary form.cart:not(.variations_form):not(.grouped_form) .quantity .qty{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:48px!important;min-height:48px!important;margin:0!important;
  text-align:center!important;box-sizing:border-box!important;
}
body.single-product.mgv123-ui-product div.product .summary form.cart:not(.variations_form):not(.grouped_form) button.single_add_to_cart_button{
  grid-column:2!important;grid-row:1!important;align-self:stretch!important;
  float:none!important;position:static!important;transform:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:9px 12px!important;width:100%!important;
  min-width:0!important;max-width:100%!important;min-height:48px!important;
  height:auto!important;white-space:normal!important;line-height:1.25!important;
  text-align:center!important;box-sizing:border-box!important;border-radius:11px!important;
  font-size:clamp(14px,3.3vw,17px)!important;
}
body.single-product.mgv123-ui-product div.product .summary form.cart:not(.variations_form):not(.grouped_form) .mgv92-delivery-note{
  grid-column:1/-1!important;grid-row:2!important;
  float:none!important;clear:both!important;position:static!important;
  display:block!important;width:100%!important;max-width:100%!important;
  min-width:0!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:9px 11px!important;border-radius:11px!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:12px!important;line-height:1.55!important;box-sizing:border-box!important;
}
/* Variable product: preserve WC's price/availability logic but avoid note collision. */
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart{
  display:grid!important;grid-template-columns:clamp(76px,23%,102px) minmax(0,1fr)!important;
  align-items:center!important;column-gap:12px!important;row-gap:11px!important;
  min-width:0!important;width:100%!important;box-sizing:border-box!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .quantity{
  grid-column:1!important;grid-row:1!important;position:static!important;float:none!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;align-self:stretch!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .quantity input.qty{
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:48px!important;min-height:48px!important;box-sizing:border-box!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart button.single_add_to_cart_button{
  grid-column:2!important;grid-row:1!important;float:none!important;position:static!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:9px 12px!important;min-height:48px!important;
  height:auto!important;font-size:clamp(14px,3.3vw,17px)!important;
  line-height:1.25!important;white-space:normal!important;
  border-radius:11px!important;box-sizing:border-box!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .mgv92-delivery-note{
  grid-column:1/-1!important;grid-row:2!important;float:none!important;clear:both!important;
  display:block!important;position:static!important;width:100%!important;
  max-width:100%!important;min-width:0!important;height:auto!important;
  margin:0!important;padding:9px 11px!important;white-space:normal!important;
  line-height:1.55!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;
}
@media(max-width:480px){
  body.single-product.mgv123-ui-product div.product .summary form.cart:not(.variations_form):not(.grouped_form),
  body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart{
    grid-template-columns:80px minmax(0,1fr)!important;column-gap:9px!important;row-gap:10px!important;
  }
}
/* Products sold individually may have no visible quantity picker. */
@supports selector(:has(*)) {
  body.single-product.mgv123-ui-product div.product .summary form.cart:not(.variations_form):not(.grouped_form):not(:has(.quantity)) button.single_add_to_cart_button{
    grid-column:1/-1!important;
  }
}
