/* Merchant subscription selection and read-only quote, scoped to the billing view. */
.sp-page {max-width:1220px; margin-inline:auto; color:var(--text); font-variant-numeric:tabular-nums}
.sp-page :is(h1,h2,h3,p,ul,dl,dd) {margin:0}
.sp-page h1 {font-size:clamp(34px,3.3vw,54px); line-height:1.15; letter-spacing:-.045em}
.sp-page h2 {font-size:21px; line-height:1.4}
.sp-page h3 {font-size:clamp(21px,2vw,27px); line-height:1.35}
.sp-tabs {display:flex; gap:24px; border-bottom:1px solid var(--edge); flex-wrap:wrap}
.sp-page a {text-decoration:none}
.sp-tabs a {display:inline-flex; align-items:center; padding:6px 0 11px; min-height:44px; font-size:14px; color:var(--soft); border-bottom:2px solid transparent}
.sp-tabs [aria-current] {color:var(--ui-link); border-color:var(--a)}
.sp-heading {position:relative; isolation:isolate; display:flex; align-items:center; min-height:143px; padding-block:20px; overflow:hidden}
.sp-heading p,.sp-item p {color:var(--soft); font-size:14px; margin-top:9px; line-height:1.65}
.sp-ribbon {position:absolute; z-index:-1; right:0; top:0; bottom:0; width:35%; pointer-events:none}
.sp-ribbon canvas,.sp-illustration canvas,.sp-mini-art canvas {width:100%;height:100%;display:block}
.sp-bar,.sp-summary,.sp-bill {display:flex;align-items:center;justify-content:space-between;gap:14px}
.sp-bar {margin-bottom:14px}
.sp-period,.sp-period [role="group"] {display:flex;align-items:center;gap:10px}
.sp-period>span {font-size:13px;color:var(--soft)}
.sp-period [role="group"] {gap:3px;padding:3px;border-radius:9px;background:var(--surface);border:1px solid var(--edge)}
.sp-period button {font:inherit;font-size:13px;min-height:36px;padding:5px 12px;border:0;border-radius:6px;background:transparent;color:var(--soft);cursor:pointer}
.sp-period button[aria-pressed=true] {background:var(--raised);color:var(--ui-link);font-weight:650}
.sp-period button:disabled {color:var(--soft);cursor:default}
.sp-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.sp-card {position:relative; display:flex; flex-direction:column; align-items:stretch; padding:0 20px 16px; min-width:0;
  background:var(--surface); border:1px solid var(--edge); border-radius:14px; overflow:hidden; transition:border-color .15s}
