/* Payment methods use their own marks, with a single clear selected state. */
#checkout-form .payment-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:24px 0 0;border-top:1px solid #dce3d1;margin-top:15px}
#checkout-form .payment-choices legend{font:700 23px/1.6 NETajawal,NEArabic,sans-serif;padding:0 0 4px;color:#203e32}
.payment-intro{grid-column:1/-1;font-size:12px;line-height:1.9;color:#6b7762;margin:0 0 4px}
#checkout-form .payment-choice{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:20px 10px 16px;margin:0;border:1px solid #dbe2d1;border-radius:17px;background:#fffef9;min-width:0;transform:none;transition:border-color .15s,background .15s,box-shadow .15s;text-align:center}
#checkout-form .payment-choice:has(input:checked){border-color:#547345;background:#f0f5e7;box-shadow:0 0 0 1px #547345}
#checkout-form .payment-choice:has(input:focus-visible){outline:3px solid #9bb67b;outline-offset:4px}
#checkout-form .payment-choice input{position:absolute;top:10px;right:10px;width:16px;height:16px;min-height:0;accent-color:#3d6039}
#checkout-form .payment-icon{width:112px;height:65px;display:flex;align-items:center;justify-content:center;flex:0 0 65px;background:transparent;padding:0;border:0;border-radius:0}
.payment-icon img{width:100%;height:100%;max-width:100%;object-fit:contain;display:block;background:transparent}
#checkout-form .payment-icon.cash_on_delivery{width:85px}.payment-icon.instapay img{object-fit:contain}
#checkout-form .payment-method-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
#checkout-form .payment-method-copy b{font:700 16px/1.6 NETajawal,NEArabic,sans-serif;letter-spacing:0;color:#203e32}
#checkout-form .payment-method-copy small{font:400 11px/1.8 NEArabic,sans-serif;color:#718065}
#checkout-form .payment-choice>i{position:absolute;top:10px;left:10px;font-size:11px;font-style:normal;width:18px;height:18px;border-radius:50%;color:#fff;background:#42623a;display:grid;place-items:center;margin:0}
.payment-choices>.payment-instructions,.payment-choices>.transfer-details{grid-column:1/-1}
#checkout-form .payment-instructions{border:1px solid #dce5d0;background:#f4f7ec;padding:20px;border-radius:15px;margin-top:4px;font-size:13px;line-height:1.9}
#checkout-form .payment-instructions strong{font:700 23px/1.5 NETajawal,Arial,sans-serif;letter-spacing:.5px}.payment-instructions>div{align-items:center;flex-wrap:wrap}.payment-instructions button{font-size:12px;min-height:40px}
#checkout-form .transfer-details{background:#fafaf4;border:1px solid #e0e6d6;border-radius:15px;padding:20px;display:grid;gap:15px;margin:0;animation:payment-details-in .16s ease-out}
#checkout-form .transfer-details label{font-size:13px;line-height:1.8}#checkout-form .transfer-details input{font-size:15px;min-width:0;width:100%}.transfer-review-note{font-size:12px;line-height:1.9;margin:0;color:#6b785e}
.checkout-layout{max-width:1240px;margin-inline:auto;gap:40px;align-items:start}.checkout-layout #checkout-form{min-width:0}.checkout-summary{border:1px solid #dce3d0;border-radius:20px;background:#f6f7ee;padding:25px}.checkout-summary h2{font-size:23px}.checkout-layout .form-grid{gap:20px 18px}.checkout-layout .form-grid>label{font-size:14px;line-height:1.7}
.product-payment-card>img{display:block;width:92px;height:49px;object-fit:contain;background:transparent;max-width:100%}.product-payment-card[data-payment-method="cash_on_delivery"]>img{width:65px}.product-payment-card{gap:9px}.product-payment-card>span{font-family:NETajawal,NEArabic,sans-serif;font-size:13px;line-height:1.6}
@keyframes payment-details-in{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:700px){#checkout-form .payment-choices{grid-template-columns:1fr;gap:10px;padding-top:16px}#checkout-form .payment-choice{display:grid!important;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:14px;padding:15px 36px 15px 30px;text-align:right;min-height:90px}#checkout-form .payment-icon{width:80px;height:50px;flex-basis:auto}#checkout-form .payment-icon.cash_on_delivery{width:66px;margin-inline:auto}#checkout-form .payment-method-copy b{font-size:17px}#checkout-form .payment-method-copy small{font-size:11px}#checkout-form .payment-choice input{top:calc(50% - 8px);right:10px}#checkout-form .payment-choice>i{top:calc(50% - 9px);left:8px}#checkout-form .payment-choices legend{font-size:22px}.checkout-layout{gap:22px}.checkout-summary{padding:20px}.checkout-layout .form-grid{gap:17px}#checkout-form .payment-instructions,#checkout-form .transfer-details{padding:16px}.product-payment-card>img{width:75px;height:42px}.product-payment-card>span{font-size:12px}}
@media(max-width:360px){#checkout-form .payment-choice{grid-template-columns:62px minmax(0,1fr);gap:9px;padding-inline:32px 24px}#checkout-form .payment-icon{width:62px}#checkout-form .payment-method-copy b{font-size:15px}#checkout-form .payment-method-copy small{font-size:10px}}
@media(prefers-reduced-motion:reduce){#checkout-form .payment-choice,#checkout-form .transfer-details{transition:none;animation:none}}

/* Keep the QR still while scanning, with a clear white quiet zone. */
.payment-instructions .payment-qr{display:grid;justify-items:center;gap:12px;margin:20px auto;max-width:288px}
.payment-instructions .payment-qr img{display:block;width:100%;height:auto;box-sizing:border-box;padding:18px;background:#fff;border:1px solid #e6e5de;border-radius:12px;object-fit:contain}
.payment-qr figcaption{text-align:center;font-size:.85rem;line-height:1.7}
.payment-instructions .transfer-amount{display:grid;gap:8px;padding:16px;background:#edf4ee;border:1px solid #cedfd2;border-radius:12px;text-align:center}
.payment-instructions .transfer-amount strong{font-size:1.15rem;color:#183c34;line-height:1.8}
@media(prefers-reduced-motion:no-preference){.payment-qr{animation:payment-qr-enter .55s ease-out both}@keyframes payment-qr-enter{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}}
