
body.mtf-checkout-modal-open .mtf-mobile-bottom-nav{display:none!important}
body.mtf-checkout-modal-open{padding-bottom:0!important}


/* V17: popup payment summary must always reflect the live cart. */
.mtf-popup-payment-wrap{position:relative;}
.mtf-popup-payment-wrap.is-loading{opacity:.62;pointer-events:none;}
.mtf-popup-review-summary{border:1px solid #e1e5e8;border-radius:12px;background:#fff;margin:0 0 12px;padding:10px 12px;}
.mtf-popup-review-title,.mtf-popup-review-line,.mtf-popup-review-total{display:flex;justify-content:space-between;align-items:center;gap:14px;}
.mtf-popup-review-title{font-size:16px;font-weight:800;padding-bottom:8px;border-bottom:1px solid #eceff1;}
.mtf-popup-review-line{padding:6px 0;color:#697482;font-size:13px;}
.mtf-popup-review-line strong{color:#252525;white-space:nowrap;}
.mtf-popup-review-line.is-discount strong{color:#00833e;}
.mtf-popup-review-total{border-top:1px solid #e2e5e8;margin-top:5px;padding-top:9px;font-size:16px;font-weight:800;color:#252525;}
.mtf-popup-review-total strong{font-size:18px;}
.mtf-popup-native-payment{margin-top:10px;}
.mtf-popup-native-payment #payment{background:#fff!important;border:1px solid #e1e5e8!important;border-radius:12px!important;padding:12px!important;}
.mtf-popup-native-payment #payment .place-order button#place_order{width:100%;min-height:52px;border-radius:10px;}
.mtf-popup-empty-review{padding:20px;border:1px dashed #ddd;border-radius:12px;text-align:center;color:#777;}


/* ===== V20: saved-address direct payment + compact edit + payment UI ===== */
.mtf-popup-existing-address{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dde3e7;border-radius:14px;background:#fff;padding:13px 14px;margin:4px 0 12px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.mtf-popup-existing-address-main{min-width:0}
.mtf-popup-existing-address-main>span{display:block;font-size:10px;line-height:1.2;font-weight:800;letter-spacing:1px;color:#76838c;margin-bottom:4px}
.mtf-popup-existing-address-main strong{display:block;font-size:16px;line-height:1.25;color:#222;margin-bottom:4px}
.mtf-popup-existing-address-main p{margin:0;color:#5f6b74;font-size:13px;line-height:1.45}
.mtf-popup-existing-address-edit,.mtf-popup-edit-address{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #222;border-radius:10px;background:#fff;color:#222!important;padding:0!important;cursor:pointer}
.mtf-popup-existing-address-edit i,.mtf-popup-edit-address i{margin:0!important;font-size:15px!important}
.mtf-popup-address-edit-wrap[hidden]{display:none!important}
.mtf-popup-payment-wrap #payment .wc_payment_methods{margin:0!important;padding:0!important;list-style:none!important}
.mtf-popup-payment-wrap #payment .wc_payment_method{padding:11px 0!important}
.mtf-popup-payment-wrap #payment .wc_payment_method input[type="radio"]{accent-color:#00833e!important}
.mtf-popup-payment-wrap #payment .wc_payment_method label{color:#222!important;font-weight:700!important}
