.mgb-box{border:1px solid #ddd;padding:18px;margin:18px 0;background:#fff}.mgb-box h3{margin-top:0}.mgb-price{font-size:1.2em;font-weight:600;margin-bottom:8px}.mgb-controls{display:flex;gap:10px;align-items:end;margin-top:14px}.mgb-controls label{margin:0}.mgb-qty{width:75px}.mgb-message{margin-top:10px;font-weight:600}.mgb-modal[hidden]{display:none!important}.mgb-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px}.mgb-modal-card{position:relative;background:#fff;max-width:430px;width:100%;padding:24px;border-radius:4px}.mgb-modal-card .mgb-phone{width:100%;margin:8px 0 14px}.mgb-close{position:absolute;right:10px;top:8px;border:0;background:none;font-size:26px;cursor:pointer}
.mgb-confirm-product{font-size:1.08em;font-weight:600;margin:6px 0 12px}.mgb-confirm-row{margin:5px 0}.mgb-phone-label{display:block;margin-top:14px;font-weight:600}.mgb-phone-label .mgb-phone{display:block;font-weight:400}.mgb-note{font-size:.92em;color:#666;margin:14px 0 0;line-height:1.5}
/* Group-buy products use the group-buy CTA only. Keep WooCommerce's regular price in the database, but hide the normal purchase UI on the single-product page. */
body.mgb-simple-group-buy-product .summary > .price,
body.mgb-simple-group-buy-product .summary form.cart,
body.mgb-simple-group-buy-product .single_add_to_cart_button,
body.mgb-simple-group-buy-product .wcpay-payment-request-wrapper,
body.mgb-simple-group-buy-product .wc-stripe-product-checkout-container,
body.mgb-simple-group-buy-product .ppc-button-wrapper,
body.mgb-simple-group-buy-product .paypal-buttons,
body.mgb-simple-group-buy-product #ppc-button,
body.mgb-simple-group-buy-product .payment_method_paypal,
body.mgb-simple-group-buy-product .express-payment-methods{display:none!important}
.mgb-price-block{margin:0 0 10px}.mgb-regular-price{font-size:1.05em;color:#777;margin-bottom:2px}.mgb-price{font-size:1.25em;font-weight:600;margin-bottom:3px}.mgb-saving{font-size:.95em;color:#555}
.mgb-field-label{display:block;margin:12px 0 0;font-weight:600}.mgb-field-label input{display:block;width:100%;box-sizing:border-box;margin-top:5px;font-weight:400}.mgb-field-label span{color:#b32d2e}

/* V0.4.2: Group-buy registrations do not participate in YITH Points & Rewards.
   Hide YITH product points notices on group-buy product pages as a compatibility fallback. */
body.mgb-group-buy-product #yith-par-message-product,
body.mgb-group-buy-product .yith-par-message-product,
body.mgb-group-buy-product .yith-par-message,
body.mgb-group-buy-product .ywpar_points_message,
body.mgb-group-buy-product .ywpar-product-message,
body.mgb-group-buy-product [class*="ywpar_points_product_message"]{display:none!important}


/* V0.4.4 – Group Buy price in shop/category/search product loops */
.mgb-loop-price { display:block; line-height:1.55; margin:.25em 0 .45em; }
.mgb-loop-regular { display:block; opacity:.72; font-size:.9em; }
.mgb-loop-group-price { display:block; color:#687d12; font-size:1.02em; }
.mgb-loop-group-price strong { font-weight:700; }
.mgb-loop-saving { display:block; color:#777; font-size:.82em; margin-top:1px; }
.mgb-loop-button { margin-top:.25em; }
/* V0.4.8 – Variable Product Group Buy */
body.mgb-variable-group-buy-product .summary > .price { display:none!important; }
.mgb-variable-box[hidden]{display:none!important}
.mgb-selected-variation{font-size:.95em;font-weight:600;margin:4px 0 10px;color:#555}
.mgb-variation-note{font-size:.9em;color:#777;margin-bottom:10px}
.mgb-loop-price .mgb-loop-group-price{color:#687d12}
