html{min-height:100%}body{min-height:100dvh;height:auto;display:flex!important;align-items:center;justify-content:center;padding:clamp(16px,3vw,40px)}.shell{display:block!important;width:min(1080px,100%)!important;max-width:none;margin:auto}.panel{width:100%;max-width:none;padding:clamp(24px,4vw,48px);gap:0}.brand{margin:0 0 28px}.brand img{width:64px;height:64px}.panel h1{font-size:clamp(28px,3.4vw,44px);line-height:1.12;letter-spacing:-.035em;margin:0 0 12px}.plans{gap:24px;margin:28px 0}.plan{display:flex;flex-direction:column;min-height:210px;padding:28px}.plan h2{font-size:27px}.plan strong{font-size:36px}.plan p{margin:8px 0}.plan[data-current=true]{border-color:#22c55e;background:rgba(34,197,94,.08)}.current-plan-label{display:inline-flex;align-self:flex-start;color:#b9f6ce;font-size:13px;font-weight:800;margin-bottom:14px}.plan[data-current=false] .current-plan-label{display:none}.status{margin:8px 0 18px!important;line-height:1.55;min-height:0}#billingActions{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 22px}#billingActions>.btn:only-child{grid-column:1/-1;justify-self:center;width:min(520px,100%)}.plans[hidden]{display:none!important}.panel .note{margin:16px 0;font-size:13px}.panel>p:last-child{margin:12px 0 0}.panel dialog p{margin:0 0 18px}dialog{width:min(600px,calc(100vw - 32px));max-width:600px;max-height:calc(100dvh - 32px);overflow:auto}dialog p{line-height:1.6}dialog button{height:auto;min-height:46px;padding:12px 18px}@media(max-width:600px){.plans,#billingActions{grid-template-columns:1fr}.plan{min-height:0;padding:22px}.brand{gap:12px}.brand strong{font-size:17px}.brand img{width:54px;height:54px}.panel h1{font-size:30px}}


dialog#billingPanel {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(840px, calc(100vw - 32px)) !important;
  max-width: none;
  max-height: calc(100dvh - 32px);
  color: var(--text);
}
#billingPanel:not([open]) { display: none !important; }
#billingPanel .panel { background: var(--mfe-card-bg, var(--panel, var(--bg2))); }
#billingPanel .brand { margin-bottom: 20px; }
#billingPanel .brand img { width: 48px; height: 48px; }
#billingPanel .panel h1 { margin-bottom: 12px; }
#billingPanel #billingActions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
#billingPanel #billingActions > .btn, #billingQuote .btn {
  width: auto;
  min-height: 46px;
  height: auto;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--mfe-ui-on-accent, var(--mfa-upgrade-ink, #04101a));
  box-shadow: none;
}
#billingPanel #billingActions .billing-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
#billingPanel a { color: var(--text); }
#billingPanel .plan[data-current=true] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
#billingPanel .current-plan-label { color: var(--text); }
#billingQuote { padding: 20px; border: 1px solid var(--line); border-radius: 18px; margin: 0 0 16px; }
#billingQuote h2 { font-size: 21px; margin: 0 0 14px; }
#billingQuote .billing-amount { display: block; font-size: 32px; margin: 4px 0 6px; }
#billingQuote p { margin: 0 0 13px; }
html[data-mfe-theme="custom"] { --accent: var(--mfe-custom-primary); }
html[data-mfe-theme] body {
  background: linear-gradient(145deg, var(--bg), var(--bg2)) !important;
  color: var(--text);
}
@media (max-width: 480px) {
  #billingPanel #billingActions > .btn, #billingQuote .btn { width: 100%; }
}

#billingPanel::backdrop { background: transparent; }
html[data-mfe-theme] #billingConfirm::backdrop { background: color-mix(in srgb, var(--bg) 76%, #000); }
#billingPanel .sp-checkout-status { flex-basis:100%; margin:0; }

#billingActions > input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--mfe-input-border, var(--line));
  border-radius: 14px;
  background: var(--mfe-input-bg, var(--mfe-ui-input, rgba(255, 255, 255, .05)));
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
#billingActions > input[type="text"]::placeholder {
  color: var(--muted);
  opacity: 1;
}
#billingActions > input[type="text"]:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#billingPanel #billingActions > input[type="text"] {
  flex: 1 1 180px;
  width: auto;
  max-width: 360px;
  align-self: stretch;
}
#billingPanel #billingActions > input[type="text"] + button.btn {
  align-self: stretch;
  box-sizing: border-box;
  min-height: 48px;
  margin-top: 0;
}
@media (max-width: 480px) {
  #billingPanel #billingActions > input[type="text"] {
    flex-basis: 100%;
    max-width: none;
  }
}
