[data-epay-form] { padding: 20px; }
[data-epay-form] > .full { grid-column: 1 / -1; }
[data-epay-form] code { display: block; overflow-wrap: anywhere; font-size: 13px; }
[data-epay-form] .toggle-label { gap: 8px; }
[data-epay-form] [role="status"] { margin: 12px 0 0; }
.checkout-payment-method { display: block; min-width: 0; }
.checkout-payment-choice { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 54px; border: 1px solid #dbe4f0; border-radius: 14px; background: #f8faff; }
.checkout-payment-choice:focus-within { border-color: #155dfc; box-shadow: 0 0 0 3px #155dfc14; }
.checkout-payment-icon { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 8px; background: #1677ff; color: #fff; font-size: 17px; font-weight: 700; }
.checkout-payment-choice[data-method="wechat"] .checkout-payment-icon { background: #16a34a; }
.checkout-payment-choice[data-method="manual"] .checkout-payment-icon { background: #64748b; }
.checkout .checkout-payment-select { width: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none; outline: none; padding: 14px 0; background: transparent; color: #1e293b; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 22px; cursor: pointer; }
.checkout.is-order-created > .checkout-head,
.checkout.is-order-created > .checkout-options,
.checkout.is-order-created > .checkout-served,
.checkout.is-order-created > #checkout-form { display: none; }
.checkout.is-order-created { scroll-margin-top: 108px; }
.checkout #checkout-result { scroll-margin-top: 108px; }
.checkout-receipt { min-width: 0; color: #0f172a; }
.checkout-receipt-head { display: flex; align-items: center; gap: 10px; }
.checkout-receipt-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #eff6ff; color: #155dfc; }
.checkout-receipt-icon svg { width: 20px; height: 20px; }
.checkout-receipt-head > div { min-width: 0; flex: 1; }
.checkout-receipt-head h2 { margin: 0; color: #0f172a; font-size: 17px; font-weight: 800; line-height: 26px; }
.checkout-receipt-head h2:focus { outline: none; }
.checkout-receipt-head p { margin: 3px 0 0; color: #64748b; font-size: 12px; line-height: 18px; }
.checkout-receipt-status { align-self: flex-start; padding: 4px 8px; border-radius: 7px; background: #fff7ed; color: #b45309; font-size: 11px; font-weight: 700; white-space: nowrap; }
.checkout-receipt.is-paid .checkout-receipt-status { background: #ecfdf5; color: #047857; }
.checkout-receipt.is-paid .checkout-receipt-icon { background: #ecfdf5; color: #059669; }
.checkout-receipt-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0 18px; }
.checkout-receipt-amount > span { color: #64748b; font-size: 13px; }
.checkout-receipt-amount strong { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.checkout-receipt-items { list-style: none; margin: 0 0 18px; padding: 14px; background: #f8fafc; border: 1px solid #edf1f6; border-radius: 12px; }
.checkout-receipt-items > li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.checkout-receipt-items > li > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.checkout-receipt-items b { font-size: 14px; line-height: 22px; }
.checkout-receipt-items span { color: #64748b; font-size: 12px; white-space: nowrap; }
.checkout-receipt-items details { margin: 6px 0 0; font-size: 12px; }
.checkout-receipt-items summary { color: #64748b; font-size: 12px; }
[data-store-payment].store-payment-actions { display: grid; gap: 9px; margin: 18px 0; padding: 0; border: 0; background: transparent; }
.store-payment-actions .button { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 46px; margin: 0; padding: 11px 14px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 22px; font-weight: 700; text-align: center; }
.store-payment-actions .button.primary { background: #155dfc; color: #fff; box-shadow: 0 5px 12px #155dfc20; }
.store-payment-actions .button.secondary { background: #fff; color: #475569; border-color: #e2e8f0; box-shadow: none; }
.store-payment-actions .button:hover:not(:disabled) { filter: brightness(.97); }
.store-payment-actions .button:disabled { opacity: .65; cursor: wait; }
.store-payment-actions .button:focus-visible, .checkout-receipt button:focus-visible, .checkout-receipt a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.store-payment-actions .store-payment-hint { margin: 1px 0 0; color: #64748b; font-size: 11px; line-height: 18px; text-align: center; }
.store-payment-actions .store-payment-feedback { margin: 0; padding: 10px 12px; border-radius: 9px; background: #eff6ff; color: #1d4ed8; font-size: 12px; line-height: 19px; }
.store-payment-feedback:empty, [data-delivery-feedback]:empty { display: none; }
.store-payment-fallback { color: #155dfc; font-size: 12px; line-height: 20px; text-align: center; text-decoration: underline; }
.store-payment-fallback[hidden] { display: none; }
.store-payment-actions .button[hidden] { display: none; }
.store-payment-countdown { margin: 0 0 3px; color: #b45309; font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.store-payment-countdown:empty { display: none; }
.order-receipt .store-payment-actions { grid-template-columns: 1fr 1fr; margin: 16px 0 0; }
.order-receipt .store-payment-actions > p,.order-receipt .store-payment-actions > a { grid-column: 1 / -1; }
.order-receipt .store-payment-actions .button { font-size: 13px; }
.order-receipt .store-payment-actions .button[hidden] + .button { grid-column: 1 / -1; }
@media(max-width:480px){.order-receipt .store-payment-actions{grid-template-columns:1fr}.order-receipt .store-payment-actions .button{min-height:44px}}
.checkout-receipt-details { display: grid; gap: 10px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #e8edf4; font-size: 12px; line-height: 20px; }
.checkout-receipt-details > div { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.checkout-receipt-details dt { flex: 0 0 auto; color: #64748b; }
.checkout-receipt-details dd { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; min-width: 0; margin: 0; overflow-wrap: anywhere; color: #334155; text-align: right; }
.checkout-receipt-details [data-order-number] { font: 12px/19px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.checkout-receipt-details button { flex: 0 0 auto; border: 0; border-radius: 5px; background: #eff6ff; padding: 2px 5px; color: #155dfc; font-size: 11px; cursor: pointer; }
.checkout-receipt-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: 16px; border-top: 1px solid #e8edf4; }
.checkout-receipt-footer p { margin: 0; color: #64748b; font-size: 11px; line-height: 18px; }
.checkout-receipt-footer a { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: #155dfc; font-size: 12px; font-weight: 700; }
.checkout-receipt-footer svg { width: 14px; height: 14px; }
.checkout-receipt [data-order-tools] .button { width: 100%; min-height: 42px; margin: 12px 0 0; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; box-shadow: none; }
.checkout-receipt [data-delivery-feedback] { color: #b45309; font-size: 12px; line-height: 20px; }
.checkout-receipt-delivery { overflow-wrap: anywhere; }
.checkout-receipt-delivery pre { white-space: pre-wrap; }
@media (max-width: 600px) {
  [data-epay-form] { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .checkout-receipt-head { flex-wrap: wrap; }
  .checkout-receipt-status { margin-left: auto; }
  .checkout-receipt-amount strong { font-size: 30px; }
  .checkout-receipt-details > div:first-child { display: block; }
  .checkout-receipt-details > div:first-child dd { justify-content: space-between; margin-top: 4px; text-align: left; }
  .checkout-receipt-details [data-order-number] { font-size: 12px; }
}
