/* Nexus One People & Payroll checkout — Brand Works App */

.nexus_master_saas_app_checkout {
    --nexus-wp-accent: #0794aa;
    --nexus-wp-accent-dark: #067889;
    --nexus-wp-text: #172033;
    --nexus-wp-muted: #687586;
    --nexus-wp-border: #dce5ea;
}

/* Nexus One checkout rail: one clean line, only for steps in the active flow. */
.nexus_master_saas_app_checkout .nexus_checkout_stepper {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 10px !important;
    margin: 0 0 20px !important;
    padding: 5px 0 16px !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e9ed !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* The base checkout intentionally hides steps that are not part of the selected
   plan flow. Never let styling override the hidden attribute. */
.nexus_master_saas_app_checkout .nexus_checkout_step_indicator[hidden],
.nexus_master_saas_app_checkout .nexus_checkout_stepper .nexus_step_connector[hidden] {
    display: none !important;
}

/* The base fixed-plan checkout caps the rail at 430px. People & Payroll needs the
   progress rail to use the actual checkout width instead of creating a scrollbar. */
.nexus_master_saas_app_checkout .nexus_fixed_checkout_flow .nexus_checkout_stepper {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_stepper .nexus_step_connector:not([hidden]) {
    display: block !important;
    min-width: 24px !important;
    height: 1px !important;
    flex: 1 1 70px !important;
    margin: 0 2px !important;
    background: #d7e0e5 !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator:not([hidden]) {
    min-width: 0 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #7d8995 !important;
    white-space: nowrap !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator:not([hidden]) span {
    grid-row: auto !important;
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    border: 1px solid #cbd6dc !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #52616f !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator:not([hidden]) strong {
    display: inline !important;
    color: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator:not([hidden]) small {
    display: none !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator.is-complete:not([hidden]) {
    color: #334155 !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator.is-complete:not([hidden]) span {
    border-color: #8ccfd7 !important;
    background: #effbfc !important;
    color: #087f91 !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator.is-active:not([hidden]) {
    color: #0f6675 !important;
}

.nexus_master_saas_app_checkout .nexus_checkout_step_indicator.is-active:not([hidden]) span {
    border-color: var(--nexus-wp-accent) !important;
    background: var(--nexus-wp-accent) !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px rgba(7, 148, 170, .10) !important;
}

@media (min-width: 992px) {
    .nexus_master_saas_app_checkout .nexus_checkout_header {
        margin-bottom: 14px !important;
    }
}


/* The combined People & Payroll page should feel like one compact checkout step. */
.nexus_master_saas_app_checkout section[data-checkout-step="users"] .nexus_checkout_step_header {
    margin-bottom: 14px !important;
}

.nexus_master_saas_app_checkout section[data-checkout-step="users"] .nexus_checkout_step_header h2 {
    margin-top: 3px !important;
    font-size: 32px !important;
}

.nexus_master_saas_app_checkout section[data-checkout-step="users"] .nexus_checkout_user_panel {
    gap: 14px !important;
    padding: 18px 20px !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .04) !important;
}

.nexus_master_saas_app_checkout section[data-checkout-step="users"] .nexus_checkout_user_icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-size: 19px !important;
}

.nexus_master_saas_app_checkout section[data-checkout-step="users"] .nexus_checkout_user_copy strong {
    font-size: 15px !important;
}

.nexus_master_saas_app_checkout .nexus_wp_people_payroll {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8edf1;
}

.nexus_master_saas_app_checkout .nexus_wp_people_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.nexus_master_saas_app_checkout .nexus_wp_people_kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--nexus-wp-accent-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.nexus_master_saas_app_checkout .nexus_wp_people_header h3 {
    margin: 0 0 3px;
    color: var(--nexus-wp-text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.nexus_master_saas_app_checkout .nexus_wp_people_header p {
    max-width: 680px;
    margin: 0;
    color: var(--nexus-wp-muted);
    font-size: 13px;
    line-height: 1.45;
}

.nexus_master_saas_app_checkout .nexus_wp_people_subtotal {
    min-width: 150px;
    text-align: right;
}

.nexus_master_saas_app_checkout .nexus_wp_people_subtotal span {
    display: block;
    color: var(--nexus-wp-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nexus_master_saas_app_checkout .nexus_wp_people_subtotal strong {
    display: block;
    margin-top: 3px;
    color: var(--nexus-wp-text);
    font-size: 18px;
}

.nexus_master_saas_app_checkout .nexus_wp_offer_switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--nexus-wp-border);
    border-radius: 14px;
    background: #f4f7f9;
}

.nexus_master_saas_app_checkout .nexus_wp_offer {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #485668;
    text-align: left;
    cursor: pointer;
    transition: .16s ease;
}

.nexus_master_saas_app_checkout .nexus_wp_offer:hover {
    background: #fff;
    color: var(--nexus-wp-text);
}

.nexus_master_saas_app_checkout .nexus_wp_offer.is-selected {
    border-color: #b9dce2;
    background: #fff;
    color: var(--nexus-wp-text);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.nexus_master_saas_app_checkout .nexus_wp_offer > .fa {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    background: #e8f5f7;
    color: var(--nexus-wp-accent-dark);
}

.nexus_master_saas_app_checkout .nexus_wp_offer > span:nth-child(2) {
    min-width: 0;
}

.nexus_master_saas_app_checkout .nexus_wp_offer strong,
.nexus_master_saas_app_checkout .nexus_wp_offer small {
    display: block;
}

.nexus_master_saas_app_checkout .nexus_wp_offer strong {
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

.nexus_master_saas_app_checkout .nexus_wp_offer small {
    margin-top: 2px;
    overflow: hidden;
    color: #7a8795;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nexus_master_saas_app_checkout .nexus_wp_recommended_badge {
    position: absolute;
    top: 5px;
    right: 7px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #f0eaff;
    color: #6b3ed8;
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nexus_master_saas_app_checkout .nexus_wp_people_detail {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #dce7eb;
    border-radius: 14px;
    background: #fbfdfe;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef1;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line_copy strong,
.nexus_master_saas_app_checkout .nexus_wp_people_line_copy span {
    display: block;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line_copy strong {
    color: var(--nexus-wp-text);
    font-size: 13px;
    font-weight: 800;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line_copy span {
    margin-top: 2px;
    color: var(--nexus-wp-muted);
    font-size: 11px;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line_value {
    min-width: 135px;
    text-align: right;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line_value strong,
.nexus_master_saas_app_checkout .nexus_wp_people_line_value small {
    display: block;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line_value strong {
    color: var(--nexus-wp-text);
    font-size: 18px;
}

.nexus_master_saas_app_checkout .nexus_wp_people_line_value small {
    margin-top: 2px;
    color: var(--nexus-wp-muted);
    font-size: 10px;
}

.nexus_master_saas_app_checkout .nexus_wp_quantity_control {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid #d2dce2;
    border-radius: 11px;
    background: #fff;
}

.nexus_master_saas_app_checkout .nexus_wp_quantity_control input {
    width: 70px;
    height: 36px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--nexus-wp-text);
    font-weight: 850;
    text-align: center;
}

.nexus_master_saas_app_checkout .nexus_wp_payroll_only_adjust {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #edf3f5;
    color: #344454;
    font-size: 18px;
    font-weight: 850;
}

.nexus_master_saas_app_checkout .nexus_wp_payroll_only_adjust:hover {
    background: #e2eef1;
    color: var(--nexus-wp-accent-dark);
}

.nexus_master_saas_app_checkout .nexus_wp_people_summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e8eef1;
    background: #f3fafb;
}

.nexus_master_saas_app_checkout .nexus_wp_people_summary > div {
    padding: 13px 16px;
}

.nexus_master_saas_app_checkout .nexus_wp_people_summary > div + div {
    border-left: 1px solid #dce7eb;
}

.nexus_master_saas_app_checkout .nexus_wp_people_summary span,
.nexus_master_saas_app_checkout .nexus_wp_people_summary strong {
    display: block;
}

.nexus_master_saas_app_checkout .nexus_wp_people_summary span {
    color: var(--nexus-wp-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nexus_master_saas_app_checkout .nexus_wp_people_summary strong {
    margin-top: 3px;
    color: var(--nexus-wp-text);
    font-size: 17px;
}

.nexus_master_saas_app_checkout .nexus_wp_formula_note,
.nexus_master_saas_app_checkout .nexus_wp_bundle_notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    color: #647383;
    font-size: 11px;
    line-height: 1.4;
}

.nexus_master_saas_app_checkout .nexus_wp_bundle_notice {
    border-top: 1px solid #dcebe5;
    background: #f2fbf7;
    color: #216955;
}

.nexus_master_saas_app_checkout .nexus_checkout_app_card.nexus_wp_included {
    border-color: #48b899 !important;
    box-shadow: 0 0 0 2px rgba(72, 184, 153, .08);
}

.nexus_master_saas_app_checkout .nexus_wp_included_badge {
    display: block;
    margin-top: 3px;
    color: #18735d;
    font-weight: 750;
}

@media (max-width: 991.98px) {
    .nexus_master_saas_app_checkout .nexus_checkout_stepper {
        width: 100% !important;
        max-width: none !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        padding-bottom: 13px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nexus_master_saas_app_checkout .nexus_checkout_stepper::-webkit-scrollbar {
        display: none;
    }

    .nexus_master_saas_app_checkout .nexus_checkout_stepper .nexus_step_connector:not([hidden]) {
        min-width: 18px !important;
        flex: 1 0 24px !important;
    }

    .nexus_master_saas_app_checkout .nexus_wp_offer_switch {
        grid-template-columns: 1fr;
    }

    .nexus_master_saas_app_checkout .nexus_wp_offer small {
        white-space: normal;
    }
}

@media (max-width: 700px) {
    .nexus_master_saas_app_checkout .nexus_checkout_step_indicator:not([hidden]) strong {
        display: none !important;
    }

    .nexus_master_saas_app_checkout .nexus_checkout_step_indicator:not([hidden]) span {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }
}

@media (max-width: 575.98px) {
    .nexus_master_saas_app_checkout .nexus_wp_people_header {
        display: grid;
        gap: 10px;
    }

    .nexus_master_saas_app_checkout .nexus_wp_people_subtotal {
        min-width: 0;
        text-align: left;
    }

    .nexus_master_saas_app_checkout .nexus_wp_people_line {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nexus_master_saas_app_checkout .nexus_wp_people_line_value {
        min-width: 0;
        text-align: left;
    }

    .nexus_master_saas_app_checkout .nexus_wp_quantity_control {
        width: 100%;
        justify-content: space-between;
    }

    .nexus_master_saas_app_checkout .nexus_wp_quantity_control input {
        width: 100%;
        min-width: 0;
    }

    .nexus_master_saas_app_checkout .nexus_wp_people_summary {
        grid-template-columns: 1fr;
    }

    .nexus_master_saas_app_checkout .nexus_wp_people_summary > div + div {
        border-top: 1px solid #dce7eb;
        border-left: 0;
    }
}

/* Nexus One payroll provider application chooser */
.nexus_master_saas_app_checkout .nexus_wp_provider_application {
    padding: 15px 16px 16px;
    border-top: 1px solid #e8eef1;
    border-bottom: 1px solid #e8eef1;
    background: linear-gradient(135deg, #f7fbfc 0%, #fbf9ff 100%);
}

.nexus_master_saas_app_checkout .nexus_wp_provider_heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_heading strong,
.nexus_master_saas_app_checkout .nexus_wp_provider_heading small {
    display: block;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_heading strong {
    margin-top: 2px;
    color: var(--nexus-wp-text);
    font-size: 14px;
    font-weight: 850;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_heading small {
    margin-top: 3px;
    max-width: 690px;
    color: var(--nexus-wp-muted);
    font-size: 11px;
    line-height: 1.4;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_summary {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(10, 151, 166, .22);
    border-radius: 999px;
    background: #fff;
    color: var(--nexus-wp-accent-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 74px;
    padding: 11px 10px;
    border: 1px solid #d9e3e8;
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
    color: #263746;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice:hover {
    transform: translateY(-1px);
    border-color: #8bc9d2;
    box-shadow: 0 7px 18px rgba(40, 77, 91, .08);
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice > .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #edf7f8;
    color: #0995a6;
    font-size: 15px;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice span:nth-child(2) {
    min-width: 0;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice strong,
.nexus_master_saas_app_checkout .nexus_wp_provider_choice small {
    display: block;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice strong {
    font-size: 12px;
    font-weight: 850;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice small {
    margin-top: 2px;
    color: #748391;
    font-size: 9.5px;
    line-height: 1.25;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice em {
    position: absolute;
    top: -7px;
    right: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #0798a8;
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice.is-selected {
    border-color: #0798a8;
    background: linear-gradient(135deg, #effbfc 0%, #f8f5ff 100%);
    box-shadow: 0 0 0 2px rgba(7, 152, 168, .08);
}

.nexus_master_saas_app_checkout .nexus_wp_provider_choice.is-selected > .fa {
    background: #0798a8;
    color: #fff;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_note {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-top: 10px;
    color: #667683;
    font-size: 10px;
    line-height: 1.4;
}

.nexus_master_saas_app_checkout .nexus_wp_provider_note .fa {
    margin-top: 1px;
    color: #0798a8;
}

@media (max-width: 991.98px) {
    .nexus_master_saas_app_checkout .nexus_wp_provider_choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .nexus_master_saas_app_checkout .nexus_wp_provider_heading {
        display: grid;
    }

    .nexus_master_saas_app_checkout .nexus_wp_provider_summary {
        justify-self: start;
    }

    .nexus_master_saas_app_checkout .nexus_wp_provider_choices {
        grid-template-columns: 1fr;
    }
}

/* Nexus One Payroll Engine: customer-facing identity only; backend routing stays private. */
.nexus_master_saas_app_checkout .nexus_wp_engine_identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 13px 14px;
    border: 1px solid #b9dce2;
    border-radius: 12px;
    background: linear-gradient(135deg, #effbfc 0%, #f8f5ff 100%);
    color: #263746;
    box-shadow: 0 0 0 2px rgba(7, 152, 168, .06);
}

.nexus_master_saas_app_checkout .nexus_wp_engine_identity > .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #0798a8;
    color: #fff;
    font-size: 17px;
}

.nexus_master_saas_app_checkout .nexus_wp_engine_identity strong,
.nexus_master_saas_app_checkout .nexus_wp_engine_identity small {
    display: block;
}

.nexus_master_saas_app_checkout .nexus_wp_engine_identity strong {
    font-size: 13px;
    font-weight: 850;
}

.nexus_master_saas_app_checkout .nexus_wp_engine_identity small {
    margin-top: 3px;
    color: #667683;
    font-size: 10px;
    line-height: 1.4;
}
