/* Public + shared checkout wizard */
.checkout-page { padding-top: 24px; }
.checkout-wrap { width: min(980px, calc(100% - 24px)); }
.checkout-wizard.account-panel { max-width: none; }
.account-back {
    margin: 0 0 14px;
    font-weight: 600;
}
.account-back a { color: var(--muted); text-decoration: none; }
.account-back a:hover { color: var(--ink); }
.checkout-wizard .h4 { font-size: 1.45rem; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 6px; }
.checkout-wizard .h5 { font-size: 1.1rem; font-weight: 800; margin: 0 0 6px; }
.checkout-wizard .h6 { font-size: 0.95rem; font-weight: 800; margin: 0; }
.checkout-wizard .text-secondary { color: var(--muted); }
.checkout-wizard .mb-0 { margin-bottom: 0; }
.checkout-wizard .mb-1 { margin-bottom: 0.35rem; }
.checkout-wizard .mb-2 { margin-bottom: 0.65rem; }
.checkout-wizard .mb-3 { margin-bottom: 1rem; }
.checkout-wizard .mt-2 { margin-top: 0.65rem; }
.checkout-wizard .mt-3 { margin-top: 1rem; }
.checkout-wizard .w-100 { width: 100%; }
.checkout-wizard .checkout-step[hidden] { display: none !important; }
.checkout-wizard .alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 500;
}
.checkout-wizard .alert-danger { background: #fef2f2; color: #991b1b; }
.checkout-wizard .alert-success { background: #ecfdf5; color: #065f46; }
.checkout-wizard .form-control {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.checkout-wizard .form-control:focus {
    outline: 2px solid rgba(123, 92, 255, 0.28);
    border-color: #7b5cff;
}
.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.checkout-steps li {
    padding: 0;
    margin: 0;
}
.checkout-step-tab {
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.checkout-step-tab:hover {
    color: var(--ink);
    border-color: #d4c8ff;
}
.checkout-step-tab:focus-visible {
    outline: 2px solid rgba(123, 92, 255, 0.35);
    outline-offset: 2px;
}
.checkout-step-tab.is-on { color: var(--ink); background: #efe8ff; border-color: transparent; }
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 28px;
    align-items: start;
}
.checkout-summary {
    position: sticky;
    top: 16px;
}
.checkout-back a {
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}
.checkout-back a:hover { color: var(--ink); }
.checkout-cart-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}
.checkout-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    margin: 0 0 16px;
    border-radius: 14px;
    border: 1px solid #e2ddff;
    background: #f7f5ff;
}
.checkout-cart-copy {
    min-width: 0;
    flex: 1;
}
.checkout-cart-copy > strong {
    display: block;
    font-size: 1.05rem;
}
.checkout-cart-highlight {
    margin: 8px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-deep);
    line-height: 1.4;
}
.checkout-cart-features {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.checkout-cart-features li {
    position: relative;
    padding-left: 1.15em;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--ink);
    font-weight: 500;
}
.checkout-cart-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.checkout-cart-period {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 500;
}
.checkout-plan-dates {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.checkout-cart-line-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.checkout-cart-line-head strong {
    flex: 1 1 auto;
    min-width: 0;
}
.checkout-cart-action {
    margin: 0;
    flex: 0 0 auto;
}
.btn-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 2px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.12s ease, background 0.12s ease;
}
.btn-cart-remove:hover {
    color: var(--ink);
    background: rgba(17, 17, 17, 0.06);
}
.checkout-cart-remove-icon {
    display: block;
    width: 14px;
    height: 14px;
}
.checkout-empty-cart { margin: 0; }
.checkout-summary-addons,
.checkout-paid-addons {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.checkout-summary-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px auto;
    column-gap: 10px;
    row-gap: 4px;
    align-items: start;
}
.checkout-summary-line-body {
    min-width: 0;
    grid-column: 1;
}
.checkout-summary-line-body strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
}
.checkout-summary-line-action {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 28px;
    margin: 0;
    padding-top: 1px;
}
.checkout-summary-line-action--spacer {
    visibility: hidden;
    pointer-events: none;
}
.checkout-summary-line > .checkout-summary-price {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}
.checkout-summary-addon {
    padding: 6px 0;
    border-top: 1px solid var(--line);
}
.checkout-wizard .btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.82rem;
}
.checkout-summary-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.checkout-summary-addons {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
.checkout-summary-addons li {
    font-size: 0.86rem;
}
.checkout-summary-subtotal,
.checkout-summary-tax {
    font-size: 0.9rem;
    color: var(--muted);
}
.checkout-tax-note {
    margin: 0 0 12px;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}
.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0 0;
    margin: 0 0 10px;
    font-weight: 800;
}
.checkout-trust {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
}
.checkout-secure { font-size: 0.82rem; color: var(--muted); }
.checkout-plan-grid, .checkout-addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}
.checkout-plan, .checkout-addon {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}
.checkout-plan.is-on, .checkout-plan.is-featured.is-on, .checkout-addon.is-suggested {
    border-color: #7b5cff;
    box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.12);
}
.checkout-plan em, .checkout-addon .checkout-note {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-style: normal;
    margin-bottom: 4px;
}
.checkout-plan strong, .checkout-addon strong { display: block; }
.checkout-price { display: block; font-weight: 800; margin: 4px 0; }
.checkout-plan small, .checkout-addon small { color: var(--muted); }
.checkout-plan p, .checkout-addon p { margin: 8px 0 0; font-size: 0.86rem; }
.checkout-addon.is-owned { opacity: 0.72; }
.checkout-addon input, .checkout-plan input { margin-right: 6px; }
.checkout-bill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 18px;
}
.checkout-bill-grid label { display: block; font-weight: 700; font-size: 0.86rem; }
.checkout-bill-grid .checkout-span { grid-column: 1 / -1; }
.checkout-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: 4px;
}
.checkout-phone-dial {
    flex: 0 0 5.5rem;
    max-width: 5.5rem;
    text-align: center;
    font-weight: 600;
}
.checkout-phone-national { flex: 1 1 auto; min-width: 0; }