.sp-card:has(input:checked) {border-color:var(--a); background:color-mix(in srgb,var(--a) 4%,var(--surface))}
.sp-card:has(input:focus-visible) {outline:2px dashed var(--a);outline-offset:3px}
.sp-illustration {height:93px; position:relative; margin:0 -20px 4px}
.sp-choice {width:18px;height:18px;position:absolute;right:15px;top:14px;border:1px solid #697678;border-radius:50%;display:grid;place-content:center}
.sp-card:has(input:checked) .sp-choice {background:var(--a);border-color:var(--a);color:#102220}
.sp-card:has(input:checked) .sp-choice::after {content:'✓';font:700 12px system-ui}
.sp-purpose,.sp-allowance {color:var(--soft); font-size:13px; line-height:1.6}
.sp-page .sp-purpose {margin-top:4px}
.sp-fee {display:flex;align-items:baseline; gap:8px; flex-wrap:wrap; margin:15px 0 12px}
.sp-fee strong {font-size:clamp(23px,2.2vw,34px);font-weight:650;line-height:1.2;letter-spacing:-.04em}
.sp-fee span,.sp-page small {font-size:12px;color:var(--soft)}
.sp-card ul {padding:12px 0 0; list-style:none; border-top:1px solid var(--edge); font-size:14px; line-height:1.85}
.sp-card li::before {content:'✓';color:var(--ui-link);font-size:12px;margin-right:8px}
.sp-page .sp-allowance {margin:6px 0 14px}
.sp-select {margin-top:auto; cursor:pointer;display:grid;place-items:center; min-height:40px; background:var(--raised); border-radius:7px; font-size:13px}
.sp-select::after {content:'';position:absolute;inset:0}
.sp-select input {position:absolute; width:1px;height:1px;opacity:0}
.sp-select span::before {content:'选择套餐'}
.sp-select:has(input:checked) {color:var(--ui-link);background:var(--tint)}
.sp-select input:checked + span::before {content:'已选择'}
.sp-summary,.sp-invoice,.sp-total {background:var(--surface);border:1px solid var(--edge);border-radius:12px}
.sp-summary {padding:15px 19px;margin:14px 0 26px}
.sp-summary small,.sp-total small,.sp-method span {display:block;margin-bottom:4px}
.sp-summary b {font-size:16px}
.sp-bill strong {font-size:21px}
.sp-bill {gap:22px}
.sp-page .sp-primary {display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:44px;border-radius:8px;padding:9px 17px;background:var(--a);color:#10221e;font-size:14px;font-weight:660}
.sp-comparison table {margin-top:12px; width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; font-size:13px}
.sp-comparison th,.sp-comparison td {padding:11px;text-align:center;white-space:normal; border-bottom:1px solid var(--edge)}
.sp-comparison tr>:first-child {width:32%; text-align:left}
.sp-comparison tbody th {background:transparent;font-weight:500}
.sp-yes {color:var(--ui-link)}
.sp-check-heading {justify-content:space-between;gap:12px}
.sp-back {display:inline-flex;align-items:center;min-height:44px;color:var(--ui-link);font-size:14px}
.sp-back:hover {text-decoration:underline;text-underline-offset:4px}
.sp-checkout {display:grid;grid-template-columns:minmax(0,1.58fr) minmax(280px,1fr);gap:20px;align-items:start}
.sp-left {min-width:0;display:grid;gap:16px}
.sp-invoice,.sp-payment,.sp-total {padding:24px 26px;border:1px solid var(--edge);border-radius:14px;background:var(--surface)}
.sp-item {display:flex;align-items:center;gap:18px;margin:18px 0 20px}
.sp-mini-art {width:88px;height:76px;flex-shrink:0;background:var(--raised);border-radius:10px}
.sp-details {border-top:1px solid var(--edge);padding-top:14px}
.sp-details>div {display:grid;grid-template-columns:80px 1fr;gap:12px;padding:5px 0}
.sp-details li {margin:0;line-height:1.7}
.sp-details ul {padding-left:16px}
.sp-details li::marker {color:var(--ui-link)}
.sp-checkout dt,.sp-checkout dd {font-size:14px;line-height:1.65}
.sp-checkout dt {color:var(--soft)}
.sp-payment .sp-method {display:flex;align-items:center;gap:13px;background:var(--tint);border:1px solid var(--edge);padding:12px 15px;border-radius:9px;margin-top:15px}
.sp-method b {font-size:14px}
.sp-method-check {margin-inline-start:auto;color:var(--ui-link)}
.sp-total {background:radial-gradient(ellipse at 100% 0%,var(--tint),transparent 62%),var(--surface)}
.sp-total .sp-cost-lines {display:grid;gap:12px;margin:22px 0}
.sp-cost-lines>div {display:flex;justify-content:space-between;gap:16px}
.sp-cost-lines dd {text-align:right;overflow-wrap:anywhere}
.sp-receipt-total {border-top:1px dashed var(--edge);padding:18px 0}
.sp-receipt-total small {display:block;margin:0}
.sp-receipt-total>strong {display:block;font-size:clamp(32px,3.4vw,48px);letter-spacing:-.035em;font-weight:650;line-height:1.35;color:var(--ui-link)}
.sp-receipt-total p,.sp-total #sp-pay-note {color:var(--soft);font-size:13px;line-height:1.6}
.sp-total button:disabled {width:100%;min-height:44px;border:1px solid var(--edge);border-radius:8px;background:var(--raised);color:var(--soft);cursor:not-allowed}
.sp-total #sp-pay-note {text-align:center;margin-top:8px}
@media(max-width:760px){
  .sp-ribbon {width:34%;opacity:.65}.sp-heading>div:first-child {max-width:73%}.sp-grid,.sp-checkout {grid-template-columns:1fr}
  .sp-heading {min-height:124px}.sp-card {padding:18px}.sp-illustration {position:absolute;width:94px;height:59px;top:4px;right:0;margin:0}.sp-choice {right:10px;top:6px;width:16px;height:16px}
  .sp-card h3 {padding-right:76px}.sp-purpose {padding-right:50px}.sp-fee {margin:9px 0}
  .sp-card ul {padding-top:8px}.sp-allowance {margin-bottom:8px}.sp-select {min-height:44px}
  .sp-summary {align-items:flex-start;flex-direction:column}.sp-bill {width:100%;gap:8px}.sp-tabs {gap:18px}
  .sp-invoice,.sp-total,.sp-payment {padding:16px}.sp-period button{min-height:44px;padding-inline:8px}.sp-bar{flex-wrap:wrap}.sp-check-heading {align-items:flex-start;flex-direction:column;justify-content:center}.sp-check-heading>div:first-child{max-width:100%}.sp-item{gap:10px}.sp-mini-art{width:66px}
  .sp-comparison th,.sp-comparison td {padding:9px 4px;overflow-wrap:anywhere}.sp-comparison tr>:first-child {width:27%}
}
@media(prefers-reduced-motion:reduce){.sp-card{transition:none}}

.sp-apps{position:relative;z-index:2;margin:.65rem 0}.sp-apps summary{cursor:pointer;padding:.65rem 0;font-weight:600}.sp-apps ul{max-height:16rem;overflow:auto;line-height:1.7}.sp-apps summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
