/* Payment method badges under the checkout pay button (creator page). */
.pay-methods { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; direction: ltr; }
.pay-methods svg { height: 30px; width: 48px; flex-shrink: 0; border-radius: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.pay-methods + .secure { margin-top: 10px; }
@media (max-width: 380px) { .pay-methods { gap: 6px; } .pay-methods svg { height: 26px; width: 42px; } }

/* ---- Checkout wallet buttons (Apple Pay, Google Pay, PayPal, Link) in their standard looks ---- */
.wallets { gap: 10px !important; }
.wallet { height: 48px !important; border-radius: 12px !important; direction: ltr; display: flex !important; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; line-height: 1; transition: transform .12s, box-shadow .12s, filter .12s; }
.wallet:hover { filter: brightness(1.05); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.wallet:active { transform: scale(.98); }
.wallet:focus-visible { outline: 2px solid #f5ede3; outline-offset: 2px; }
.wallet.apple { background: #000 !important; color: #fff !important; border: 1px solid #000 !important; }
.wallet.apple .w-apple { width: 17px; height: 20px; margin-top: -3px; }
.wallet.apple .w-pay { font: 600 19px -apple-system, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.2px; }
.wallet.google { background: #fff !important; color: #3c4043 !important; border: 1px solid #dadce0 !important; }
.wallet.google .w-g { width: 19px; height: 19px; }
.wallet.google .w-pay { font: 500 19px "Google Sans", Roboto, "Segoe UI", Arial, sans-serif; color: #3c4043; }
.wallet.paypal { background: #ffc439 !important; border: 1px solid #ffc439 !important; }
.wallet.paypal .w-pp { font: italic 900 19px Verdana, "Segoe UI", Arial, sans-serif; letter-spacing: -.5px; }
.wallet.paypal .w-pp b { color: #003087; font-weight: 900; }
.wallet.paypal .w-pp i { color: #009cde; font-style: italic; }
.wallet.link { background: #00d66f !important; border: 1px solid #00d66f !important; }
.wallet.link .w-link { font: 800 20px "Segoe UI", Roboto, Arial, sans-serif; color: #011e0f; letter-spacing: -.4px; }
.wallet.is-busy { opacity: .7; }

/* ---- Offline test cards: tidy chips instead of a jumbled line ---- */
.test-cards { display: grid; gap: 8px; margin: 2px 0 14px !important; }
.test-cards .tc-label { font-size: 12px; color: var(--ink-mute, #d8bea5); }
.test-cards .tc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.test-cards .tc { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line, #705444) !important; background: rgba(245, 237, 227, .05) !important; color: var(--ink, #f5ede3) !important; font: 600 12px Vazirmatn, system-ui, sans-serif !important; cursor: pointer; }
.test-cards .tc bdi { font: 700 12px ui-monospace, Menlo, Consolas, monospace; }
.test-cards .tc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.test-cards .tc.ok::before { background: #3ecf8e; }
.test-cards .tc.bad::before { background: #ff5c6c; }
.test-cards .tc.bank::before { background: #f0b429; }
.test-cards .tc:hover { background: rgba(245, 237, 227, .12) !important; }

/* Hide the back/home pill while the payment window (or any dialog) is open */
body:has(.co) #qahvejoBackHome, body:has(.ui-dialog) #qahvejoBackHome { display: none; }

/* ---- Card checkout: Apple Pay / Google Pay this browser can't do, handed to the phone with a QR code ---- */
#xpayAlt { margin: 10px 0 0; }
.wallets > .wallet:last-child:nth-child(odd) { grid-column: 1 / -1; }
.handoff { display: grid; justify-items: center; gap: 14px; padding: 4px 0 6px; }
.handoff-qr { background: #fff; border-radius: 16px; padding: 12px; width: min(260px, 100%); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7); }
.handoff-qr svg { display: block; width: 100%; height: auto; }
.handoff-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; color: var(--ink, #f5ede3); font-size: 14px; line-height: 1.6; justify-self: stretch; }
.handoff-note { margin: 0; font-size: 12.5px; color: var(--ink-soft, #d8bea5); text-align: center; }