.checkout-gate-off {
    opacity: 0.72;
}
.checkout-referral-banner {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2ddff;
    background: #f7f5ff;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink);
}
.checkout-referral-banner--muted {
    background: #f8fafc;
    border-color: var(--line);
    color: var(--muted);
}
.checkout-req { color: #111; font-weight: 800; }
.checkout-flow {
    display: grid;
    gap: 16px;
}
.checkout-flow-block {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.checkout-step-billpay.is-billing-phase .checkout-flow-block--payment .checkout-flow-body {
    display: none;
}
.checkout-step-billpay.is-billing-phase .checkout-flow-block--payment {
    opacity: 0.55;
    pointer-events: none;
}
.checkout-step-billpay.is-payment-phase .checkout-flow-block--billing:not(.is-billing-expanded) .checkout-flow-body {
    display: none;
}
.checkout-step-billpay.is-payment-phase .checkout-flow-block--billing:not(.is-billing-expanded) .checkout-flow-summary {
    display: block;
}
.checkout-step-billpay.is-payment-phase .checkout-flow-block--billing.is-billing-expanded .checkout-flow-summary {
    display: none;
}
.checkout-step-billpay.is-payment-phase .checkout-flow-block--billing {
    opacity: 1;
}
.checkout-flow-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.checkout-flow-head--toggle {
    width: 100%;
    border: 0;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.checkout-step-billpay.is-billing-phase .checkout-flow-head--toggle {
    cursor: default;
}
.checkout-flow-head-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.checkout-flow-summary {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
}
.checkout-flow-chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.15s ease;
}
.checkout-step-billpay.is-billing-phase .checkout-flow-chevron {
    visibility: hidden;
}
.checkout-flow-block--billing.is-billing-expanded .checkout-flow-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.checkout-flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #efe8ff;
    color: #5b3fd4;
    font-size: 0.82rem;
    font-weight: 800;
    flex: 0 0 auto;
}
.checkout-flow-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.checkout-flow-body {
    padding: 18px;
}
.checkout-pay-instant {
    margin: 0;
    font-weight: 800;
    font-size: 0.92rem;
}
.checkout-pay-note {
    font-size: 0.86rem;
    line-height: 1.45;
}
.checkout-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.checkout-pay-method {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.checkout-pay-method.is-selected {
    border-color: #c4b5fd;
    box-shadow: 0 0 0 1px rgba(91, 63, 212, 0.12);
}
.checkout-pay-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.checkout-pay-method-title { flex: 1 1 auto; min-width: 0; }
.checkout-pay-method-chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.15s ease;
}
.checkout-pay-method.is-open .checkout-pay-method-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.checkout-pay-method-panel {
    display: none;
    padding: 0 16px 14px;
}
.checkout-pay-method.is-open .checkout-pay-method-panel {
    display: block;
}
.checkout-pay-method-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}
.checkout-secure {
    font-size: 0.82rem;
    color: var(--muted);
}
.checkout-secure-icon { margin-right: 4px; }
.checkout-auth-gate {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #faf9ff;
}
.checkout-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.checkout-flow-lede {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.checkout-flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}
.checkout-flow-continue {
    min-width: min(100%, 220px);
    flex: 1 1 auto;
}
.checkout-step-billpay.is-billing-phase .checkout-flow-block--billing .checkout-flow-continue[data-next="4"] {
    min-width: min(100%, 280px);
}
.checkout-company-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    margin: 0;
}
.checkout-company-toggle input { margin: 0; flex: 0 0 auto; }
.checkout-phone-dial {
    flex: 0 0 min(42%, 11rem);
    max-width: 11rem;
    font-weight: 600;
    font-size: 0.82rem;
}
.checkout-summary-heading {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.checkout-summary-plan {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.checkout-summary-plan .checkout-summary-line-body strong {
    font-size: 0.95rem;
}
.checkout-summary-plan-meta {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}
.checkout-summary-price {
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}
.checkout-summary-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: normal;
}
.checkout-price-was {
    text-decoration: line-through;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}
.checkout-price-now {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}
.checkout-summary-addon .checkout-summary-price-stack {
    align-items: flex-end;
}
.checkout-summary-divider {
    height: 1px;
    background: var(--line);
    margin: 12px 0;
}
.checkout-summary-tax-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.checkout-tax-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    cursor: help;
}
.checkout-summary-tax .js-side-tax { font-weight: 700; margin-left: auto; }
.checkout-coupon-toggle {
    display: block;
    width: 100%;
    margin: 4px 0 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #6a5af8;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.checkout-coupon-toggle:hover { text-decoration: underline; }
.checkout-coupon-panel { margin-bottom: 12px; }
.checkout-coupon-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.checkout-coupon-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.checkout-coupon-row .form-control { flex: 1 1 auto; min-width: 0; }
.checkout-summary-continue {
    margin-top: 4px;
    min-height: 46px;
    font-weight: 700;
}
.checkout-wizard .btn-outline-primary {
    border: 1px solid #7b5cff;
    color: #5b3fd4;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}
.checkout-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.checkout-tax-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.86rem;
    line-height: 1.5;
}
.checkout-tax-block { display: block; }
.checkout-bill-grid .checkout-tax-na {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 0;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
}
.checkout-tax-na input { margin: 2px 0 0; flex: 0 0 auto; }
.checkout-tax-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
}
.checkout-tax-block input[data-tax-input]:disabled {
    background: #f1f5f9;
    color: var(--muted);
}
.checkout-renew { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.checkout-paid-addons { margin: 8px 0 0; padding-left: 18px; }
.checkout-pay-box .js-summary-period { font-size: 0.86rem; }
.account-bill-hero {
    padding: 16px;
    border-radius: 14px;
    background: #f7f5ff;
    border: 1px solid #e2ddff;
}
.checkout-wizard .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}
@media (max-width: 720px) {
    .checkout-bill-grid { grid-template-columns: 1fr; }
}
