/* MGV 1.2.6 | Exactly 3 user-requested UI corrections. Native Woo variations/cart remain intact. */
/* ---- 1. Compact variation panel with a single horizontal purchase row ---- */
body.single-product.mgv123-ui-product div.product .summary form.variations_form {
  display:block!important;min-height:0!important;margin:8px 0 10px!important;padding:10px 12px!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form table.variations,
body.single-product.mgv123-ui-product div.product .summary form.variations_form table.variations tbody {
  display:block!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form table.variations tr {
  display:block!important;margin:0 0 12px!important;padding:0!important;min-height:0!important;height:auto!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form table.variations tr:last-child {
  margin-bottom:5px!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .mgv93-options {
  margin:3px 0 0!important;padding:0!important;gap:8px!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .single_variation_wrap {
  display:block!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation.single_variation {
  min-height:0!important;height:auto!important;margin:0!important;padding:0!important;
}
/* The blank variation result must not reserve 60–100px. A real variation price or description stays visible. */
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation.single_variation:not(:has(.woocommerce-variation-price .price,.woocommerce-variation-description p)) {
  display:none!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-price {
  margin:0 0 6px!important;padding:0!important;min-height:0!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart {
  display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;
  grid-auto-flow:row!important;align-items:center!important;justify-items:stretch!important;
  gap:8px 12px!important;margin:5px 0 0!important;padding:0!important;
  width:100%!important;min-width:0!important;min-height:0!important;height:auto!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;display:flex!important;align-items:center!important;
  justify-content:flex-start!important;margin:0!important;padding:0!important;
  width:82px!important;max-width:82px!important;min-width:0!important;min-height:0!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .quantity .qty {
  margin:0!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:44px!important;min-height:44px!important;box-sizing:border-box!important;
}
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;
  min-height:44px!important;height:auto!important;margin:0!important;
  padding:10px!important;box-sizing:border-box!important;line-height:1.25!important;
  font-size:15px!important;border-radius:10px!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;display:block!important;
  width:100%!important;max-width:100%!important;margin:2px 0 0!important;
  padding:8px 10px!important;min-height:0!important;box-sizing:border-box!important;
  font-size:12px!important;line-height:1.5!important;
}
/* WooCommerce's validation/stock logic is untouched. These two labels remain buyer-hidden. */
body.single-product.mgv123-ui-product div.product .summary form.variations_form .reset_variations,
body.single-product.mgv123-ui-product div.product .summary form.variations_form .woocommerce-variation-availability,
body.single-product.mgv123-ui-product div.product .summary form.variations_form .stock {
  display:none!important;
}
/* ---- 2. Four share actions in ONE row at every viewport, including 320px. ---- */
body.single-product #mgv126-share-actions {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;width:100%!important;min-width:0!important;max-width:100%!important;
  padding:0!important;margin:0!important;overflow:visible!important;
  align-items:stretch!important;justify-content:stretch!important;
}
body.single-product #mgv126-share-actions > .mgv126-share-action {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-direction:row!important;flex-wrap:nowrap!important;gap:6px!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  min-height:40px!important;height:auto!important;padding:7px 6px!important;
  border:1px solid #e5d9d5!important;border-radius:11px!important;
  box-sizing:border-box!important;background:#fffaf8!important;color:#543d42!important;
  text-align:center!important;text-decoration:none!important;white-space:normal!important;
  box-shadow:none!important;line-height:1.2!important;font-size:12px!important;
  font-weight:650!important;cursor:pointer!important;
}
body.single-product #mgv126-share-actions > .mgv126-share-action .mgv4-social-mark {
  flex:0 0 23px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;
  margin:0!important;padding:0!important;border-radius:50%!important;
  background:#74424a!important;color:white!important;font-size:13px!important;line-height:1!important;
}
body.single-product #mgv126-share-actions > .mgv126-share-action:nth-child(1) .mgv4-social-mark {background:#06a84b!important;}
body.single-product #mgv126-share-actions > .mgv126-share-action:nth-child(2) .mgv4-social-mark {background:#2e5598!important;}
body.single-product #mgv126-share-actions > .mgv126-share-action:nth-child(3) .mgv4-social-mark {background:#16a168!important;}
body.single-product #mgv126-share-actions > .mgv126-share-action:nth-child(4) .mgv4-social-mark {background:#74424a!important;}
body.single-product #mgv126-share-actions .mgv126-share-label {
  display:block!important;min-width:0!important;margin:0!important;padding:0!important;
  white-space:nowrap!important;font-size:inherit!important;color:inherit!important;font-weight:inherit!important;
}
body.single-product #mgv126-share-actions > .mgv126-share-action:hover {
  background:#f8eff1!important;border-color:#b98e9a!important;
}
body.single-product #mgv126-share-actions > .mgv126-share-action:focus-visible {
  outline:2px solid #286ac1!important;outline-offset:2px!important;
}
@media(max-width:620px) {
 body.single-product.mgv123-ui-product div.product .summary form.variations_form {
  margin:6px 0 8px!important;padding:10px!important;
 }
 body.single-product #mgv126-share-actions {gap:5px!important;}
 body.single-product #mgv126-share-actions > .mgv126-share-action {
  flex-direction:column!important;gap:4px!important;min-height:56px!important;
  padding:6px 2px!important;font-size:10.5px!important;
 }
 body.single-product #mgv126-share-actions > .mgv126-share-action .mgv4-social-mark {
  flex:0 0 22px!important;min-width:22px!important;width:22px!important;height:22px!important;
 }
}
@media(min-width:621px) and (max-width:990px){
 body.single-product #mgv126-share-actions > .mgv126-share-action {font-size:11px!important;gap:4px!important;}
}
