/* Pahadi Magic cart + checkout polish v3.8.0 */
.pm-otp-stub{display:none!important}
#billing_phone_field .optional,#billing_phone_field label .optional{display:none!important}

/* After VERIFY is removed, use the entire phone field instead of leaving an empty reserved button column. */
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field.pm-phone-row,
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field{
  display:block!important;grid-template-columns:1fr!important;width:100%!important;min-width:0!important
}
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field>label,
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field>.woocommerce-input-wrapper{
  display:block!important;grid-column:1/-1!important;width:100%!important;max-width:none!important
}
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field input{width:100%!important;max-width:none!important}

/* Checkout order-summary actions. */
body.woocommerce-checkout .pm-order-summary-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
body.woocommerce-checkout .pm-order-summary-head h2{margin-right:auto!important}
.pmcp-order-add-more{display:inline-flex!important;align-items:center;gap:6px;padding:8px 11px;border:1px solid rgba(15,46,30,.3);border-radius:999px;background:#fffaf0;color:#0e3020!important;text-decoration:none!important;font:850 9px/1 'Manrope',sans-serif!important;letter-spacing:.05em;white-space:nowrap;transition:.18s ease}
.pmcp-order-add-more span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#0e3020;color:#f2cf72;font-size:14px;line-height:1}
.pmcp-order-add-more:hover{background:#0e3020;color:#f2cf72!important;border-color:#0e3020}
body.woocommerce-checkout .pm-order-product>span:first-child{display:flex!important;align-items:flex-start!important;gap:7px!important;min-width:0!important;flex-wrap:wrap!important}
.pmcp-order-item-name{min-width:0;flex:1 1 auto}
.pmcp-checkout-remove{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(169,70,43,.25)!important;border-radius:50%!important;background:#fff5f0!important;color:#a4472c!important;font:800 16px/1 Arial,sans-serif!important;cursor:pointer!important;padding:0!important;transition:.16s ease!important}
.pmcp-checkout-remove:hover{background:#a4472c!important;color:#fff!important;border-color:#a4472c!important}.pmcp-checkout-remove.is-loading{opacity:.45;pointer-events:none}

/* MRP first (cut), then the actual discounted value. */
.pmcp-price-pair{display:inline-flex!important;align-items:baseline!important;justify-content:flex-end!important;gap:7px!important;white-space:nowrap!important}
.pmcp-price-pair del{color:#8d8f89!important;font-size:.82em!important;font-weight:650!important;text-decoration-thickness:1.4px!important}
.pmcp-price-pair ins{color:#11170f!important;font-size:1em!important;font-weight:850!important;text-decoration:none!important}
.pm-cart-drawer-side .pmcp-price-pair{flex-direction:column!important;gap:2px!important;align-items:flex-end!important}
.pm-cart-drawer-side .pmcp-price-pair del{font-size:10px!important}.pm-cart-drawer-side .pmcp-price-pair ins{font-size:14px!important}

body.woocommerce-checkout .pmcp-special-discount-row span,body.woocommerce-checkout .pmcp-special-discount-row strong{color:#b8562f!important}
body.woocommerce-checkout .pmcp-special-discount-row i{margin-right:5px}

@media(max-width:650px){
  body.woocommerce-checkout .pm-order-summary-head{align-items:flex-start!important}.pmcp-order-add-more{padding:7px 9px!important;font-size:8px!important}
  .pmcp-price-pair{gap:5px!important}.pmcp-checkout-remove{width:22px;height:22px}
}

/* v3.8 — Delivery Details phone alignment after removing VERIFY.
   Keep phone in the right-hand column beside Full Name, but make the actual input fill that column exactly. */
body.woocommerce-checkout #billing_phone_field.pm-phone-row,
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field.pm-phone-row{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  gap:0!important;
  width:auto!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.woocommerce-checkout #billing_phone_field.pm-phone-row>label,
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field.pm-phone-row>label{
  display:block!important;
  width:100%!important;
  margin:0 0 6px!important;
  padding:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
}
body.woocommerce-checkout #billing_phone_field.pm-phone-row>.woocommerce-input-wrapper,
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field.pm-phone-row>.woocommerce-input-wrapper{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
  box-sizing:border-box!important;
}
body.woocommerce-checkout #billing_phone_field.pm-phone-row input#billing_phone,
body.woocommerce-checkout .pm-checkout-reference-v1421 #billing_phone_field.pm-phone-row input#billing_phone{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.woocommerce-checkout #billing_phone_field.pm-phone-row>.pm-otp-stub{display:none!important}

/* =========================================================
   v3.9.1 — Payment methods mobile cleanup + trust strip
   - Do not touch the desktop gateway card layout.
   - On mobile, hide the cramped Razorpay brand image only; gateway remains intact.
   - Add one compact accepted-method strip below the Pay Now savings banner.
   ========================================================= */
body.woocommerce-checkout .pmcp-payment-method-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
  margin:10px 0 12px;
  padding:9px 10px;
  border:1px solid rgba(12,46,30,.10);
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 18px rgba(16,32,22,.05);
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:30px;
  padding:5px 9px;
  border:1px solid rgba(18,44,31,.12);
  border-radius:9px;
  background:#fafbf9;
  color:#10271b;
  font:800 10px/1 'Manrope',Arial,sans-serif;
  white-space:nowrap;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark svg{
  width:15px;
  height:15px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-upi strong{
  font-size:11px;
  letter-spacing:.04em;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-gpay strong,
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-phonepe strong{
  font-size:10px;
  letter-spacing:-.01em;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-phonepe .pmcp-round-mark{
  display:grid;
  place-items:center;
  width:17px;
  height:17px;
  border-radius:50%;
  background:#5f259f;
  color:#fff;
  font:900 10px/1 Arial,sans-serif;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-gpay .pmcp-round-mark{
  display:grid;
  place-items:center;
  width:17px;
  height:17px;
  border-radius:50%;
  border:1px solid rgba(18,44,31,.14);
  background:#fff;
  color:#1a73e8;
  font:900 10px/1 Arial,sans-serif;
}

@media(max-width:782px){
  body.woocommerce-checkout .pmcp-payment-method-strip{
    flex-wrap:nowrap;
    gap:4px;
    margin:8px 0 10px;
    padding:7px 6px;
    overflow:hidden;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark{
    flex:1 1 0;
    min-width:0;
    min-height:29px;
    gap:3px;
    padding:4px 3px;
    border-radius:8px;
    font-size:8px;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark svg{
    width:13px;
    height:13px;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-upi strong,
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-gpay strong,
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-phonepe strong{
    font-size:8px;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-round-mark{
    width:15px !important;
    height:15px !important;
    font-size:8px !important;
  }

  /* The Razorpay gateway is still fully active; only its cramped mobile logo image is hidden. */
  body.woocommerce-checkout .pm-gateway-card.pm-gateway-online .pm-gateway-icon{
    display:none !important;
  }
  body.woocommerce-checkout .pm-gateway-card.pm-gateway-online .pm-gateway-content>em{
    padding-right:0 !important;
    max-width:none !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
}


/* =========================================================
   v3.9.2 — Unified payment-method presentation (desktop + mobile)
   - Accepted-method icons live outside the gateway cards, directly below SAVE banner.
   - Pay Now and COD cards are equal size.
   - Whichever gateway is selected gets the dark green/gold treatment.
   - Razorpay's cramped logo image is hidden; gateway/payment processing remains untouched.
   ========================================================= */
body.woocommerce-checkout .pmcp-payment-method-strip{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  align-items:start !important;
  justify-content:stretch !important;
  gap:10px !important;
  width:100% !important;
  margin:10px 0 14px !important;
  padding:0 2px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#101713 !important;
  font:750 10px/1.1 'Manrope',Arial,sans-serif !important;
  text-align:center !important;
  white-space:nowrap !important;
  box-shadow:none !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-icon{
  width:38px !important;
  height:32px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 !important;
  color:#17231d !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-icon svg{
  width:32px !important;
  height:32px !important;
  display:block !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark strong{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font:750 10px/1.15 'Manrope',Arial,sans-serif !important;
  color:#111713 !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-upi-mark{
  width:auto !important;
  min-width:42px !important;
  font:950 italic 18px/1 Arial,sans-serif !important;
  letter-spacing:-1.4px !important;
  color:#4b4f4d !important;
  position:relative !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-upi-mark:after{
  content:"" !important;
  width:14px !important;
  height:6px !important;
  margin-left:3px !important;
  display:inline-block !important;
  background:linear-gradient(90deg,#f58220 0 48%,#148a4b 48% 100%) !important;
  clip-path:polygon(0 0,100% 50%,0 100%,28% 50%) !important;
  vertical-align:middle !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-gpay-mark{
  width:32px !important;
  height:32px !important;
  border-radius:50% !important;
  background:conic-gradient(#4285f4 0 25%,#34a853 25% 50%,#fbbc05 50% 75%,#ea4335 75% 100%) !important;
  color:#fff !important;
  font:900 18px/32px Arial,sans-serif !important;
  text-shadow:0 1px 2px rgba(0,0,0,.2) !important;
}
body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-phonepe-mark{
  width:32px !important;
  height:32px !important;
  border-radius:50% !important;
  background:#5f259f !important;
  color:#fff !important;
  font:900 17px/32px Arial,sans-serif !important;
}

/* Hide only the decorative Razorpay image; retain all gateway fields/logic. */
body.woocommerce-checkout .pm-gateway-card.pm-gateway-online .pm-gateway-icon{
  display:none !important;
}
body.woocommerce-checkout .pm-gateway-card.pm-gateway-online .pm-gateway-label,
body.woocommerce-checkout .pm-gateway-card.pm-gateway-online .pm-gateway-content>em{
  padding-right:0 !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* Equal-size payment cards on desktop. */
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods{
  align-items:stretch !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card{
  height:auto !important;
  min-height:132px !important;
  max-height:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  background:transparent !important;
  border:0 !important;
  color:#121713 !important;
  box-shadow:none !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-label{
  height:132px !important;
  min-height:132px !important;
  display:flex !important;
  align-items:center !important;
  box-sizing:border-box !important;
  padding:18px 18px 18px 54px !important;
  border:1px solid rgba(185,86,49,.72) !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-radio{
  display:block !important;
  position:absolute !important;
  left:18px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  border:2px solid #bdb7ac !important;
  border-radius:50% !important;
  background:#fff !important;
  box-sizing:border-box !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-content>small,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-content>strong,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-content>em{
  color:inherit !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-content>small{
  color:#5b2b1b !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-content>em{
  color:#3e423f !important;
}

/* Selected gateway = dark premium card. Works for Pay Now or COD. */
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card.is-selected>.pm-gateway-label,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card:has(input[name="payment_method"]:checked)>.pm-gateway-label{
  background:linear-gradient(135deg,#07170f 0%,#0d3523 100%) !important;
  border-color:#d4a24c !important;
  color:#fff !important;
  box-shadow:0 0 0 1px rgba(212,162,76,.2) inset !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card.is-selected .pm-gateway-content>small,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card:has(input[name="payment_method"]:checked) .pm-gateway-content>small{
  color:#e8b968 !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card.is-selected .pm-gateway-content>strong,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card:has(input[name="payment_method"]:checked) .pm-gateway-content>strong{
  color:#fff !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card.is-selected .pm-gateway-content>em,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card:has(input[name="payment_method"]:checked) .pm-gateway-content>em{
  color:rgba(255,255,255,.82) !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card.is-selected .pm-gateway-radio,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card:has(input[name="payment_method"]:checked) .pm-gateway-radio{
  border-color:#e8b968 !important;
  background:transparent !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card.is-selected .pm-gateway-radio:after,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card:has(input[name="payment_method"]:checked) .pm-gateway-radio:after{
  content:"" !important;
  position:absolute !important;
  inset:4px !important;
  border-radius:50% !important;
  background:#e8b968 !important;
}

@media(max-width:782px){
  body.woocommerce-checkout .pmcp-payment-method-strip{
    gap:3px !important;
    margin:8px 0 12px !important;
    padding:0 !important;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark{
    gap:4px !important;
    font-size:8.3px !important;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-icon{
    width:31px !important;
    height:28px !important;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-icon svg{
    width:27px !important;
    height:27px !important;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark strong{
    font-size:8.2px !important;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-upi-mark{
    min-width:34px !important;
    font-size:15px !important;
  }
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-gpay-mark,
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-phonepe-mark{
    width:28px !important;
    height:28px !important;
    font-size:15px !important;
    line-height:28px !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    align-items:stretch !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card{
    width:100% !important;
    height:auto !important;
    min-height:118px !important;
    max-height:none !important;
    padding:0 !important;
    margin:0 !important;
    border-radius:16px !important;
    overflow:visible !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-label{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    height:118px !important;
    min-height:118px !important;
    padding:15px 14px 15px 52px !important;
    margin:0 !important;
    overflow:hidden !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods>li.pm-gateway-card .pm-gateway-radio{
    display:block !important;
    left:17px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:21px !important;
    height:21px !important;
    min-width:21px !important;
    min-height:21px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-gateway-content>small{
    margin:0 0 5px !important;
    font-size:9.3px !important;
    line-height:1.1 !important;
    white-space:normal !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-gateway-content>strong{
    display:block !important;
    margin:0 !important;
    font-size:19px !important;
    line-height:1.08 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-gateway-content>em{
    display:block !important;
    margin:5px 0 0 !important;
    padding:0 !important;
    font-size:10px !important;
    line-height:1.24 !important;
    white-space:normal !important;
  }
}

@media(max-width:390px){
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark strong{font-size:7.6px !important}
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-icon{width:28px !important;height:26px !important}
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-paymark-icon svg{width:25px !important;height:25px !important}
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-upi-mark{min-width:31px !important;font-size:14px !important}
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-gpay-mark,
  body.woocommerce-checkout .pmcp-payment-method-strip .pmcp-phonepe-mark{width:26px !important;height:26px !important;font-size:14px !important;line-height:26px !important}
}

/* =========================================================
   v3.9.3 — Exact payment-card shell cleanup
   - Keep ONLY the inner gateway label as the visible payment card.
   - Remove theme-created outer card shell/background around Pay Now and COD.
   - Collapse descriptive gateway text below the card without touching payment inputs/logic.
   - Compact and equal Pay Now/COD heights on desktop and mobile.
   - Force readable dark text on white/unselected cards and white/gold on selected cards.
   ========================================================= */
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked){
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  outline:0 !important;
  overflow:visible !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card::before,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card::after{
  content:none !important;
  display:none !important;
}

/* Gateway description is duplicate UI here. Keep the gateway/payment DOM intact,
   but remove only its visible descriptive paragraph and all wrapper chrome. */
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .payment_box{
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:inherit !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .payment_box > p{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* The inner gold/neutral outline is the ONE visible card. */
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  height:112px !important;
  min-height:112px !important;
  max-height:112px !important;
  margin:0 !important;
  padding:15px 18px 15px 54px !important;
  border:1px solid rgba(184,86,47,.42) !important;
  border-radius:16px !important;
  background:#fff !important;
  background-image:none !important;
  color:#101713 !important;
  box-shadow:none !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label .pm-gateway-content,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label .pm-gateway-content > strong,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label .pm-gateway-content > em{
  color:#101713 !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label .pm-gateway-content > small{
  color:#7a3a21 !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label .pm-gateway-content > strong{
  display:block !important;
  margin:0 !important;
  line-height:1.08 !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label .pm-gateway-content > em{
  display:block !important;
  margin-top:4px !important;
  line-height:1.2 !important;
}

/* Selected card only: dark green + one gold outline. */
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected > .pm-gateway-label,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked) > .pm-gateway-label{
  border-color:#d4a24c !important;
  background:linear-gradient(135deg,#07170f 0%,#0d3523 100%) !important;
  color:#fff !important;
  box-shadow:none !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected > .pm-gateway-label .pm-gateway-content,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected > .pm-gateway-label .pm-gateway-content > strong,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected > .pm-gateway-label .pm-gateway-content > em,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked) > .pm-gateway-label .pm-gateway-content,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked) > .pm-gateway-label .pm-gateway-content > strong,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked) > .pm-gateway-label .pm-gateway-content > em{
  color:#fff !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected > .pm-gateway-label .pm-gateway-content > em,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked) > .pm-gateway-label .pm-gateway-content > em{
  color:rgba(255,255,255,.84) !important;
}
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected > .pm-gateway-label .pm-gateway-content > small,
body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked) > .pm-gateway-label .pm-gateway-content > small{
  color:#e8b968 !important;
}

@media(max-width:782px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods{
    gap:10px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label{
    height:104px !important;
    min-height:104px !important;
    max-height:104px !important;
    padding:12px 13px 12px 50px !important;
    border-radius:15px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card .pm-gateway-radio{
    display:block !important;
    left:16px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:21px !important;
    height:21px !important;
    min-width:21px !important;
    min-height:21px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card .pm-gateway-content > small{
    margin:0 0 4px !important;
    font-size:9.2px !important;
    line-height:1.08 !important;
    white-space:normal !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card .pm-gateway-content > strong{
    font-size:18.5px !important;
    line-height:1.06 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card .pm-gateway-content > em{
    margin-top:4px !important;
    padding:0 !important;
    font-size:9.8px !important;
    line-height:1.18 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-gateway-card.pm-gateway-online > .pm-gateway-label{
    padding-right:13px !important;
  }
}

@media(max-width:390px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label{
    height:100px !important;
    min-height:100px !important;
    max-height:100px !important;
    padding-left:48px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card .pm-gateway-content > strong{
    font-size:17px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card .pm-gateway-content > em{
    font-size:9.2px !important;
  }
}

/* =========================================================
   v3.9.4 — DESKTOP-ONLY native payment-radio cleanup
   Mobile (<=782px) is intentionally untouched because its payment UI is already correct.
   WooCommerce's real radio inputs remain in the DOM and functional for label clicks,
   keyboard/state handling and checkout processing; they are only visually hidden.
   ========================================================= */
@media (min-width:783px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > input.input-radio[type="radio"][name="payment_method"]{
    position:absolute !important;
    left:-9999px !important;
    top:auto !important;
    width:1px !important;
    height:1px !important;
    min-width:1px !important;
    min-height:1px !important;
    margin:0 !important;
    padding:0 !important;
    opacity:0 !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    pointer-events:none !important;
  }
}


/* =========================================================
   v3.9.5 — DESKTOP-ONLY payment-card top alignment lock
   Mobile (<=782px) remains exactly as v3.9.4.
   Align the Pay Now and COD cards to the same top baseline even if a selected
   WooCommerce gateway has hidden payment_box content that makes its LI taller.
   Payment inputs, gateway state, Razorpay, COD and totals are untouched.
   ========================================================= */
@media (min-width:783px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    align-items:start !important;
    align-content:start !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card{
    align-self:start !important;
    vertical-align:top !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    transform:none !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label{
    margin-top:0 !important;
    margin-bottom:0 !important;
    transform:none !important;
  }
}

/* =========================================================
   v3.9.6 — DESKTOP-ONLY exact payment row alignment
   Mobile (<=782px) is intentionally untouched.
   Razorpay/COD in this checkout do not use visible payment fields; their
   payment_box is duplicate description chrome. Collapsing it prevents the
   selected online gateway from making its grid cell taller than COD.
   ========================================================= */
@media (min-width:783px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows:112px !important;
    align-items:stretch !important;
    align-content:start !important;
    gap:28px !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked){
    position:relative !important;
    display:block !important;
    align-self:stretch !important;
    width:100% !important;
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    transform:none !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
    margin:0 !important;
    box-sizing:border-box !important;
    transform:none !important;
  }

  /* Current Pahadi Magic checkout uses Razorpay + COD; both payment boxes are
     descriptive only. Hide that duplicate chrome so it cannot affect grid geometry. */
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-online > .payment_box,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-cod > .payment_box{
    display:none !important;
    position:absolute !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;
  }
}

/* =========================================================
   v3.9.7 — DESKTOP-ONLY final payment geometry lock
   Mobile (<=782px) intentionally untouched.
   - Shrinks the payment panel to its real content height (no stretched blank zone).
   - Leaves a compact, intentional gap before privacy/CTA.
   - JS measures the two gateway cards after WooCommerce refresh and offsets the
     left online card only when the theme renders it slightly higher than COD.
   ========================================================= */
@media (min-width:783px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-card-wrap{
    height:auto !important;
    min-height:0 !important;
    align-self:start !important;
    display:block !important;
    padding-bottom:16px !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-card-wrap .pm-payment-box{
    display:block !important;
    flex:0 0 auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows:112px !important;
    align-items:start !important;
    align-content:start !important;
    margin:0 0 12px !important;
    padding-top:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-bottom:0;
    overflow:visible !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card{
    position:relative !important;
    align-self:start !important;
    width:100% !important;
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label{
    width:100% !important;
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
    margin:0 !important;
    transform:none !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-place-order{
    margin:0 !important;
    padding-top:0 !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-place-order .woocommerce-privacy-policy-text{
    margin-top:0 !important;
    margin-bottom:10px !important;
  }
}


/* =========================================================
   v3.9.8 — DESKTOP-ONLY stable payment cards + compact flow
   Mobile (<=782px) intentionally unchanged.
   Goals:
   - No gateway card movement when switching Pay Now/COD.
   - Both cards stay on one fixed baseline with identical geometry.
   - Selected state changes color only, never position/size.
   - Collapse excess vertical stretch below the cards so privacy/CTA follows closely.
   ========================================================= */
@media (min-width:783px){
  /* Static two-column geometry. Never animate/re-measure selected gateways. */
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:112px !important;
    grid-auto-rows:112px !important;
    gap:28px !important;
    align-items:start !important;
    align-content:start !important;
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
    margin:0 0 18px !important;
    padding:0 !important;
    overflow:visible !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked){
    position:relative !important;
    inset:auto !important;
    top:0 !important;
    bottom:auto !important;
    left:auto !important;
    right:auto !important;
    display:block !important;
    align-self:start !important;
    width:100% !important;
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
    overflow:visible !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .pm-gateway-label,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card.is-selected > .pm-gateway-label,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card:has(input[name="payment_method"]:checked) > .pm-gateway-label{
    position:relative !important;
    inset:auto !important;
    top:0 !important;
    width:100% !important;
    height:112px !important;
    min-height:112px !important;
    max-height:112px !important;
    margin:0 !important;
    padding-top:16px !important;
    padding-bottom:16px !important;
    box-sizing:border-box !important;
    transform:none !important;
    transition:background-color .12s linear,border-color .12s linear,color .12s linear !important;
    animation:none !important;
  }

  /* WooCommerce toggles gateway description blocks on selection. They are duplicate
     chrome in this custom checkout; keep them permanently out of desktop layout. */
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-methods > li.pm-gateway-card > .payment_box,
  body.woocommerce-checkout .pm-checkout-reference-v1421 #payment .payment_box{
    display:none !important;
    position:absolute !important;
    width:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    opacity:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
    transition:none !important;
    animation:none !important;
  }

  /* Remove the desktop stretch that was leaving a large blank white zone under
     the payment cards. Keep the payment/order flow in normal document flow. */
  body.woocommerce-checkout .pm-checkout-reference-v1421 #payment,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .woocommerce-checkout-payment,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-card-wrap,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-card-wrap .pm-payment-box,
  body.woocommerce-checkout .pm-checkout-reference-v1421 :is(.pm-payment-card-wrap,.pm-payment-box):has(.pm-payment-methods){
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin-bottom:0 !important;
    padding-bottom:0 !important;
    align-self:start !important;
    align-content:start !important;
    justify-content:flex-start !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-place-order,
  body.woocommerce-checkout .pm-checkout-reference-v1421 #payment .form-row.place-order{
    position:static !important;
    inset:auto !important;
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
  }

  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-place-order .woocommerce-privacy-policy-text,
  body.woocommerce-checkout .pm-checkout-reference-v1421 #payment .woocommerce-privacy-policy-text{
    margin:0 0 12px !important;
    padding:0 !important;
  }
}


/* =========================================================
   v3.10.1 — DESKTOP-ONLY checkout card bottom inset
   Mobile (<=782px) intentionally untouched.
   Keeps the Place Order button fully inside the white payment card.
   ========================================================= */
@media (min-width:783px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-payment-card-wrap{
    padding-bottom:22px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-place-order,
  body.woocommerce-checkout .pm-checkout-reference-v1421 #payment .form-row.place-order{
    margin-bottom:0 !important;
  }
}

/* =========================================================
   v3.10.2 — DESKTOP-ONLY Place Order bottom breathing space
   Mobile (<=782px) intentionally untouched.
   The visible white checkout card is already correct; the missing inset came
   from the inner place-order row being collapsed to zero bottom padding by the
   compact desktop flow. Add the space on the inner row itself so WooCommerce,
   theme shorthand padding, and cache/minify ordering cannot collapse it.
   ========================================================= */
@media (min-width:783px){
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-ref-payment .pm-place-order,
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-ref-payment #payment .form-row.place-order{
    box-sizing:border-box !important;
    margin:0 !important;
    padding:0 0 24px !important;
  }
  body.woocommerce-checkout .pm-checkout-reference-v1421 .pm-ref-payment .pm-place-order #place_order{
    margin-bottom:0 !important;
  }
}

/* Checkout micro-celebrations: absolute decorations preserve existing geometry. */
.pm-paynow-checkout-banner .pmcp-gold-anchor,
.pmcp-order-confirmed.pmcp-gold-anchor{position:relative;}
.pmcp-gold-burst{position:absolute;left:22px;top:0;width:0;height:0;pointer-events:none;}
.pmcp-gold-burst i{position:absolute;left:0;top:0;width:2px;height:3px;border-radius:1px;background:#d4a24c;opacity:0;animation:pmcp-gold-fountain 3s ease-out infinite;}
.pmcp-gold-burst-once i{animation:pmcp-gold-confirmation 1s ease-out 1 both;}
@keyframes pmcp-gold-fountain{
  0%{opacity:0;transform:translate(0,0) scale(.7);}
  5%{opacity:.8;}
  25%{opacity:.4;transform:translate(var(--pmcp-x),var(--pmcp-y)) scale(1);}
  33%,100%{opacity:0;transform:translate(var(--pmcp-x),calc(var(--pmcp-y) + 5px)) scale(.6);}
}
@keyframes pmcp-gold-confirmation{
  0%{opacity:0;transform:translate(0,0) scale(.7);}
  15%{opacity:.85;}
  75%{opacity:.35;transform:translate(var(--pmcp-x),var(--pmcp-y)) scale(1);}
  100%{opacity:0;transform:translate(var(--pmcp-x),calc(var(--pmcp-y) + 5px)) scale(.6);}
}
@media(prefers-reduced-motion:reduce){.pmcp-gold-burst{display:none;}}
