/* Checkout and persistent invoice pages. */
.pay-shell { background: #f3f4f6; color: #111827; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; }
.pay-shell button, .pay-shell input, .pay-shell a { -webkit-tap-highlight-color: transparent; }
.pay-shell button, .pay-shell summary { cursor: pointer; }
.pay-shell button:disabled { cursor: not-allowed; }
.pay-shell button:focus-visible, .pay-shell a:focus-visible, .pay-shell input:focus-visible, .pay-shell summary:focus-visible { outline: 3px solid #15803d; outline-offset: 3px; }
.pay-shell { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.pay-card { width: 100%; max-width: 450px; background: white; border: 1px solid #e5e7eb; border-radius: 20px; padding: 22px 20px 24px; box-shadow: 0 10px 35px #0f172a14; }
.amount-card { min-height: 690px; }
.card-handle { width: 54px; height: 5px; background: #d1d5db; border-radius: 10px; margin: -10px auto 22px; }
.pay-title { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 12px; }
.pay-title span { color: #00bd50; }
.secure-label { display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 22px; padding: 6px 11px; border-radius: 30px; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 650; }
.brand-panel { min-height: 176px; border: 1px solid #e5e7eb; border-radius: 14px; padding: 23px 14px; text-align: center; margin-bottom: 22px; }
.brand-icon { width: 56px; height: 56px; margin: 0 auto 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: #00c853; border-radius: 14px; box-shadow: 0 8px 24px #00c85338; }
.brand-panel h2 { font-size: 20px; font-weight: 800; margin: 0; }
.brand-panel p { margin: 5px 0 0; color: #6b7280; font-size: 13px; }
.wallet-choice { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -4px 0 18px; color: #4b5563; font-size: 12px; }
.wallet-symbol { display: inline-flex; width: 24px; height: 24px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 6px; background: #00bb4e; color: white; font-size: 21px; font-weight: 800; line-height: 1; }
.amount-panel { background: #ecfdf5; border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.amount-label { display: flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 750; margin-bottom: 14px; }
.amount-label svg { color: #059447; }
.amount-label small { margin-left: auto; font-size: 10px; color: #557060; letter-spacing: 1px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amount-grid button { min-height: 47px; border: 1px solid #bbf7d0; border-radius: 30px; background: white; padding: 12px 4px; font-size: 15px; font-weight: 750; }
.amount-grid button.selected, .amount-grid button:hover:not(:disabled) { background: #00c950; border-color: #00c950; color: white; }
.amount-grid button:disabled, .custom-amount:has(input:disabled) { opacity: .6; }
.more-amounts { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 45px; margin-top: 12px; border: 0; border-radius: 30px; background: #bbf7d0; color: #15803d; font-size: 12px; font-weight: 700; }
.custom-amount { display: flex; align-items: center; gap: 10px; height: 51px; background: #fff; border: 1px solid #bbf7d0; border-radius: 30px; padding: 0 18px; margin-top: 14px; }
.custom-amount input { min-width: 0; width: 100%; border: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.amount-help { margin: 12px 2px 0; text-align: center; color: #55645a; font-size: 11px; line-height: 1.55; }
.primary-action { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 53px; border: 0; border-radius: 30px; background: #00c950; color: white; padding: 16px 18px; font-size: 16px; line-height: 1.25; font-weight: 800; text-align: center; text-decoration: none; box-shadow: 0 10px 24px #00c9503d; }
.primary-action:hover:not(:disabled) { background: #00b848; }
.primary-action:disabled { opacity: .55; box-shadow: none; }
.text-action { display: block; color: #087a3e; text-align: center; font-size: 13px; font-weight: 650; border: 0; background: transparent; padding: 10px; text-decoration: none; }
.view-status { margin-top: 14px; }
.page-message, .page-error { margin: 14px 0 0; text-align: center; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.page-message { color: #55645a; }
.page-error { color: #b54732; }
.invoice-brand { text-align: center; margin: -8px 0 14px; font-size: 12px; color: #4b5563; font-weight: 650; }
.invoice-timer { text-align: center; min-height: 43px; padding: 12px; margin-bottom: 15px; border-radius: 8px; background: #fffbeb; color: #a65c00; font-size: 13px; font-weight: 750; letter-spacing: .8px; }
.invoice-timer.expired { background: #fee2e2; color: #b91c1c; }
.amount-due-label { text-align: center; margin: 0 0 4px; text-transform: uppercase; color: #6b7280; font-size: 12px; font-weight: 650; letter-spacing: 1.3px; }
.amount-due { text-align: center; margin: 0 0 6px; font-size: 48px; line-height: 1.15; color: #00bf50; font-weight: 800; letter-spacing: -1.5px; }
.invoice-hint { text-align: center; font-size: 14px; color: #6b7280; margin: 0 0 14px; }
.invoice-shell.has-copy-dock { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.payment-notice { margin: 16px 0; padding: 14px 16px; border: 1px solid #fecaca; border-radius: 14px; background: #fff7f7; font-size: 13px; line-height: 1.7; color: #374151; }
.payment-notice h2 { margin: 0 0 10px; color: #b91c1c; font-weight: 800; font-size: 13.5px; line-height: 1.7; }
.payment-notice p { margin: 0 0 8px; }
.payment-notice strong { color: #111827; font-weight: 800; }
.copy-address { display: block; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #0f766e; color: white; font-size: 15px; font-weight: 800; text-align: center; }
.copy-address:hover { background: #115e59; }
.payment-notice .copy-address { margin-top: 10px; }
.copy-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / 97%); box-shadow: 0 -6px 20px rgb(0 0 0 / 8%); }
.copy-dock .copy-address { padding: 15px; border-radius: 14px; font-size: 16px; }
.scan-label { text-align: center; font-size: 12px; color: #6b7280; margin: 18px 0 8px; }
.qr-panel { display: flex; align-items: center; justify-content: center; height: 318px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.qr-panel svg { display: block; max-width: 100%; height: auto; }
.invoice-summary, .invoice-request { background: #f9fafb; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.invoice-summary > div { display: flex; flex-direction: column; gap: 5px; }
.invoice-summary span, .invoice-request span { color: #6b7280; font-size: 11px; font-weight: 650; text-transform: uppercase; }
.invoice-summary strong, .invoice-request strong { color: #111827; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.invoice-request strong { min-width: 0; text-align: right; }
.status-badge { background: #fff4cc; color: #b45309; padding: 7px 10px; border-radius: 8px; font-size: 10px; white-space: nowrap; }
.status-badge.expired { background: #fee2e2; color: #b91c1c; }
.invoice-details { font-size: 11px; color: #55645a; margin-top: 12px; text-align: center; }
.invoice-details p { margin: 10px 0; overflow-wrap: anywhere; }
.invoice-details code { display: block; text-align: left; padding: 12px; border-radius: 8px; background: #f9fafb; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.return-action { margin-top: 14px; }
@media (max-width: 480px) { .pay-shell { padding: 16px 12px; } .pay-card { padding: 22px 16px 24px; } .amount-due { font-size: 42px; } .amount-grid { gap: 8px; } .amount-grid button { font-size: 13px; } }
