.payment-method-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.payment-method-choice { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 68px; padding: 12px; border: 2px solid #d9e3df; border-radius: 6px; background: #fff; color: #203c34; font: 600 16px/1.4 sans-serif; cursor: pointer; }
.payment-method-choice img { flex-shrink: 0; width: 40px; height: 40px; object-fit: contain; }
.payment-method-choice[aria-pressed="true"] { border-color: #087d60; background: #edf9f4; }
.payment-method-choice[aria-pressed="true"]::after { content: "\2713"; position: absolute; top: 3px; right: 7px; color: #087d60; font-size: 15px; }
.payment-method-choice:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.payment-method-choice:disabled { opacity: .6; cursor: wait; }
.payment-confirm-button { min-height: 46px; padding: 10px 22px; border: 0; border-radius: 6px; background: #087d60; color: #fff; font: 700 16px/1.4 sans-serif; cursor: pointer; }
.payment-confirm-button:disabled { opacity: .55; cursor: default; }
.app-dialog-code { font-family: ui-monospace, monospace; font-size: 16px; font-weight: 600; text-align: center; }
.app-dialog-copy { background: #f3faf6; color: #16634b; border-color: #a7d8c4; }
.renewal-offer-dialog { position: relative; isolation: isolate; margin: 0 auto; }
.renewal-offer-header { z-index: 1; min-height: 0; padding: 16px 22px 10px; border-bottom: 0; background: transparent; }
.renewal-offer-body, .renewal-offer-footer { position: relative; z-index: 1; }
.renewal-offer-dialog .renewal-offer-visual { z-index: 0; top: 6px; right: 16px; bottom: auto; width: 210px; height: 194px; opacity: .55; }
.renewal-account-status { padding: 0; border-left: 0; background: transparent; color: #3f5145; }
.renewal-countdown.has-account { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; margin-top: 0; }
.renewal-countdown.has-account .renewal-account-status { min-width: 0; color: #bed5cc; line-height: 1.4; overflow-wrap: anywhere; }
.renewal-plan { padding: 14px; }
.renewal-plan.is-selected { box-shadow: none; }
.renewal-plan .renewal-price-meta { margin-top: 10px; }
.renewal-plan button { margin-top: 8px; }
.renewal-pay-inline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; }
.renewal-pay-inline-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.renewal-pay-inline-heading strong { font-size: 18px; color: #202630; }
.renewal-pay-inline-heading span { font-size: 13px; overflow-wrap: anywhere; }
.renewal-pay-inline-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.renewal-pay-inline.is-single-channel .renewal-pay-inline-actions { grid-template-columns: minmax(0, 1fr); }
.renewal-pay-inline .payment-method-choice { min-height: 64px; gap: 12px; border-color: #e0e4ec; color: #202630; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; }
.renewal-pay-inline .payment-method-choice[hidden] { display: none; }
.renewal-pay-inline .payment-method-choice:only-child { grid-column: 1 / -1; }
.renewal-pay-inline .payment-method-choice.is-selected { border-color: #1677ff; background: #f3f7ff; }
.renewal-pay-inline .payment-method-choice.is-disabled { opacity: .6; cursor: wait; }
.renewal-pay-inline .payment-method-choice input:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.renewal-pay-inline .payment-method-choice input { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: #1677ff; }
.renewal-pay-inline #renewalPayConfirm { width: 100%; min-height: 46px; margin: 0; border: 0; border-radius: 6px; background: #0969ed; color: #fff; font: 700 17px/1.4 sans-serif; }
.renewal-pay-inline #renewalPayConfirm:hover { background: #075bd0; }
.renewal-pay-inline #renewalPayConfirm:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.renewal-pay-inline #renewalPayConfirm:disabled { background: #0969ed; opacity: .55; cursor: default; }
.renewal-pay-inline #renewalPayHint { margin: 8px 0; font-size: 13px; line-height: 1.6; }
.renewal-pay-inline #renewalPayHint:empty { display: none; }
.renewal-plan[hidden] { display: none; }
.renewal-plan-grid.is-compact .renewal-plan button { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: transparent; font-size: 0; }
.renewal-plan-grid.is-compact .renewal-plan button:focus-visible { outline: 3px solid #1677ff; outline-offset: -3px; }
.renewal-plan-grid.is-compact .renewal-plan button:disabled { background: transparent; color: transparent; cursor: wait; }
.renewal-offer-footer.has-payment-selection { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #fff; }
.renewal-offer-footer.has-payment-selection .renewal-pay-inline { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; gap: 8px; }
.renewal-offer-footer.has-payment-selection .renewal-recheck-button { border-color: #cdd9d2; background: #fff; color: #16613f; }
.renewal-offer-footer.has-payment-selection .renewal-recheck-button:hover { background: #f1f8f4; }
.payment-browser-overlay { position: fixed; inset: 0; z-index: 200000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, .45); }
.payment-browser-dialog { width: min(520px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 24px; border-radius: 8px; background: #fff; color: #203c34; }
.payment-browser-dialog h2 { margin: 0 0 16px; font-size: 22px; }
.payment-browser-dialog p { font-size: 14px; line-height: 1.7; }
.payment-browser-link { box-sizing: border-box; width: 100%; height: 72px; padding: 8px; border: 1px solid #d9e3df; border-radius: 4px; font: 12px/1.5 sans-serif; resize: none; word-break: break-all; }
.payment-browser-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.payment-browser-actions button { min-height: 44px; flex: 1; padding: 10px; border: 1px solid #087d60; border-radius: 6px; background: #087d60; color: #fff; font: 600 14px/1.4 sans-serif; cursor: pointer; }
.payment-browser-actions .payment-browser-close { background: #fff; color: #087d60; }
.payment-browser-status { min-height: 22px; }
.payment-copy-fallback { position: fixed; left: -10000px; top: 0; }
.alipay-browser-page { margin: 0; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; background: #f2f6f5; font-family: sans-serif; color: #203c34; }
.alipay-browser-page main { width: min(440px, 100%); }
.alipay-browser-page h1 { margin: 16px 0; font-size: 24px; }
.alipay-browser-page p { font-size: 15px; line-height: 1.8; }
.alipay-browser-page #alipayBrowserAmount { font-size: 32px; font-weight: 700; color: #1677ff; }
.alipay-browser-page button { width: 100%; min-height: 48px; margin-top: 12px; padding: 12px; border: 0; border-radius: 6px; background: #1677ff; color: #fff; font: 600 16px/1.4 sans-serif; }
.alipay-browser-page button[hidden] { display: none; }
.alipay-browser-page button:disabled { opacity: .55; }
@media (max-width: 620px) {
    .renewal-offer-header { padding: 11px 13px 8px; }
    .renewal-offer-header p { color: #3f5145; }
    .renewal-offer-dialog .renewal-offer-visual:not([hidden]) { display: block !important; top: 4px; right: 8px; width: 120px; height: 111px; opacity: .25; }
    .renewal-account-status { padding: 0; }
    .renewal-countdown.has-account { grid-template-columns: minmax(0, 1fr) minmax(0, 150px); gap: 4px 7px; }
    .renewal-countdown.has-account .renewal-account-status { grid-column: 1 / -1; }
    .renewal-plan { padding: 9px 10px 8px; }
    .renewal-plan .renewal-price-meta { margin-top: 0; }
    .renewal-plan-grid.is-compact .renewal-plan { grid-template-areas: "head head" "price meta"; }
    .renewal-plan-grid.is-compact .renewal-plan-label { display: none; }
    .renewal-plan-grid.is-compact .renewal-price-row { justify-content: flex-start; }
    .renewal-plan-grid.is-compact .renewal-price-meta { flex-direction: row; align-items: center; align-self: center; gap: 5px; }
    .renewal-offer-footer.has-payment-selection .renewal-pay-inline-heading { display: flex; gap: 3px 8px; }
    .renewal-pay-inline .payment-method-choice { gap: 6px; min-height: 52px; padding: 8px 5px; font-size: 14px; }
    .renewal-pay-inline .payment-method-choice img { width: 28px; height: 28px; }
    .renewal-pay-inline .payment-method-choice input { width: 18px; height: 18px; }
    .renewal-pay-inline-actions { gap: 8px; }
    .renewal-pay-inline #renewalPayHint { margin: 0; font-size: 11px; line-height: 1.3; }
    .renewal-pay-inline #renewalPayConfirm { min-height: 44px; font-size: 16px; }
    #renewalOfferDescription { white-space: normal; overflow-wrap: anywhere; }
    .payment-method-picker { gap: 8px; }
    .payment-method-choice { gap: 8px; min-height: 64px; padding: 10px 6px; font-size: 14px; }
    .payment-method-choice img { width: 36px; height: 36px; }
    .payment-confirm-button { width: 100%; }
    .payment-browser-dialog { padding: 18px; }
}
@media (max-width: 620px) and (max-height: 680px) {
    .renewal-offer-kicker { display: none; }
    .renewal-offer-header p { display: none; }
    .renewal-plan-grid.is-compact { gap: 4px; }
    .renewal-plan-grid.is-compact .renewal-plan { padding-top: 7px; padding-bottom: 6px; }
}
