#pro-configurator { min-width: 0; }
body.miniapp-checkout .app-shell { padding-top: calc(10px + max(env(safe-area-inset-top), var(--safe-top))); }
body.miniapp-checkout .app-header { justify-content: flex-start; gap: 10px; min-height: 48px; margin-bottom: 22px; padding: 0 0 12px; }
body.miniapp-checkout .app-header .logo { width: 84px; height: 30px; }
body.miniapp-checkout .account-access { display: none; }
body.miniapp-checkout #config-back { display: inline-grid; place-items: center; width: 32px; min-width: 32px; height: 36px; min-height: 36px; margin: 0; padding: 0; font-size: 0; color: var(--text); }
body.miniapp-checkout #config-back svg { width: 20px; height: 20px; }
body.miniapp-checkout[data-native-back="true"] #config-back { display: none; }
#config-methods-back { display: none; }
#config-title { max-width: 25ch; margin: 0 0 12px; font-size: 29px; line-height: 1.15; white-space: pre-line; }
#config-title em { color: var(--accent); font-style: normal; }
.config-subtitle { max-width: 48ch; margin: 0 0 20px; font-size: 14px; line-height: 1.5; }
.config-layout { align-items: start; }
.config-feature-band { padding: 15px; margin-bottom: 20px; background: linear-gradient(120deg,#20131b,var(--surface) 70%); border-color: var(--line); border-radius: 15px; }
.config-feature-band h3 { font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.config-feature-band p { font-size: 12px; line-height: 1.5; }
.config-feature-band > div { font-size: 12px; line-height: 1.5; gap: 8px; margin-top: 8px; }
.config-feature-band svg { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.config-access { padding: 13px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.config-access-caption { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.config-access-caption svg { width: 18px; height: 18px; }
.config-access > span, .config-access > small { display: block; color: var(--muted); font-size: 12px; }
.config-access > strong { display: block; margin: 5px 0; font-size: 18px; }
.config-access > small + small { margin-top: 4px; }
#pro-configurator fieldset { margin-bottom: 0; }
#pro-configurator legend { font-size: 15px; margin-bottom: 12px; }
.period-options { gap: 9px; }
.period-options label { display: block; }
.period-options input { z-index: 1; }
.period-options .period-card { display: block; min-height: 0; padding: 12px 14px; border-radius: 14px; }
.period-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.period-card-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.period-card-radio { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1px solid #777b88; border-radius: 50%; }
.period-options input:checked + .period-card .period-card-radio { border-color: var(--accent); background: var(--accent); }
.period-options input:checked + .period-card .period-card-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.period-options .period-card-name strong { font-size: 17px; white-space: nowrap; }
.period-options .period-base-price { font-size: 22px; line-height: 1.25; white-space: nowrap; }
.period-options .period-card-copy { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.period-options .period-badge { display: table; width: auto; padding: 3px 7px; margin: 0 0 8px; border-radius: 5px; background: #183028; color: var(--green); font-size: 11px; font-weight: 700; }
.period-options .period-badge-year { background: #352028; color: #ff8295; }
.period-options input:checked + .period-card .period-badge-year { background: var(--accent); color: #fff; }
.config-upsell { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px; border: 1px solid #315747; border-radius: 8px; background: #10221b; text-align: left; }
.config-upsell > span { flex: 1; min-width: 0; }
.config-upsell strong, .config-upsell small { display: block; line-height: 1.4; }
.config-upsell strong { color: var(--green); font-size: 13px; }
.config-upsell small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.config-upsell svg { width: 18px; height: 18px; color: var(--green); }
#pro-configurator .config-addons-fieldset { border-bottom: 0; padding: 18px 0; }
.config-addons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.config-toggle, .config-device-addon { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 34px 44px auto; align-items: center; justify-items: center; gap: 0; min-height: 0; padding: 10px 7px; border-radius: 12px; text-align: center; }
.config-toggle strong, .config-device-addon strong { font-size: 13px; line-height: 1.3; }
.config-addon-icon svg { width: 22px; height: 22px; }
.config-toggle:has(input:checked) .config-addon-icon { color: var(--accent); }
.config-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.config-toggle:has(input:focus-visible), .config-device-addon:has(button:focus-visible) { outline: 2px solid #94cfff; outline-offset: 3px; }
.config-addon-fee { display: block; min-width: 0; max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.config-addon-fee small { display: block; margin: 0; font-size: 11px; font-weight: 400; color: var(--muted); }
.config-toggle > small { grid-row: 4; position: static; margin-top: 4px; font-size: 10px; color: var(--muted); }
.config-device-addon { grid-column: auto; flex-wrap: nowrap; }
.config-device-addon:has(output:not(:empty)) { border-color: var(--line); }
.config-device-addon[data-active="true"] { border-color: var(--accent); background: var(--soft-red); }
.device-stepper { width: 100%; justify-content: space-between; gap: 0; margin-left: 0; }
.device-stepper output { min-width: 20px; width: auto; font-size: 16px; }
.device-stepper .icon-button { min-width: 30px; width: 30px; height: 44px; padding: 5px; background: transparent; }
.device-stepper svg { width: 16px; height: 16px; }
#config-device-note { margin: 10px 0 0; font-size: 11px; }
.config-draft { border-top: 1px solid var(--line); padding-top: 18px; }
.config-draft h3 { font-size: 15px; }
.config-draft .config-summary { display: none; }
.config-breakdown { padding: 0 0 12px; }
.config-breakdown > div { font-size: 13px; }
.config-projected { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px; border-radius: 12px; background: #10221b; }
.config-projected svg { width: 18px; height: 18px; flex: none; color: var(--green); }
.config-projected small, .config-projected strong { display: block; line-height: 1.3; }
.config-projected small { color: var(--muted); font-size: 11px; }
.config-projected strong { margin-top: 3px; color: var(--text); font-size: 15px; }
.config-action { background: #0e0f14; border-top: 1px solid var(--line); padding: 12px 18px; }
.config-action .config-grand { margin: 0 0 8px; }
.config-action .config-grand strong { font-size: 23px; }
.config-action .primary { margin: 0; }
.config-action .config-safe { margin-top: 8px; }
.config-checkout { max-width: 620px; }
.config-checkout > .text-back { margin-bottom: 8px; }
.config-checkout > .section-eyebrow { margin-bottom: 15px; }
.config-checkout .method-option { min-height: 82px; padding: 15px 12px; border-radius: 12px; }
.config-checkout .method-option[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.config-checkout .method-option[aria-pressed="true"] > svg { color: var(--accent); }
.config-checkout-footer { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 10px; }
.config-checkout-footer .config-summary { display: none; }
.config-checkout-footer h3 { margin: 6px 0 8px; font-size: 15px; }
.config-checkout-footer .config-breakdown { border: 0; padding-top: 0; }
.config-checkout-action { border-top: 1px solid var(--line); background: #0e0f14; padding: 12px 18px; }
.config-checkout-action .config-grand { margin: 0 0 8px; border: 0; padding: 0; }
.config-checkout-action .config-grand strong { font-size: 22px; }
.config-checkout-action #config-pay { margin-top: 0; }
.config-checkout-action .config-safe { margin-top: 8px; }
.config-checkout-action .flow-error { margin: 0 0 10px; }
body.miniapp-payment-methods #config-error { display: none; }
.crypto-method-group { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.crypto-method-group[data-active="true"] { border-color: var(--accent); }
.crypto-method-group .crypto-group { border: 0; background: transparent; }
.crypto-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 12px 12px; }
.crypto-inline .method-option { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 8px 6px; min-height: 64px; text-align: center; border-radius: 9px; }
.crypto-inline .method-option > svg { display: none; }
.crypto-inline .method-option strong, .crypto-inline .method-price { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.crypto-inline .method-option small { font-size: 11px; }
#config-term-title:focus { outline: none; }
@media (max-width: 899px) {
  body.miniapp-checkout .app-shell { padding-left: calc(18px + max(env(safe-area-inset-left), var(--safe-left))); padding-right: calc(18px + max(env(safe-area-inset-right), var(--safe-right))); }
  .config-layout { padding-bottom: 170px; }
  .config-action { position: fixed; left: 0; right: 0; bottom: calc(70px + max(env(safe-area-inset-bottom), var(--safe-bottom))); z-index: 2; max-width: 680px; margin: 0 auto; }
  .config-checkout { padding-bottom: 170px; }
  .config-checkout-action { position: fixed; left: 0; right: 0; bottom: calc(70px + max(env(safe-area-inset-bottom), var(--safe-bottom))); z-index: 2; max-width: 680px; max-height: 48dvh; overflow-y: auto; margin: 0 auto; }
}
@media (min-width: 900px) {
  body.miniapp-checkout .app-shell { padding-top: calc(20px + max(env(safe-area-inset-top), var(--safe-top))); }
  body.miniapp-payment-methods #config-title { width: min(620px, 100%); max-width: none; margin-left: auto; margin-right: auto; }
  .config-layout { grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); grid-template-rows: auto 1fr; column-gap: 30px; row-gap: 0; }
  #config-options { grid-column: 1; grid-row: 1 / span 2; }
  .config-draft { grid-column: 2; grid-row: 1; border: 0; border-left: 1px solid var(--line); padding: 0 0 0 28px; position: static; }
  .config-action { grid-column: 2; grid-row: 2; align-self: start; margin-left: 28px; border: 0; padding: 10px 0 0; background: transparent; }
  .config-checkout-action { margin-top: 12px; padding: 12px 0; }
}
@media (max-width: 359px) {
  .config-addons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .config-toggle, .config-device-addon { padding: 8px 4px; }
  .period-options .period-card { padding: 11px 12px; }
  .period-options .period-base-price { font-size: 20px; }
  .period-options .period-card-name strong { font-size: 16px; }
  #config-title { font-size: 26px; }
}
