/**
 * Shared four-phase marketplace onboarding presentation.
 *
 * Marketplace identity is injected as sanitized data; layout and interaction states remain centralized so adding a
 * provider never creates another stylesheet or changes the customer journey.
 */
:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --onboarding-bg: #f7f9fc;
    --onboarding-surface: #fff;
    --onboarding-border: #dce5f1;
    --onboarding-border-soft: #e9eef5;
    --onboarding-text: #10213d;
    --onboarding-muted: #526887;
    --onboarding-muted-soft: #71819a;
    --onboarding-primary: #2167ed;
    --onboarding-primary-soft: #edf4ff;
    --onboarding-success: #2f8d22;
    --onboarding-success-soft: #eff8ec;
    --onboarding-warning: #9a6700;
    --onboarding-danger: #b42318;
    --marketplace-accent: #2f8d22;
    --onboarding-shadow: 0 14px 36px rgba(34, 58, 93, .06);
}

/* Four-step workflow and review confirmation */
.installation-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.installation-progress__phase {
    padding-right: 18px;
    padding-left: 18px;
}

.installation-progress__phase:not(:last-child)::after {
    right: -10%;
    width: 20%;
}

.review-panel {
    overflow: hidden;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, .34fr);
}

.review-main {
    display: grid;
    min-width: 0;
    gap: 18px;
    padding: 28px;
}

.review-heading h2,
.review-heading p {
    margin: 0;
}

.review-heading h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

.review-heading p {
    color: var(--onboarding-muted);
    font-size: 13px;
}

.review-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
}

.review-card {
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--onboarding-border);
    border-radius: 0;
    padding: 24px 0;
    background: transparent;
}

.review-card > header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.review-card > header h3,
.review-card > header small {
    margin: 0;
}

.review-card > header h3 {
    font-size: 15px;
}

.review-card > header small {
    display: block;
    margin-top: 2px;
    color: var(--onboarding-muted);
    font-size: 12px;
}

.review-card > header > button,
.review-descriptor-add {
    min-height: 32px;
    border: 1px solid #d3deed;
    border-radius: 7px;
    padding: 5px 11px;
    background: #fff;
    box-shadow: none;
    color: var(--onboarding-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.review-card__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.review-card__icon svg {
    width: 20px;
    height: 20px;
}

.review-card--business-store,
.review-card--mids {
    grid-column: 1 / -1;
}

.review-business-store-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
}

.review-business-store-grid > div {
    min-width: 0;
}

.review-business-store-grid > div + div {
    border-left: 1px solid var(--onboarding-border-soft);
    padding-left: 20px;
}

.review-business-store-grid h4 {
    margin: 0 0 12px;
    color: var(--onboarding-text);
    font-size: 13px;
}

.review-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
    margin: 0;
}

.review-details--stacked {
    grid-template-columns: 1fr;
}

.review-details__wide {
    grid-column: 1 / -1;
}

.review-details dt,
.review-details dd {
    margin: 0;
}

.review-details dt {
    margin-bottom: 4px;
    color: var(--onboarding-muted);
    font-size: 12px;
    font-weight: 650;
}

.review-details dd {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.review-platform-value {
    display: flex;
    align-items: center;
    gap: 7px;
}

.review-platform-value img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.review-card__count {
    margin: -3px 0 11px;
    color: var(--onboarding-muted);
    font-size: 12px;
}

.review-provider-list {
    display: grid;
    gap: 7px;
}

.review-descriptor-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.review-descriptor-chips button,
.review-descriptor-chips span {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    padding: 6px 9px;
    background: #f3f4f6;
    box-shadow: none;
    color: #111111;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.review-descriptor-chips svg {
    width: 13px;
    height: 13px;
}

.review-card--mids > header {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    margin: 0;
}

.review-card--mids details {
    position: relative;
}

.review-card--mids summary {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    border: 1px solid #d3deed;
    border-radius: 7px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
}

.review-card--mids summary svg {
    width: 15px;
    height: 15px;
}

.review-card--mids details ul {
    position: absolute;
    z-index: 4;
    top: calc(100% + 7px);
    right: 0;
    width: min(360px, 70vw);
    margin: 0;
    border: 1px solid var(--onboarding-border);
    border-radius: 9px;
    padding: 8px 12px;
    background: #fff;
    box-shadow: var(--onboarding-shadow);
    list-style: none;
}

.review-card--mids details li {
    display: grid;
    gap: 3px;
    border-bottom: 1px solid var(--onboarding-border-soft);
    padding: 8px 0;
    font-size: 12px;
}

.review-card--mids details li:last-child {
    border-bottom: 0;
}

.review-card--mids details li span {
    color: var(--onboarding-muted);
}

.review-actions {
    grid-column: 1 / -1;
    border-top: 1px solid var(--onboarding-border);
    padding: 15px 28px;
}

/* The right column keeps next-step and security guidance without repeating the protection summary. */
.review-aside {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 24px;
    border-left: 1px solid var(--onboarding-border);
    padding: 30px 26px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}

.review-next-step,
.review-security-note {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.review-next-step h3,
.review-next-step p,
.review-security-note strong,
.review-security-note small {
    display: block;
    margin: 0;
}

.review-next-step h3,
.review-security-note strong {
    color: var(--onboarding-text);
    font-size: 14px;
}

.review-next-step p,
.review-security-note small {
    margin-top: 6px;
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.55;
}

.review-aside__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.review-aside__icon svg {
    width: 19px;
    height: 19px;
}

.review-security-note {
    margin-top: auto;
    border: 1px solid var(--onboarding-border);
    border-radius: 9px;
    padding: 13px;
    background: #fff;
}

.installation-button--continue {
    min-width: 225px;
}

/* Protection keeps verified descriptors visible while coverage choices use equal-height cards. */
.protected-panel {
    grid-template-columns: 285px minmax(0, 1fr);
}

.protected-descriptor-panel {
    padding: 28px 22px;
}

.protected-descriptor-panel .protected-summary__heading {
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    gap: 11px;
}

.protected-descriptor-panel .onboarding-heading-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
}

.protected-descriptor-panel .protected-summary__heading h2 {
    font-size: 20px;
}

.protected-descriptor-panel__count {
    display: grid;
    gap: 3px;
    margin-top: 24px;
    border-bottom: 1px solid var(--onboarding-border-soft);
    padding-bottom: 13px;
}

.protected-descriptor-panel__count strong {
    font-size: 13px;
}

.protected-descriptor-panel__count small {
    color: var(--onboarding-muted);
    font-size: 12px;
}

.protected-descriptor-panel .protected-summary__descriptors {
    display: grid;
}

.protected-descriptor-panel .protected-summary__descriptors span {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coverage-selection {
    padding: 28px 26px 24px;
}

.coverage-recommendation {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    margin-top: 20px;
    border: 1px solid #c9e0c4;
    border-radius: 11px;
    padding: 15px 17px;
    background: linear-gradient(90deg, #f8fcf7, #fff);
}

.coverage-recommendation__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 13px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.coverage-recommendation__icon svg {
    width: 25px;
    height: 25px;
}

.coverage-recommendation > span:nth-child(2) > * {
    display: block;
}

.coverage-recommendation em {
    margin-bottom: 4px;
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.coverage-recommendation strong {
    font-size: 16px;
}

.coverage-recommendation small {
    margin-top: 4px;
    color: var(--onboarding-muted);
    font-size: 12px;
}

.coverage-recommendation__networks {
    display: flex;
    align-items: center;
    gap: 16px;
}

.coverage-recommendation__networks img {
    width: auto;
    max-width: 58px;
    height: 24px;
    object-fit: contain;
}

.coverage-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.coverage-plan {
    display: flex;
    min-height: 300px;
    flex-direction: column;
}

.coverage-plan__choice {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 12px 10px;
    padding: 17px;
}

.coverage-plan__brand {
    grid-column: 2;
    width: 88px;
    height: 54px;
}

.coverage-plan__brand--both {
    height: 66px;
}

.coverage-plan__copy {
    grid-column: 2;
}

.coverage-plan__copy > small {
    min-height: 52px;
}

.coverage-plan__benefits {
    display: grid;
    gap: 8px;
    margin: 13px 0 0;
    padding: 0;
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.4;
    list-style: none;
}

.coverage-plan__benefits li {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
}

.coverage-plan__benefits svg {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    padding: 3px;
    background: var(--onboarding-success);
    color: #fff;
    stroke-width: 2.4;
}

.coverage-plan__focus {
    align-items: flex-start;
    flex-direction: column;
}

[data-coverage-price] > span {
    display: block;
}

.coverage-plan__pricing {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    border-top: 1px solid var(--onboarding-border-soft);
    padding-top: 10px;
}

.coverage-plan__pricing[hidden] {
    display: none;
}

.coverage-plan__pricing .coverage-price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    gap: 5px;
    align-items: center;
    font-size: 12px;
    line-height: 1.4;
}

.coverage-price-network {
    color: var(--onboarding-muted);
    font-weight: 500;
}

.coverage-price-amount {
    color: var(--onboarding-text);
    font-weight: 700;
    white-space: nowrap;
}

.protection-finalize__plan .coverage-price-network::after {
    content: ': ';
}

.coverage-price-help {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: var(--onboarding-muted);
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    line-height: 1;
    align-self: center;
}

.coverage-price-help:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.coverage-plan__coverage {
    box-sizing: border-box;
    height: 112px;
    min-height: 88px;
    flex: 0 0 112px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: auto;
    border-top: 1px solid var(--onboarding-border-soft);
    border-left: 0;
    padding: 11px 17px;
}

.coverage-plan__coverage > span:first-child {
    grid-column: 1;
    grid-row: 1;
}

.coverage-plan__coverage > strong {
    grid-column: 1;
    grid-row: 2;
}

.coverage-plan__coverage > button {
    grid-column: 1;
    grid-row: 3;
}

.coverage-plan__coverage-network {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 3;
    min-width: 58px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    align-self: stretch;
}

.coverage-plan__coverage-network img {
    display: block;
    width: auto;
    max-width: 58px;
    height: 25px;
    object-fit: contain;
}

.coverage-plan__coverage button {
    justify-self: start;
}

@media (max-width: 1050px) {
    .protected-panel {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .coverage-plan__choice {
        padding: 14px 12px;
    }
}

@media (max-width: 880px) {
    .protected-panel {
        grid-template-columns: 1fr;
    }

    .protected-summary {
        border-top: 1px solid var(--onboarding-border);
        border-right: 0;
        border-left: 0;
    }

    .coverage-plans {
        grid-template-columns: 1fr;
    }

    .coverage-plan {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .review-main {
        padding: 22px 18px;
    }

    .review-information-grid,
    .review-details,
    .review-business-store-grid {
        grid-template-columns: 1fr;
    }

    .review-business-store-grid {
        gap: 18px;
    }

    .review-business-store-grid > div + div {
        border-top: 1px solid var(--onboarding-border-soft);
        border-left: 0;
        padding-top: 18px;
        padding-left: 0;
    }

    .review-details__wide,
    .review-card--business-store,
    .review-card--mids {
        grid-column: auto;
    }

    .review-card--mids > header {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .review-card--mids details {
        grid-column: 2;
        justify-self: start;
    }

    .coverage-recommendation {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .coverage-recommendation__networks {
        grid-column: 2;
    }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
    background: var(--onboarding-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 80% 8%, rgba(221, 233, 252, .34), transparent 30%),
        var(--onboarding-bg);
    color: var(--onboarding-text);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.onboarding-shell {
    min-height: 100vh;
}

.marketplace-installation {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 28px;
}

/* The header keeps marketplace identity visible without competing with the active task. */
.installation-header {
    display: flex;
    min-height: 76px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 17px;
}

.installation-header__marketplace {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 14px;
}

.installation-header__marketplace > img,
.marketplace-logo-fallback {
    display: grid;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 11px;
    object-fit: contain;
}

.installation-header__marketplace > img {
    object-position: center;
}

.marketplace-logo-fallback {
    background: color-mix(in srgb, var(--marketplace-accent) 12%, white);
    color: var(--marketplace-accent);
    font-size: 20px;
    font-weight: 800;
}

.installation-header__marketplace p {
    margin: 0 0 4px;
    color: var(--marketplace-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.installation-header__marketplace h1 {
    margin: 0;
    font-size: clamp(27px, 3vw, 39px);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.installation-header__marketplace span {
    display: block;
    margin-top: 7px;
    color: var(--onboarding-muted);
    font-size: 14px;
}

.installation-notice {
    margin-bottom: 14px;
    border: 1px solid #b9d2fb;
    border-radius: 10px;
    padding: 11px 14px;
    background: #f1f6ff;
    color: #17468f;
    font-size: 12px;
}

.installation-notice--error {
    border-color: #f4b4ae;
    background: #fff4f2;
    color: var(--onboarding-danger);
}

/* The progress indicator is intentionally capped at 80px to avoid another wizard-like header. */
.installation-progress {
    display: grid;
    min-height: 80px;
    max-height: 80px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
    border: 1px solid var(--onboarding-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--onboarding-shadow);
}

.installation-progress__phase {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 26px;
    color: inherit;
    text-decoration: none;
}

.installation-progress__phase:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -12%;
    width: 24%;
    height: 1px;
    background: var(--onboarding-border);
    content: "";
}

.installation-progress__phase.is-complete::after {
    height: 2px;
    background: var(--marketplace-accent);
}

.installation-progress__number {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid #cfdaea;
    border-radius: 50%;
    background: #f8fafd;
    color: var(--onboarding-text);
    font-size: 13px;
    font-weight: 750;
}

.installation-progress__phase.is-active .installation-progress__number,
.installation-progress__phase.is-complete .installation-progress__number {
    border-color: var(--marketplace-accent);
    background: var(--marketplace-accent);
    color: #fff;
}

.installation-progress__copy strong,
.installation-progress__copy small {
    display: block;
}

.installation-progress__copy strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.installation-progress__copy small {
    max-width: 195px;
    color: var(--onboarding-muted);
    font-size: 13px;
    line-height: 1.35;
}

.onboarding-panels {
    display: grid;
    gap: 16px;
}

.onboarding-panel {
    display: none;
    border: 1px solid var(--onboarding-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--onboarding-shadow);
}

.onboarding-panel.is-active {
    display: grid;
}

.onboarding-panel h2,
.onboarding-panel h3,
.onboarding-panel p {
    margin-top: 0;
}

.onboarding-panel h2 {
    margin-bottom: 8px;
    font-size: clamp(27px, 3vw, 39px);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.onboarding-panel h3 {
    margin-bottom: 6px;
    font-size: 16px;
    letter-spacing: -.02em;
}

.onboarding-panel p {
    color: var(--onboarding-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* Connect */
.connect-panel {
    grid-template-columns: minmax(0, 48%) minmax(420px, 52%);
    min-height: 560px;
    overflow: hidden;
}

.connect-panel__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 28px 42px 58px;
}

.connect-panel__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 21px;
}

.connect-panel__identity img,
.connect-panel__identity .marketplace-logo-fallback {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.connect-panel__identity strong {
    font-size: 22px;
    letter-spacing: -.035em;
}

.connect-panel__copy > p {
    max-width: 510px;
    font-size: 14px;
}

.connect-benefits {
    display: grid;
    gap: 11px;
    margin: 20px 0 23px;
    padding: 0;
    list-style: none;
}

.connect-benefits li {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
}

.connect-benefits li > svg {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    padding: 10px;
    background: var(--ui-color-gray-100);
    color: var(--ui-color-gray-400);
}

.connect-benefits strong,
.connect-benefits small {
    display: block;
}

.connect-benefits strong {
    margin-bottom: 2px;
    font-size: 14px;
}

.connect-benefits small {
    color: var(--onboarding-muted);
    font-size: 13px;
}

.connect-redirect-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 0 0 !important;
    font-size: 12px !important;
}

.connect-redirect-note svg {
    width: 14px;
    height: 14px;
}

.connect-visual {
    --marketplace-accent: var(--marketplace-hero-accent);
    --connect-node-offset: 148.49px;
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, color-mix(in srgb, var(--marketplace-accent) 7%, white), transparent 43%),
        linear-gradient(145deg, white, color-mix(in srgb, var(--marketplace-accent) 5%, white));
}

.connect-visual__ring {
    position: absolute;
    top: calc(50% - 24px);
    left: 50%;
    border: 1px solid color-mix(in srgb, var(--marketplace-accent) 20%, white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.connect-visual__ring--outer {
    width: 420px;
    height: 420px;
    --orbit-radius: 210px;
    animation: connect-orbit-outer 28s linear infinite;
}

.connect-visual__ring--inner {
    width: 300px;
    height: 300px;
    --orbit-radius: 150px;
    animation: connect-orbit-inner 20s linear infinite reverse;
}

.connect-visual__orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: color-mix(in srgb, var(--marketplace-accent) 65%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--marketplace-accent) 9%, transparent);
    opacity: .86;
    transform: rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) translate(-50%, -50%);
    animation: connect-orbit-pulse 2.4s ease-in-out var(--pulse-delay) infinite;
}

.connect-visual__ring--outer .connect-visual__orbit-dot:nth-child(2) { width: 13px; height: 13px; background: var(--marketplace-accent); }
.connect-visual__ring--outer .connect-visual__orbit-dot:nth-child(3) { width: 6px; height: 6px; }
.connect-visual__ring--outer .connect-visual__orbit-dot:nth-child(4) { width: 10px; height: 10px; background: color-mix(in srgb, var(--marketplace-accent) 35%, white); }
.connect-visual__ring--inner .connect-visual__orbit-dot { width: 7px; height: 7px; background: var(--marketplace-accent); }
.connect-visual__ring--inner .connect-visual__orbit-dot:nth-child(2) { width: 11px; height: 11px; background: color-mix(in srgb, var(--marketplace-accent) 75%, white); }
.connect-visual__ring--inner .connect-visual__orbit-dot:nth-child(3) { width: 5px; height: 5px; }

.connect-visual__ring--outer .connect-visual__orbit-dot:nth-child(1) { --orbit-angle: 0deg; --pulse-delay: 0s; }
.connect-visual__ring--outer .connect-visual__orbit-dot:nth-child(2) { --orbit-angle: 82deg; --pulse-delay: -.42s; }
.connect-visual__ring--outer .connect-visual__orbit-dot:nth-child(3) { --orbit-angle: 194deg; --pulse-delay: -.84s; }
.connect-visual__ring--outer .connect-visual__orbit-dot:nth-child(4) { --orbit-angle: 286deg; --pulse-delay: -1.26s; }
.connect-visual__ring--inner .connect-visual__orbit-dot:nth-child(1) { --orbit-angle: 34deg; --pulse-delay: 0s; }
.connect-visual__ring--inner .connect-visual__orbit-dot:nth-child(2) { --orbit-angle: 142deg; --pulse-delay: -.58s; }
.connect-visual__ring--inner .connect-visual__orbit-dot:nth-child(3) { --orbit-angle: 248deg; --pulse-delay: -1.16s; }

@keyframes connect-orbit-outer {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes connect-orbit-inner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes connect-orbit-pulse {
    0%, 100% { opacity: .55; filter: saturate(.8); }
    50% { opacity: 1; box-shadow: 0 0 0 7px color-mix(in srgb, var(--marketplace-accent) 12%, transparent); filter: saturate(1.2); }
}

.connect-visual__logo {
    position: absolute;
    top: calc(50% - 24px);
    left: 50%;
    display: grid;
    width: 142px;
    height: 142px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--marketplace-accent) 15%, white);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px color-mix(in srgb, var(--marketplace-accent) 12%, transparent);
    transform: translate(-50%, -50%);
}

.connect-visual__logo > img,
.connect-visual__logo > .marketplace-logo-fallback {
    width: 94px;
    height: 94px;
    object-fit: contain;
}

.connect-visual__logo em {
    position: absolute;
    top: -13px;
    right: -13px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--marketplace-accent);
    color: #fff;
}

.connect-visual__logo em svg {
    width: 21px;
    height: 21px;
}

/* Anchor icon centers to the outer orbit; keep labels clear of its lines. */
.connect-visual__node {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 112px;
    justify-items: center;
    align-content: center;
    gap: 8px;
    transform: translateX(-50%);
    color: var(--marketplace-accent);
}

.connect-visual__node svg {
    width: 24px;
    height: 24px;
}
.connect-visual__node small {
    padding: 2px 4px;
    background: color-mix(in srgb, var(--marketplace-accent) 3%, white);
    color: var(--onboarding-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.connect-visual__node--store,
.connect-visual__node--card { top: calc(50% - 36px - var(--connect-node-offset)); }
.connect-visual__node--alerts,
.connect-visual__node--reports { top: calc(50% - 36px + var(--connect-node-offset)); }
.connect-visual__node--store,
.connect-visual__node--alerts { left: calc(50% - var(--connect-node-offset)); }
.connect-visual__node--card,
.connect-visual__node--reports { left: calc(50% + var(--connect-node-offset)); }

.connect-visual__security {
    position: absolute;
    z-index: 3;
    right: 26px;
    bottom: 22px;
    left: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align: left;
    border-top: 1px solid var(--onboarding-border-soft);
    padding: 16px 0 0;
    background: transparent;
    box-shadow: none;
}

.connect-visual__security > svg {
    width: 28px;
    height: 28px;
    color: var(--marketplace-accent);
}

.connect-visual__security strong,
.connect-visual__security small {
    display: block;
}

.connect-visual__security strong {
    margin-bottom: 2px;
    font-size: 12px;
}

.connect-visual__security small {
    color: var(--onboarding-muted);
    font-size: 12px;
}

/* Shared actions intentionally have no shadow or positional hover effect. */
.installation-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
}

.installation-actions--left {
    justify-content: flex-start;
}

.installation-button {
    display: inline-flex;
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #cfd9e8;
    border-radius: 9px;
    padding: 0 18px;
    background: #fff;
    box-shadow: none;
    color: var(--onboarding-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.installation-button:hover {
    border-color: #aebed3;
    background: #f7f9fc;
}

.installation-button:focus-visible,
.installation-add-identifier:focus-visible,
.descriptor-chips button:focus-visible,
.verification-summary__section header button:focus-visible,
.descriptor-card__menu summary:focus-visible,
.descriptor-card__menu button:focus-visible,
.descriptor-dialog__context-actions button:focus-visible,
.descriptor-dialog__remove:focus-visible,
.coverage-help-link:focus-visible,
.coverage-plan__coverage button:focus-visible,
.coverage-comparison-callout button:focus-visible,
.coverage-dialog button:focus-visible {
    outline: 3px solid rgba(33, 103, 237, .2);
    outline-offset: 2px;
}

.installation-button svg {
    width: 18px;
    height: 18px;
}

.installation-button--primary {
    min-width: 218px;
    border-color: var(--marketplace-accent);
    background: var(--marketplace-accent);
    box-shadow: none;
    color: #fff;
}

.installation-button--primary:hover {
    border-color: color-mix(in srgb, var(--marketplace-accent) 86%, #10213d);
    background: color-mix(in srgb, var(--marketplace-accent) 86%, #10213d);
}

.installation-button:disabled {
    cursor: wait;
    opacity: .62;
}

/* Verify */
.verify-panel {
    min-height: 610px;
    padding: 34px;
}

.verification-live,
.verification-summary {
    display: grid;
    gap: 24px;
}

.verification-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
}

.verification-heading h2 {
    margin-bottom: 5px;
    font-size: clamp(22px, 2.5vw, 29px);
}

.verification-heading p {
    margin-bottom: 0;
}

.onboarding-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: color-mix(in srgb, var(--marketplace-accent) 8%, white);
    color: var(--marketplace-accent);
}

.onboarding-heading-icon svg {
    width: 30px;
    height: 30px;
}

.onboarding-heading-icon--blue {
    background: #e5e7eb;
    color: #4b5565;
}

.verification-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr);
    gap: 30px;
    align-items: stretch;
}

.verification-steps-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--onboarding-border);
    border-radius: 12px;
    background: #fff;
}

/* Status belongs inside the work list so it reads as the card's context, not as a disconnected footer. */
.verification-steps-card__header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 164px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--marketplace-accent) 20%, white);
    padding: 14px 16px;
    background: color-mix(in srgb, var(--marketplace-accent) 3%, white);
}

.verification-steps-card__activity-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--marketplace-accent) 10%, white);
    color: var(--marketplace-accent);
}

.verification-steps-card__activity-icon svg {
    width: 19px;
    height: 19px;
    animation: verification-activity-spin 2.4s linear infinite;
}

.verification-steps-card__header-copy strong,
.verification-steps-card__header-copy small {
    display: block;
}

.verification-steps-card__header-copy strong {
    margin-bottom: 2px;
    font-size: 12px;
}

.verification-steps-card__header-copy small {
    color: var(--onboarding-muted);
    font-size: 12px;
}

.verification-progress {
    display: grid;
    gap: 7px;
}

.verification-progress__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #4b5565;
}

.verification-progress__label strong,
.verification-progress__label em {
    font-size: 12px;
    font-style: normal;
    line-height: 1;
}

.verification-progress__label strong {
    font-weight: 650;
}

.verification-progress__label em {
    color: var(--marketplace-accent);
    font-weight: 750;
}

.verification-progress__track {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--marketplace-accent) 15%, white);
}

.verification-progress__track i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--marketplace-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
}

/* A slow turn communicates background activity without competing with each check's own status spinner. */
@keyframes verification-activity-spin {
    to {
        transform: rotate(360deg);
    }
}

.verification-checklist {
    flex: 1;
    margin: 0;
    padding: 10px 15px;
    list-style: none;
}

.verification-checklist li {
    display: grid;
    min-height: 66px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--onboarding-border-soft);
}

.verification-checklist li:last-child {
    border-bottom: 0;
}

.verification-checklist__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--marketplace-accent) 8%, white);
    color: var(--marketplace-accent);
}

.verification-checklist__icon svg {
    width: 20px;
    height: 20px;
}

.verification-checklist li > strong {
    font-size: 12px;
    font-weight: 650;
}

.verification-checklist__status {
    display: flex;
    min-width: 102px;
    align-items: center;
    gap: 9px;
    color: var(--onboarding-muted-soft);
}

.verification-checklist__status i {
    display: block;
    width: 18px;
    height: 18px;
    border: 1.5px solid #a9b7ca;
    border-radius: 50%;
}

.verification-checklist__status em {
    font-size: 12px;
    font-style: normal;
}

.verification-checklist li[data-status="complete"] .verification-checklist__status {
    color: var(--marketplace-accent);
}

.verification-checklist li[data-status="complete"] .verification-checklist__status i {
    border-color: var(--marketplace-accent);
    background: var(--marketplace-accent);
    box-shadow: inset 0 0 0 4px #fff;
}

.verification-checklist li[data-status="active"] .verification-checklist__status {
    color: #4b5565;
}

.verification-checklist li[data-status="active"] .verification-checklist__status i {
    border: 2px dotted #4b5565;
    animation: verification-spinner .9s linear infinite;
}

/* Rotation makes a long-running real or mocked verification visibly active without moving surrounding content. */
@keyframes verification-spinner {
    to {
        transform: rotate(360deg);
    }
}

.verification-checklist li[data-status="attention"] .verification-checklist__status {
    color: var(--onboarding-warning);
}

.verification-explainer {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    background: #f3f4f6;
}

.verification-explainer h3 {
    margin-top: 14px;
}

.verification-explainer > ul {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    color: #4b5565;
    font-size: 12px;
    list-style: none;
}

.verification-explainer > ul li::before {
    margin-right: 9px;
    color: #4b5565;
    content: "✓";
    font-weight: 800;
}

.verification-explainer > div:last-child {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8dde5;
    border-radius: 9px;
    padding: 11px;
    background: rgba(255, 255, 255, .72);
    margin-top: auto;
}

.verification-explainer > div:last-child > svg {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    padding: 7px;
    background: #e5e7eb;
    color: #4b5565;
}

.verification-explainer strong,
.verification-explainer small {
    display: block;
}

.verification-explainer strong {
    margin-bottom: 2px;
    font-size: 12px;
}

.verification-explainer small {
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.4;
}

.verification-missing {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #efd79e;
    border-radius: 10px;
    padding: 11px 14px;
    background: #fffbeb;
    color: var(--onboarding-warning);
}

.verification-missing svg {
    width: 24px;
    height: 24px;
}

.verification-missing strong,
.verification-missing small {
    display: block;
}

.verification-missing strong { margin-bottom: 2px; font-size: 12px; }
.verification-missing small { font-size: 12px; }

.verification-summary__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 16px;
}

.business-summary {
    grid-column: 1 / -1;
}

.business-summary__header {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px !important;
    align-items: center !important;
    margin-bottom: 18px !important;
}

.business-summary__heading-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px !important;
    padding: 0 !important;
    background: var(--onboarding-success-soft) !important;
    color: var(--onboarding-success) !important;
}

.business-summary__heading-icon svg {
    width: 24px;
    height: 24px;
}

.business-summary__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-summary__title h3 {
    margin: 0 !important;
}

.business-summary__title em {
    border-radius: 999px;
    padding: 3px 7px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.business-summary__header p {
    margin: 4px 0 0;
    font-size: 12px;
}

.business-summary__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 24px;
    align-items: stretch;
}

.provider-summary {
    align-self: stretch;
}

.descriptor-summary,
.provider-summary {
    height: 100%;
}

.verification-summary__section {
    min-width: 0;
    border: 1px solid var(--onboarding-border);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
}

.verification-summary__section > header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
}

.verification-summary__section > header h3 {
    margin: 0 auto 0 0;
    font-size: 15px;
}

.verification-summary__section > header > span {
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-weight: 700;
}

.verification-summary__section > header button,
.descriptor-summary__actions button,
.descriptor-chips button {
    border: 0;
    border-radius: 6px;
    padding: 5px 8px;
    background: var(--onboarding-primary-soft);
    box-shadow: none;
    color: var(--onboarding-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.business-summary dl,
.protection-readiness,
.success-status {
    display: grid;
    margin: 0;
}

.business-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.business-summary dl div {
    display: grid;
    min-width: 0;
    min-height: 42px;
    grid-template-columns: 20px 110px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid var(--onboarding-border-soft);
}

.business-summary__icon {
    display: grid;
    color: #60748f;
    place-items: center;
}

.business-summary__icon svg {
    width: 17px;
    height: 17px;
}

.business-summary dt,
.protection-readiness dt,
.success-status dt {
    margin: 0;
    color: #4f6483;
    font-size: 13px;
    font-weight: 650;
}

.business-summary dd,
.protection-readiness dd,
.success-status dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 500;
}

.business-summary__confidence {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    align-content: center;
    border-left: 1px solid var(--onboarding-border-soft);
    padding-left: 22px;
}

.business-summary__confidence > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.business-summary__confidence svg {
    width: 20px;
    height: 20px;
}

.business-summary__confidence strong,
.business-summary__confidence small {
    display: block;
}

.business-summary__confidence strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.business-summary__confidence small {
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.45;
}

.provider-badges {
    display: grid;
    gap: 8px;
}

.provider-badges__item {
    display: grid;
    min-height: 48px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--onboarding-border);
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.provider-badges__item > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-badges__item > em {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 7px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.provider-badges__item:not([data-provider-status="connected"], [data-provider-status="details_provided"], [data-provider-status="manual_details_provided"]) > em {
    background: var(--ui-color-warning-soft);
    color: var(--onboarding-warning);
}

.provider-badges__item > em svg {
    width: 11px;
    height: 11px;
}

.provider-badges__logo {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 7px;
    background: #f6f8fc;
    font-style: normal;
}

.provider-summary__header {
    justify-content: space-between;
}

.provider-summary__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

.provider-summary__title h3 {
    margin: 0 !important;
}

.provider-summary__title em {
    border-radius: 999px;
    padding: 3px 7px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.provider-summary__add {
    border: 1px solid #cbd9f2 !important;
    background: #fff !important;
}

.provider-badges__logo img,
.provider-badges__logo svg {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.provider-badges__logo svg {
    color: var(--onboarding-muted-soft);
}

.descriptor-summary__header {
    align-items: flex-start !important;
}

.descriptor-summary__header > div:first-child {
    min-width: 0;
    margin-right: auto;
}

.descriptor-summary__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.descriptor-summary__title > span {
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-weight: 700;
}

.descriptor-summary__header p {
    margin: 5px 0 0;
    font-size: 12px;
}

.descriptor-summary__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.descriptor-summary__actions button:first-child {
    border: 1px solid #cbd9f2;
    background: #f7faff;
}

.descriptor-summary__actions button:last-child {
    background: transparent;
}

.descriptor-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.descriptor-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 72px;
    grid-template-columns: 24px minmax(0, 1fr) auto 28px;
    gap: 9px;
    align-items: center;
    border: 1px solid var(--onboarding-border);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
    transition: background-color .14s ease;
}

.descriptor-card:hover,
.descriptor-card:focus-visible {
    background: #f3f4f6;
}

.descriptor-card:focus-visible {
    outline: 2px solid #8492a6;
    outline-offset: 2px;
}

.descriptor-card__status-icon {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--onboarding-success);
    border-radius: 50%;
    color: var(--onboarding-success);
}

.descriptor-card__status-icon svg {
    width: 12px;
    height: 12px;
}

.descriptor-card__copy {
    min-width: 0;
}

.descriptor-card__copy strong,
.descriptor-card__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.descriptor-card__copy strong {
    font-size: 13px;
    font-weight: 650;
}

.descriptor-card__copy small {
    margin-top: 3px;
    color: var(--onboarding-muted);
    font-size: 12px;
}

.descriptor-card > em {
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.descriptor-card__menu {
    position: relative;
}

.descriptor-card__menu summary {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 6px;
    color: #345174;
    cursor: pointer;
    list-style: none;
}

.descriptor-card__menu summary::-webkit-details-marker {
    display: none;
}

.descriptor-card__menu summary:hover {
    background: #f2f6fc;
}

.descriptor-card__menu summary svg {
    width: 18px;
    height: 18px;
}

.descriptor-card__menu[open] {
    z-index: 4;
}

.descriptor-card__menu > div {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    width: 205px;
    border: 1px solid var(--onboarding-border);
    border-radius: 9px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 50, 78, .14);
}

.descriptor-card__menu button {
    display: block;
    border: 0;
    border-radius: 6px;
    padding: 9px 10px;
    background: transparent;
    box-shadow: none;
    color: var(--onboarding-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
}

.descriptor-card__menu button:hover {
    background: #f4f7fc;
}

.descriptor-card__menu .descriptor-card__remove {
    color: var(--onboarding-danger);
}

.descriptor-card__menu button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.descriptor-card__menu button span,
.descriptor-card__menu button small {
    display: block;
}

.descriptor-card__menu button small {
    margin-top: 2px;
    color: var(--onboarding-muted);
    font-size: 12px;
    font-weight: 500;
}

.descriptor-card__menu-separator {
    display: block;
    height: 1px;
    margin: 5px 7px;
    background: var(--onboarding-border-soft);
}

.descriptor-cards__empty {
    grid-column: 1 / -1;
    color: var(--onboarding-danger);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.descriptor-summary__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px !important;
    border-top: 1px solid var(--onboarding-border-soft);
    border-radius: 0;
    padding: 10px 0 0;
    background: transparent;
    color: var(--onboarding-muted) !important;
    font-size: 12px !important;
}

.descriptor-summary__note svg {
    width: 16px;
    height: 16px;
    color: var(--onboarding-primary);
}

.descriptor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.descriptor-chips > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    border: 1px solid color-mix(in srgb, var(--marketplace-accent) 42%, #dce5f1);
    border-radius: 7px;
    padding: 5px 8px;
    background: color-mix(in srgb, var(--marketplace-accent) 5%, white);
    color: color-mix(in srgb, var(--marketplace-accent) 82%, #19334f);
    font-size: 12px;
    font-weight: 700;
}

.descriptor-chips > span svg {
    width: 11px;
    height: 11px;
}

.descriptor-chips > em {
    color: var(--onboarding-danger);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.descriptor-chips button {
    border: 1px dashed #b9c9df;
    background: #fff;
}

.profile-editor {
    margin-top: 18px;
    border-top: 1px solid var(--onboarding-border-soft);
    padding-top: 18px;
}

.installation-fields,
.installation-identifier__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.installation-field {
    display: grid;
    gap: 6px;
    color: var(--onboarding-text);
    font-size: 12px;
    font-weight: 700;
}

.installation-field--wide {
    grid-column: 1 / -1;
}

.installation-field span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.installation-field em {
    color: var(--onboarding-muted-soft);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
}

.installation-field input,
.installation-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cad6e6;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
    color: var(--onboarding-text);
    font-size: 12px;
    font-weight: 400;
}

.installation-field input:focus,
.installation-field select:focus {
    border-color: var(--onboarding-primary);
    outline: 3px solid rgba(33, 103, 237, .12);
}

.installation-identifiers {
    display: grid;
    gap: 11px;
}

.installation-identifier {
    position: relative;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--onboarding-border);
    border-radius: 10px;
    padding: 18px;
}

.installation-identifier legend {
    padding: 0 7px;
    font-size: 12px;
    font-weight: 750;
}

.installation-identifier__advanced {
    margin-top: 12px;
    border-top: 1px solid var(--onboarding-border-soft);
    padding-top: 11px;
}

.installation-identifier__fields {
    margin-top: 13px;
}

.installation-add-identifier {
    margin-top: 10px;
    border: 1px dashed #b9c9df;
    border-radius: 7px;
    padding: 7px 10px;
    background: #fff;
    box-shadow: none;
    color: var(--onboarding-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

/* Descriptor forms stay out of the review layout until the owner asks to change a specific value. */
.descriptor-dialog .installation-identifiers {
    gap: 28px;
}

.descriptor-dialog .installation-identifier {
    border: 0;
    border-bottom: 1px solid var(--onboarding-border-soft);
    border-radius: 0;
    padding: 0 0 28px;
}

.descriptor-dialog .installation-identifier:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Scoped editing hides sibling rows, so the visible row must not inherit their inter-row divider. */
.descriptor-dialog[data-descriptor-scope="single"] .installation-identifier {
    border-bottom: 0;
    padding-bottom: 0;
}

.descriptor-dialog .installation-identifier legend {
    margin-bottom: 18px;
    padding: 0;
    color: var(--onboarding-muted);
    font-size: 13px;
    font-weight: 700;
}

.descriptor-dialog[data-descriptor-scope="single"] .installation-identifier legend,
.descriptor-dialog[data-descriptor-scope="new"] .installation-identifier:not(:last-child) {
    display: none;
}

.descriptor-dialog .installation-field--descriptor {
    position: relative;
    display: block;
}

.descriptor-dialog .descriptor-dialog__floating-label {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 16px;
    left: 16px;
    display: block;
    color: #4b5565;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.descriptor-dialog .installation-field--descriptor input {
    min-height: 86px;
    border-color: #9fb3ce;
    border-radius: 10px;
    padding: 31px 16px 12px;
    font-size: 15px;
    line-height: 1.35;
}

.descriptor-dialog .installation-field--descriptor input:focus {
    border-color: var(--onboarding-primary);
    outline: 2px solid rgba(33, 103, 237, .13);
}

.descriptor-dialog__context-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
}

.descriptor-dialog__context-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    gap: 8px;
    border: 0;
    padding: 5px 2px;
    background: transparent;
    box-shadow: none;
    color: #4b5565;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.descriptor-dialog__context-actions button svg {
    width: 16px;
    height: 16px;
}

.descriptor-dialog__context-actions [data-descriptor-advanced-toggle] svg {
    transition: transform .16s ease;
}

.descriptor-dialog__context-actions [data-descriptor-advanced-toggle][aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

.descriptor-dialog .installation-identifier__advanced {
    margin-top: 12px;
    border-top: 1px solid var(--onboarding-border-soft);
    padding-top: 22px;
}

.descriptor-dialog__advanced-layout {
    display: grid;
    min-width: 0;
}

.descriptor-dialog .installation-identifier__fields {
    gap: 16px 24px;
    margin-top: 0;
}

.descriptor-dialog[data-help-visible="true"] .descriptor-dialog__advanced-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    gap: 24px;
    align-items: stretch;
}

.descriptor-dialog[data-help-visible="true"] .installation-identifier__fields {
    grid-template-columns: 1fr;
    padding: 18px 0 24px;
}

.descriptor-dialog[data-help-visible="true"] .installation-identifier__advanced {
    padding-top: 0;
}

.descriptor-dialog[data-help-visible="true"] .descriptor-dialog__body {
    padding-bottom: 0;
}

.descriptor-dialog .installation-field {
    gap: 8px;
    font-size: 13px;
}

.descriptor-dialog .installation-field em {
    border-radius: 999px;
    padding: 3px 10px;
    background: #f1f3f6;
    color: #6d7b91;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.descriptor-dialog .installation-field:not(.installation-field--descriptor) input,
.descriptor-dialog .installation-field select {
    min-height: 48px;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
}

.descriptor-dialog .installation-add-identifier {
    min-height: 38px;
    margin-top: 18px;
    padding: 8px 14px;
    font-size: 12px;
}

.descriptor-dialog__advanced-help {
    align-self: stretch;
    border: 0;
    border-radius: 0;
    padding: 18px 16px 24px;
    background: #f3f4f6;
}

.descriptor-dialog__advanced-help h4 {
    margin: 0 0 14px;
    color: var(--onboarding-text);
    font-size: 14px;
}

.descriptor-dialog__advanced-help ul {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.descriptor-dialog__advanced-help li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.descriptor-dialog__advanced-help li > svg {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    padding: 8px;
    background: #e5e7eb;
    color: #4b5565;
}

.descriptor-dialog__advanced-help strong,
.descriptor-dialog__advanced-help small {
    display: block;
}

.descriptor-dialog__help-example {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 6px;
    color: #4b5565;
    font-size: 12px;
}

.descriptor-dialog__help-example b {
    font-size: 12px;
}

.descriptor-dialog__help-example code {
    font-family: inherit;
}

.descriptor-dialog__advanced-help strong {
    margin-bottom: 3px;
    font-size: 12px;
}

.descriptor-dialog__advanced-help small {
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Business editing reuses the descriptor modal shell while retaining a narrower, profile-specific form body. */
.profile-dialog {
    width: min(720px, calc(100% - 32px));
}

.profile-dialog .review-profile-editor {
    padding: 24px 28px 28px;
}

.profile-dialog .installation-fields {
    margin: 0;
}

.profile-dialog .descriptor-dialog__actions {
    margin-left: auto;
}

.verification-summary > .installation-actions {
    border-top: 1px solid var(--onboarding-border-soft);
    padding-top: 18px;
}

.verify-panel > [data-verification-actions] {
    margin-top: var(--ui-space-4);
}

/* Protected */
.protected-panel {
    grid-template-columns: minmax(330px, .68fr) minmax(0, 1.32fr);
    overflow: hidden;
}

.protected-summary {
    min-width: 0;
    border-right: 1px solid var(--onboarding-border);
    padding: 32px 28px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}

.protected-summary__heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: center;
}

.protected-summary__heading h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

.protected-summary__heading p {
    margin: 0;
}

.protected-summary__verified {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 5px;
    background: var(--onboarding-success);
    color: #fff;
}

.protection-readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 28px;
    border: 1px solid var(--onboarding-border);
    border-radius: 11px;
    padding: 6px 18px;
    background: #fff;
}

.protection-readiness div {
    min-width: 0;
    border-bottom: 1px solid var(--onboarding-border-soft);
    padding: 12px 0;
}

.protection-readiness div:last-child,
.protection-readiness div:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
}

.protection-readiness dt,
.protection-readiness dd {
    display: block;
}

.protection-readiness dt {
    margin-bottom: 5px;
}

.protection-readiness dd {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.protected-summary__descriptors {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.protected-summary__descriptors span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #b7d9ad;
    border-radius: 7px;
    padding: 5px 8px;
    background: #f8fcf6;
    color: #2b7523;
    font-size: 12px;
    font-weight: 700;
}

.protected-summary__descriptors svg {
    width: 13px;
    height: 13px;
}

.protected-summary__notice {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    margin-top: 22px;
    border-radius: 10px;
    padding: 15px;
    background: #f3f7ff;
}

.protected-summary__notice > svg {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    padding: 8px;
    background: #e8f0ff;
    color: var(--onboarding-primary);
}

.protected-summary__notice strong,
.protected-summary__notice small {
    display: block;
}

.protected-summary__notice strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.protected-summary__notice small {
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.45;
}

.coverage-selection {
    min-width: 0;
    padding: 32px 30px 26px;
    background: #fff;
}

.coverage-selection__heading {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.coverage-help-link,
.coverage-plan__coverage button,
.coverage-comparison-callout button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    padding: 6px 2px;
    background: transparent;
    box-shadow: none;
    color: var(--onboarding-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.coverage-help-link svg,
.coverage-plan__coverage button svg,
.coverage-comparison-callout button svg,
.coverage-intro-callout button svg {
    width: 17px;
    height: 17px;
}

.coverage-intro-callout {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    margin-top: 24px;
    border: 1px solid #dce7f7;
    border-radius: 10px;
    padding: 15px 18px;
    background: #f6f9ff;
}

.coverage-intro-callout > svg {
    width: 25px;
    height: 25px;
    color: var(--onboarding-primary);
}

.coverage-intro-callout p {
    margin: 0;
    color: #334864;
    font-size: 13px;
}

.coverage-intro-callout button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    padding: 5px 0;
    background: transparent;
    color: var(--onboarding-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.coverage-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 22px;
}

.coverage-plans {
    display: grid;
    gap: 12px;
    margin: 0;
}

.coverage-plan {
    display: grid;
    min-height: 126px;
    grid-template-columns: minmax(0, 1fr) 160px;
    border: 1px solid var(--onboarding-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.coverage-plan:has(input:checked) {
    border-color: var(--marketplace-accent);
    background: color-mix(in srgb, var(--marketplace-accent) 4%, white);
}

.coverage-optional {
    display: grid;
    gap: 12px;
}

.coverage-optional__heading h3 {
    margin: 0;
    font-size: 15px;
}

.coverage-optional__heading p {
    margin: 4px 0 0;
    color: var(--onboarding-muted);
    font-size: 12px;
}

.coverage-plan.is-unavailable {
    opacity: .58;
}

.coverage-plan__choice {
    display: grid;
    min-width: 0;
    grid-template-columns: 22px 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
}

.coverage-plan__choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--marketplace-accent);
}

.coverage-plan__brand {
    display: grid;
    width: 74px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--onboarding-border-soft);
    border-radius: 11px;
    padding: 8px;
    background: #fff;
}

.coverage-plan__brand > img,
.coverage-dialog__brand > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.coverage-plan__brand--ethoca,
.coverage-dialog__brand--ethoca {
    background: #142c3b;
}

.coverage-plan__brand--both {
    height: 72px;
    padding: 5px 7px;
}

.coverage-brand-stack {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: minmax(0, 1fr) 1px minmax(0, 1fr);
    place-items: center;
}

.coverage-brand-stack img {
    display: block;
    width: 100%;
    max-height: 25px;
    object-fit: contain;
}

.coverage-brand-stack > img:first-child {
    border-radius: 3px;
    padding: 3px;
    background: #142c3b;
}

.coverage-brand-stack > span,
.coverage-brand-verifi {
    display: grid;
    place-items: center;
}

.coverage-brand-verifi img {
    display: block;
    width: 100%;
    max-height: 31px;
    object-fit: contain;
}

.coverage-brand-stack > span small,
.coverage-brand-verifi small {
    margin-top: 0;
    color: #233f8f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1;
}

.coverage-brand-stack i {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--onboarding-border);
}

.coverage-plan__copy,
.coverage-plan__copy small {
    display: block;
}

.coverage-plan__title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.coverage-plan__title strong {
    font-size: 15px;
}

.coverage-plan__title strong b {
    color: var(--onboarding-success);
    font-weight: 750;
}

.coverage-plan__title em {
    border-radius: 999px;
    padding: 3px 7px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.coverage-plan__copy > small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.45;
}

.coverage-plan__focus {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #52647d;
    font-size: 12px;
    font-weight: 650;
}

.coverage-plan__coverage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: center;
    border-left: 1px solid var(--onboarding-border-soft);
    padding: 16px 18px;
}

.coverage-plan__coverage > span:first-child {
    color: var(--onboarding-muted);
    font-size: 12px;
}

.coverage-plan__networks {
    display: flex;
    min-height: 18px;
    align-items: center;
    gap: 8px;
}

.coverage-plan__networks img {
    width: auto;
    max-width: 48px;
    height: 18px;
    object-fit: contain;
}

.coverage-plan__coverage > strong {
    font-size: 13px;
    line-height: 1.35;
}

.coverage-plan__coverage button {
    justify-self: start;
    margin: 0;
    padding: 2px 0;
}

.coverage-comparison-callout {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    border: 1px solid #dce7f7;
    border-radius: 9px;
    padding: 14px 16px;
    background: #f6f9ff;
    color: #31578f;
}

.coverage-comparison-callout > svg {
    width: 22px;
    height: 22px;
    color: var(--onboarding-primary);
}

.coverage-comparison-callout strong,
.coverage-comparison-callout small {
    display: block;
}

.coverage-comparison-callout strong {
    margin-bottom: 2px;
    font-size: 12px;
}

.coverage-comparison-callout small {
    color: #50698d;
    font-size: 12px;
}

.installation-result {
    grid-column: 1 / -1;
    margin: 0 34px;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 12px;
}

.installation-result.is-error { background: #fff1f0; color: var(--onboarding-danger); }
.installation-result.is-success { background: #ecfdf3; color: var(--onboarding-success); }

.protected-actions {
    grid-column: 1 / -1;
    border-top: 1px solid var(--onboarding-border);
    padding: 16px 34px;
}

.installation-button--activate {
    min-width: 190px;
}

/* One modal surface serves overview, provider detail, and comparison entry points. */
.coverage-dialog {
    width: min(860px, calc(100% - 32px));
    max-height: min(84vh, 760px);
    margin: auto;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    padding: 0;
    background: transparent;
    color: var(--onboarding-text);
}

/* Provider explanations are short, so a narrower surface keeps each Learn more dialog easy to scan. */
.coverage-dialog[data-active-panel="ethoca"],
.coverage-dialog[data-active-panel="billing"],
.coverage-dialog[data-active-panel="verifi"],
.coverage-dialog[data-active-panel="both"] {
    width: min(640px, calc(100% - 32px));
}

.coverage-dialog[data-active-panel="compare"] {
    width: min(1180px, calc(100% - 32px));
    max-height: min(92vh, 1040px);
}

.coverage-dialog[data-active-panel="compare"] .coverage-dialog__surface {
    max-height: min(92vh, 1040px);
}

.coverage-dialog::backdrop {
    background: rgba(20, 33, 55, .52);
    backdrop-filter: blur(3px);
}

.coverage-dialog__surface {
    display: grid;
    max-height: min(84vh, 760px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--onboarding-border);
    border-radius: 16px;
    background: #fff;
}

.coverage-dialog__surface > header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--onboarding-border-soft);
    padding: 20px 24px;
}

.coverage-dialog__heading-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.coverage-dialog__heading-icon svg {
    width: 25px;
    height: 25px;
}

.coverage-dialog__surface > header strong,
.coverage-dialog__surface > header small {
    display: block;
}

.coverage-dialog__surface > header strong {
    margin-bottom: 3px;
    font-size: 20px;
}

.coverage-dialog__surface > header small {
    color: var(--onboarding-muted);
    font-size: 13px;
}

.coverage-dialog__surface > header button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: #f3f5f8;
    box-shadow: none;
    color: var(--onboarding-text);
    cursor: pointer;
}

.coverage-dialog__surface > header button svg {
    width: 21px;
    height: 21px;
}

.coverage-dialog__body {
    overflow: auto;
    padding: 24px;
}

.coverage-dialog__intro {
    margin: 0 0 19px !important;
    color: var(--onboarding-muted);
    font-size: 13px !important;
    line-height: 1.5;
}

.coverage-dialog__network-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.coverage-dialog__network-grid article {
    border: 1px solid var(--onboarding-border);
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.coverage-dialog__network-grid article.is-recommended {
    border-color: #a8d19b;
    background: #f7fbf5;
}

.coverage-dialog__brand {
    display: grid;
    width: 52px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--onboarding-border-soft);
    padding: 5px;
    background: #fff;
}

.coverage-dialog__brand--both {
    height: 52px;
}

.coverage-dialog__network-grid h3 {
    margin: 12px 0 6px;
    font-size: 14px;
}

.coverage-dialog__network-grid p,
.coverage-dialog__detail-heading p {
    margin: 0;
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.5;
}

.coverage-dialog__notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 18px 0 0 !important;
    border-radius: 8px;
    padding: 11px;
    background: #f3f4f6;
    color: #536174 !important;
    font-size: 12px !important;
    line-height: 1.45;
}

.coverage-dialog__notice svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.coverage-dialog__detail-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 21px;
}

/* Preserve the complete Ethoca lockup so its Mastercard ownership mark and wordmark remain equally legible. */
.coverage-dialog__detail-heading .coverage-dialog__brand--ethoca-lockup {
    width: 136px;
    height: 50px;
    flex: 0 0 136px;
    padding: 7px 9px;
    background: #142c3b;
}

.coverage-dialog__detail-heading .coverage-dialog__brand--ethoca-lockup > img {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
}

.coverage-dialog__detail-heading h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.coverage-dialog__feature-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.coverage-dialog__feature-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    border-bottom: 1px solid var(--onboarding-border-soft);
    padding: 0 0 12px;
}

.coverage-dialog__feature-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.coverage-dialog__feature-list svg {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    padding: 6px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.coverage-dialog__feature-list strong,
.coverage-dialog__feature-list small {
    display: block;
}

.coverage-dialog__feature-list strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.coverage-dialog__feature-list small {
    color: var(--onboarding-muted);
    font-size: 12px;
    line-height: 1.45;
}

.coverage-comparison-matrix__intro {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0 0 24px !important;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 18px 20px;
    background: #f7f9fd;
    color: #385270 !important;
    font-size: 13px !important;
    line-height: 1.55;
}

.coverage-comparison-matrix__intro svg {
    width: 27px;
    height: 27px;
    color: var(--onboarding-primary);
}

.coverage-comparison-matrix {
    overflow-x: auto;
    border: 1px solid var(--onboarding-border);
    border-radius: 10px;
    background: #fff;
}

.coverage-comparison-matrix__row {
    display: grid;
    min-width: 1050px;
    min-height: 116px;
    grid-template-columns: 170px 225px 165px 140px 165px minmax(150px, 1fr);
    align-items: stretch;
    border-bottom: 1px solid var(--onboarding-border-soft);
}

.coverage-comparison-matrix__row:last-child {
    border-bottom: 0;
}

.coverage-comparison-matrix__row > * {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--onboarding-border-soft);
    padding: 15px;
    color: #273e60;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.coverage-comparison-matrix__row > *:first-child {
    border-left: 0;
}

.coverage-comparison-matrix__row--header {
    min-height: 75px;
    background: #fff;
}

.coverage-comparison-matrix__row--header > * {
    color: var(--onboarding-text);
    font-size: 13px;
}

.coverage-comparison-matrix__row.is-recommended {
    position: relative;
    border: 1px solid #87bc7b;
    border-radius: 0;
    background: #f8fcf6;
}

.coverage-comparison-matrix__provider {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.coverage-comparison-matrix__provider-logo {
    display: grid;
    width: 116px;
    min-height: 54px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--onboarding-border);
    border-radius: 8px;
    padding: 6px;
    background: #fff;
}

.coverage-comparison-matrix__provider-logo--both {
    height: 78px;
}

.coverage-comparison-matrix__provider-logo--ethoca {
    background: #142c3b;
}

.coverage-comparison-matrix__provider-logo > img,
.coverage-comparison-matrix__provider-logo .coverage-brand-stack,
.coverage-comparison-matrix__provider-logo .coverage-brand-verifi {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.coverage-comparison-matrix__provider-caption > em,
.coverage-comparison-matrix__row > span:last-child em {
    border-radius: 999px;
    padding: 3px 9px;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.coverage-comparison-matrix__provider-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.coverage-comparison-matrix__row > span:last-child {
    flex-direction: column;
    gap: 7px;
}

.coverage-comparison-matrix__levels {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    text-align: left;
}

.coverage-comparison-matrix__level,
.coverage-comparison-matrix__included {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.coverage-comparison-matrix__level i,
.coverage-comparison-matrix__included i,
.coverage-comparison-matrix__legend i {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.coverage-comparison-matrix__level--most i,
.coverage-comparison-matrix__included i,
.coverage-comparison-matrix__legend .is-most {
    background: var(--onboarding-success);
    color: #fff;
}

.coverage-comparison-matrix__level--some i,
.coverage-comparison-matrix__legend .is-some {
    border: 2px solid #f59e0b;
    background: linear-gradient(90deg, #f59e0b 50%, #fff 50%);
}

.coverage-comparison-matrix__provider-caption > strong {
    font-size: 13px;
}

.coverage-comparison-matrix__legend {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 18px 0 0;
    padding: 0 16px;
    color: #53657e;
    font-size: 12px;
    list-style: none;
}

.coverage-comparison-matrix__legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coverage-comparison-matrix__legend i {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.coverage-comparison-matrix__legend .is-limited {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
    margin: 2px;
    background: #a5b1c1;
}

.coverage-dialog__surface > footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--onboarding-border-soft);
    padding: 15px 24px;
}

.coverage-dialog__surface > footer button {
    min-width: 104px;
    min-height: 40px;
    border: 1px solid #cad6e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--onboarding-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

/* Success */
.success-panel {
    min-height: 560px;
    place-items: center;
    align-content: center;
    padding: 50px;
    text-align: center;
}

.success-panel__icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.success-panel__icon svg {
    width: 42px;
    height: 42px;
}

.success-panel > p {
    margin-bottom: 6px;
    color: var(--onboarding-success);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.success-panel > h2 {
    margin-bottom: 8px;
}

.success-panel > span:not(.success-panel__icon) {
    color: var(--onboarding-muted);
    font-size: 13px;
}

.success-status {
    width: min(100%, 720px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 31px 0;
    overflow: hidden;
    border: 1px solid var(--onboarding-border);
    border-radius: 11px;
}

.success-status div {
    padding: 15px 11px;
    border-right: 1px solid var(--onboarding-border-soft);
    background: #fff;
}

.success-status div:last-child {
    border-right: 0;
}

.success-status dd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--onboarding-success);
    font-weight: 700;
}

.success-status dd.success-status__pending {
    color: #8a641e;
}

.success-status dd svg {
    width: 13px;
    height: 13px;
}

@media (max-width: 1100px) {
    .marketplace-installation {
        width: min(100% - 30px, 1220px);
    }

    .connect-panel {
        grid-template-columns: minmax(0, 52%) minmax(350px, 48%);
    }

    .connect-panel__copy {
        padding-left: 36px;
    }

    .connect-visual { --connect-node-offset: 123.74px; }
    .connect-visual__ring--outer { width: 350px; height: 350px; --orbit-radius: 175px; }
    .connect-visual__ring--inner { width: 250px; height: 250px; --orbit-radius: 125px; }

    .coverage-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .coverage-plan {
        grid-template-columns: minmax(0, 1fr) 165px;
    }

    .coverage-plan__choice {
        grid-template-columns: 20px 76px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .coverage-plan__brand {
        width: 72px;
    }
}

@media (max-width: 880px) {
    .installation-progress {
        overflow-x: auto;
    }

    .installation-progress__phase {
        min-width: 210px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .connect-panel,
    .protected-panel {
        grid-template-columns: 1fr;
    }

    .protected-summary {
        border-right: 0;
    }

    .connect-visual {
        min-height: 420px;
    }

    .coverage-selection {
        border-top: 1px solid var(--onboarding-border);
        border-left: 0;
    }

    .coverage-workspace {
        grid-template-columns: 1fr;
    }

    .verification-layout,
    .verification-summary__grid {
        grid-template-columns: 1fr;
    }

    .success-status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .success-status div {
        border-bottom: 1px solid var(--onboarding-border-soft);
    }
}

@media (max-width: 620px) {
    .marketplace-installation {
        width: min(100% - 20px, 1220px);
        padding-top: 15px;
    }

    .installation-header {
        flex-direction: column;
        gap: 14px;
    }

    .installation-header__marketplace h1 {
        font-size: 28px;
    }

    .installation-header__marketplace span {
        font-size: 12px;
    }

    .installation-progress__copy small {
        display: none;
    }

    .installation-progress__phase {
        min-width: 160px;
    }

    .connect-panel__copy,
    .verify-panel,
    .protected-summary,
    .coverage-selection {
        padding: 25px 20px;
    }

    .connect-panel {
        min-height: 0;
    }

    .connect-visual {
        min-height: 440px;
    }

    .connect-visual { --connect-node-offset: 106.06px; }
    .connect-visual__ring--outer { width: 300px; height: 300px; --orbit-radius: 150px; }
    .connect-visual__ring--inner { width: 215px; height: 215px; --orbit-radius: 107.5px; }
    .connect-visual__logo { width: 112px; height: 112px; }
    .connect-visual__logo > img,
    .connect-visual__logo > .marketplace-logo-fallback { width: 72px; height: 72px; }
    .connect-visual__node { width: 100px; }

    .verification-heading {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .verification-steps-card__header {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .verification-progress {
        grid-column: 1 / -1;
        margin-top: 3px;
    }

    .onboarding-heading-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .onboarding-heading-icon svg {
        width: 25px;
        height: 25px;
    }

    .verification-checklist li {
        grid-template-columns: 37px minmax(0, 1fr);
    }

    .verification-checklist__status {
        grid-column: 2;
        min-width: 0;
        margin-top: -12px;
        padding-bottom: 8px;
    }

    .business-summary dl,
    .installation-fields,
    .installation-identifier__fields,
    .protection-readiness {
        grid-template-columns: 1fr;
    }

    .business-summary__header {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .business-summary__header > button {
        grid-column: 2;
        justify-self: start;
    }

    .business-summary__heading-icon {
        width: 42px;
        height: 42px;
    }

    .business-summary__content {
        grid-template-columns: 1fr;
    }

    .business-summary__confidence {
        border-top: 1px solid var(--onboarding-border-soft);
        border-left: 0;
        padding-top: 16px;
        padding-left: 0;
    }

    .coverage-selection__heading {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .coverage-help-link {
        grid-column: 2;
        justify-self: start;
    }

    .coverage-intro-callout {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .coverage-intro-callout button {
        grid-column: 2;
        justify-self: start;
    }

    .coverage-plan {
        grid-template-columns: 1fr;
    }

    .coverage-plan__choice {
        grid-template-columns: 20px 64px minmax(0, 1fr);
        gap: 9px;
        padding: 13px;
    }

    .coverage-plan__brand {
        width: 62px;
        height: 54px;
        border-radius: 11px;
    }

    .coverage-plan__coverage {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
        border-top: 1px solid var(--onboarding-border-soft);
        border-left: 0;
    }

    .coverage-plan__coverage button {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-self: end;
        margin: 0;
    }

    .coverage-comparison-callout {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .coverage-comparison-callout button {
        grid-column: 2;
        justify-self: start;
    }

    .coverage-dialog {
        width: min(100% - 20px, 780px);
    }

    .coverage-dialog__surface > header {
        grid-template-columns: 42px minmax(0, 1fr) 38px;
        gap: 10px;
        padding: 16px;
    }

    .coverage-dialog__heading-icon {
        width: 42px;
        height: 42px;
    }

    .coverage-dialog__surface > header strong {
        font-size: 17px;
    }

    .coverage-dialog__body {
        padding: 18px;
    }

    .coverage-dialog__network-grid {
        grid-template-columns: 1fr;
    }

    .business-summary dl div {
        grid-template-columns: 20px 82px minmax(0, 1fr);
    }

    .descriptor-summary__header,
    .descriptor-summary__actions {
        align-items: stretch !important;
        flex-direction: column;
    }

    .descriptor-summary__actions button {
        min-height: 36px;
    }

    .descriptor-cards {
        grid-template-columns: 1fr;
    }

    .descriptor-dialog {
        width: min(100% - 20px, 800px);
    }

    .descriptor-dialog__surface > header,
    .descriptor-dialog__surface > footer {
        padding: 18px;
    }

    .descriptor-dialog__heading {
        gap: 12px;
    }

    .descriptor-dialog__heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .descriptor-dialog__heading-icon svg {
        width: 25px;
        height: 25px;
    }

    .descriptor-dialog__surface > header strong {
        font-size: 19px;
    }

    .descriptor-dialog__surface > header small {
        font-size: 13px;
    }

    .descriptor-dialog__body {
        padding: 22px 18px;
    }

    .descriptor-dialog .installation-identifier__fields {
        grid-template-columns: 1fr;
    }

    .descriptor-dialog[data-help-visible="true"] .descriptor-dialog__advanced-layout {
        grid-template-columns: 1fr;
    }

    .descriptor-dialog__context-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .descriptor-dialog__context-actions [data-descriptor-advanced-toggle] {
        align-self: flex-end;
    }

    .descriptor-dialog__surface > footer {
        align-items: stretch;
        flex-direction: column;
    }

    .descriptor-dialog__remove {
        align-self: flex-start;
    }

    .descriptor-dialog__actions {
        width: 100%;
    }

    .descriptor-dialog__actions button,
    .descriptor-dialog__actions button:last-child {
        min-width: 0;
        flex: 1;
    }

    .installation-field--wide {
        grid-column: auto;
    }

    .installation-actions,
    .protected-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .installation-button,
    .installation-button--primary {
        width: 100%;
        min-width: 0;
    }

    .protected-actions {
        padding: 15px 20px;
    }

    .installation-result {
        margin: 0 20px;
    }

    .success-panel {
        min-height: 500px;
        padding: 35px 20px;
    }

    .success-status {
        grid-template-columns: 1fr;
    }

    .success-status div {
        border-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .verification-checklist li[data-status="active"] .verification-checklist__status i {
        animation: none;
    }

    .verification-steps-card__activity-icon svg {
        animation: none;
    }

    .connect-visual__ring,
    .connect-visual__orbit-dot {
        animation: none;
    }
}

/* These shared-class overrides intentionally follow the legacy rules they replace. */
.installation-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.installation-progress__phase {
    padding-right: 18px;
    padding-left: 18px;
}

.installation-progress__phase:not(:last-child)::after {
    right: -10%;
    width: 20%;
}

.protected-panel {
    grid-template-columns: minmax(0, 1fr);
}

.coverage-selection__actions {
    display: flex;
    position: relative;
    min-width: 285px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
}

.coverage-selection__actions .coverage-help-link {
    font-size: 13px;
}

.coverage-selection__secondary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
}

.coverage-selection__heading {
    grid-template-columns: 58px minmax(0, 1fr);
}

.coverage-recommendation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 20px;
}

.coverage-recommendation-row .coverage-recommendation {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
    border: 0;
}

.coverage-recommendation__copy > * {
    display: block;
}

.coverage-recommendation__copy > .coverage-recommendation__title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.coverage-recommendation__title .coverage-recommendation__networks {
    flex: 0 0 auto;
    gap: 0;
}

.coverage-selection {
    padding: 28px 26px 24px;
}

.descriptor-protection-menu {
    position: relative;
    border-bottom: 1px solid var(--onboarding-border-soft);
    padding-bottom: 7px;
    text-align: right;
}

.coverage-selection__actions .descriptor-protection-menu__toggle,
.coverage-selection__actions .descriptor-protection-menu__toggle:hover {
    justify-self: end;
    color: var(--onboarding-ink);
    cursor: help;
    font-size: 15px;
}

.descriptor-protection-menu__toggle svg {
    color: #4b5565;
}

.descriptor-protection-menu__dropdown {
    display: grid;
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    visibility: hidden;
    width: max-content;
    min-width: 235px;
    max-width: 340px;
    gap: 10px;
    border: 1px solid var(--onboarding-border);
    border-radius: 8px;
    padding: 13px;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.descriptor-protection-menu:hover .descriptor-protection-menu__dropdown,
.descriptor-protection-menu:focus-within .descriptor-protection-menu__dropdown,
.descriptor-protection-menu.is-open .descriptor-protection-menu__dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.descriptor-protection-menu__dropdown > strong {
    color: var(--onboarding-ink);
    font-size: 13px;
}

.descriptor-protection-menu__dropdown > div {
    display: grid;
    gap: 7px;
}

.descriptor-protection-menu__dropdown span {
    overflow: hidden;
    border-radius: 6px;
    padding: 7px 9px;
    background: #f4f6f8;
    color: var(--onboarding-copy);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coverage-intro-callout {
    grid-template-columns: 27px minmax(0, 1fr);
}

.coverage-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.coverage-plan {
    display: flex;
    min-height: 300px;
    flex-direction: column;
}

.coverage-plan__choice {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 12px 10px;
    padding: 17px;
}

.coverage-plan__brand {
    grid-column: 2;
    width: 88px;
    height: 54px;
}

.coverage-plan__brand--both {
    height: 66px;
}

.coverage-plan__copy {
    grid-column: 2;
}

.coverage-plan__copy > small {
    min-height: 52px;
}

.coverage-plan__focus {
    align-items: flex-start;
    flex-direction: column;
}

.coverage-plan__coverage {
    min-height: 88px;
    grid-template-columns: 1fr;
    margin-top: auto;
    border-top: 1px solid var(--onboarding-border-soft);
    border-left: 0;
    padding: 11px 17px;
}

@media (max-width: 1050px) {
    .protected-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .coverage-plan__choice {
        padding: 14px 12px;
    }

    .coverage-recommendation-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .coverage-recommendation-row .coverage-selection__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 880px) {
    .protected-panel {
        grid-template-columns: 1fr;
    }

    .coverage-plans {
        grid-template-columns: 1fr;
    }

    .coverage-plan {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .coverage-selection__actions {
        min-width: 0;
        justify-content: flex-start;
        gap: 7px;
    }

    .coverage-selection__actions .coverage-help-link {
        grid-column: auto;
    }

    .coverage-selection__secondary-actions {
        justify-content: flex-start;
    }

    .descriptor-protection-menu {
        text-align: left;
    }

    .descriptor-protection-menu__dropdown {
        right: auto;
        left: 0;
        max-width: min(340px, calc(100vw - 54px));
    }

    .coverage-recommendation__copy > .coverage-recommendation__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* The comparison matrix is intentionally denser than explanatory dialogs so all options remain scannable. */
.coverage-dialog[data-active-panel="compare"] {
    width: min(900px, calc(100% - 32px));
    max-height: min(82vh, 720px);
}

.coverage-dialog[data-active-panel="compare"] .coverage-dialog__surface {
    max-height: min(82vh, 720px);
}

.coverage-dialog[data-active-panel="compare"] .coverage-dialog__surface > header {
    grid-template-columns: 38px minmax(0, 1fr) 36px;
    gap: 10px;
    padding: 13px 16px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-dialog__heading-icon {
    width: 38px;
    height: 38px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-dialog__surface > header strong {
    font-size: 17px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-dialog__body {
    padding: 14px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__intro {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 10px !important;
    padding: 10px 12px;
    font-size: 12px !important;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__intro svg {
    width: 19px;
    height: 19px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__row {
    min-width: 800px;
    min-height: 76px;
    grid-template-columns: 120px 165px 115px 95px 120px minmax(130px, 1fr);
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__row--header {
    min-height: 48px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__row > * {
    padding: 7px;
    font-size: 12px;
    line-height: 1.35;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__provider {
    align-items: center;
    gap: 4px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__provider-logo {
    width: 78px;
    min-height: 36px;
    padding: 4px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__provider-logo--both {
    height: 68px;
    padding: 7px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__levels {
    gap: 6px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__level,
.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__included {
    gap: 6px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__level i,
.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__included i {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 12px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-comparison-matrix__legend {
    gap: 16px;
    margin-top: 9px;
    padding: 0 8px;
}

.coverage-dialog[data-active-panel="compare"] .coverage-dialog__surface > footer {
    padding: 9px 14px;
}

/* Final confirmation stays inside Protect so owners can review the exact records about to be created. */
.protection-finalize {
    display: grid;
    gap: 0;
}

.protection-finalize__heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(280px, auto);
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--onboarding-border-soft);
    padding: 22px 24px;
}

.protection-finalize__heading .onboarding-heading-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.protection-finalize__heading p,
.protection-finalize__heading h2,
.protection-finalize__heading small {
    display: block;
    margin: 0;
}

.protection-finalize__heading p {
    margin-bottom: 3px;
    color: var(--marketplace-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.protection-finalize__heading h2 {
    color: var(--onboarding-ink);
    font-size: 22px;
    line-height: 1.2;
}

.protection-finalize__heading small {
    margin-top: 3px;
    color: var(--onboarding-copy);
    font-size: 12px;
}

.protection-finalize__status {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    justify-self: end;
}

.protection-finalize__status > span:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.protection-finalize__status svg {
    width: 22px;
    height: 22px;
}

.protection-finalize__status strong,
.protection-finalize__status small {
    display: block;
}

.protection-finalize__status strong {
    color: var(--onboarding-ink);
    font-size: 12px;
}

.protection-finalize__status small {
    margin-top: 3px;
    color: var(--onboarding-copy);
    font-size: 12px;
}

.protection-finalize__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 24px;
}

.protection-finalize__card {
    min-width: 0;
    border: 1px solid var(--onboarding-border);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

.protection-finalize__card--business,
.protection-finalize__card--plan {
    grid-column: 1 / -1;
}

.protection-finalize__card > header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.protection-finalize__card-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 9px;
    background: var(--onboarding-success-soft);
    color: var(--marketplace-accent);
}

.protection-finalize__card-icon svg {
    width: 19px;
    height: 19px;
}

.protection-finalize__card > header h3 {
    margin: 0;
    color: var(--onboarding-ink);
    font-size: 14px;
}

.protection-finalize__card > header h3 em,
.protection-finalize__label em {
    color: var(--onboarding-success);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.protection-finalize__edit {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid var(--onboarding-border);
    border-radius: 7px;
    padding: 5px 10px;
    background: #fff;
    color: var(--onboarding-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.protection-finalize__edit svg {
    width: 14px;
    height: 14px;
}

.protection-finalize__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0;
}

.protection-finalize__details > div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.protection-finalize__details > div > svg {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: #63718a;
}

.protection-finalize__details div,
.protection-finalize__plan dl div {
    min-width: 0;
}

.protection-finalize__details dt,
.protection-finalize__details dd,
.protection-finalize__plan dt,
.protection-finalize__plan dd {
    margin: 0;
}

.protection-finalize__details dt,
.protection-finalize__plan dt,
.protection-finalize__label {
    color: #63718a;
    font-size: 12px;
    font-weight: 700;
}

.protection-finalize__details dd,
.protection-finalize__plan dd {
    overflow: hidden;
    margin-top: 3px;
    color: var(--onboarding-ink);
    font-size: 12px;
    text-overflow: ellipsis;
}

.protection-finalize__platform {
    display: flex;
    align-items: center;
    gap: 6px;
}

.protection-finalize__platform img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.protection-finalize__label {
    display: block;
    margin: 14px 0 7px;
}

.protection-finalize__card > header + .protection-finalize__label {
    margin-top: 0;
}

.protection-finalize__chips,
.protection-finalize__values {
    display: flex;
    min-height: 26px;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.protection-finalize__chips span,
.protection-finalize__values span {
    overflow: hidden;
    max-width: 100%;
    border: 1px solid color-mix(in srgb, var(--marketplace-accent) 20%, white);
    border-radius: 6px;
    padding: 5px 8px;
    background: color-mix(in srgb, var(--marketplace-accent) 5%, white);
    color: var(--marketplace-accent);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.protection-finalize__values span {
    border-color: var(--onboarding-border-soft);
    background: #f7f8fa;
    color: var(--onboarding-copy);
}

.protection-finalize__plan {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) minmax(245px, .58fr);
    gap: 16px;
    align-items: center;
}

.protection-finalize__plan-brand {
    display: grid;
    width: 160px;
    min-height: 54px;
    place-items: center;
}

.protection-finalize__plan-brand > img {
    display: block;
    width: auto;
    max-width: 120px;
    max-height: 36px;
    object-fit: contain;
}

.protection-finalize__plan-brand.coverage-plan__brand--ethoca {
    border-radius: 7px;
    padding: 8px;
    background: #142c3b;
}

.protection-finalize__plan-brand.coverage-plan__brand--both {
    height: auto;
}

.protection-finalize__network-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.protection-finalize__network-logos > span {
    display: grid;
    width: 70px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--onboarding-border);
    border-radius: 7px;
    padding: 6px;
    background: #fff;
}

/* Ethoca publishes a light wordmark, so its shared asset needs the official dark lockup field for contrast. */
.protection-finalize__network-logos > span:first-child {
    background: #142c3b;
}

.protection-finalize__network-logos img {
    display: block;
    width: 100%;
    max-height: 24px;
    object-fit: contain;
}

.protection-finalize__network-logos small {
    color: #233f8f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.protection-finalize__network-logos > i {
    color: var(--onboarding-copy);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.protection-finalize__plan > span:nth-child(2) > strong,
.protection-finalize__plan > span:nth-child(2) > small {
    display: block;
}

.protection-finalize__plan > span:nth-child(2) > strong {
    color: var(--onboarding-ink);
    font-size: 15px;
}

.protection-finalize__plan > span:nth-child(2) > strong b {
    color: var(--marketplace-accent);
    font-weight: 750;
}

.protection-finalize__plan-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 7px;
    background: color-mix(in srgb, var(--marketplace-accent) 8%, white);
    color: var(--marketplace-accent);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.protection-finalize__plan > span:nth-child(2) > small {
    margin-top: 6px;
    color: var(--onboarding-copy);
    font-size: 12px;
    line-height: 1.45;
}

.protection-finalize__plan dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    border-left: 1px solid var(--onboarding-border-soft);
    padding-left: 18px;
}

.protection-finalize__card--plan {
    border-color: color-mix(in srgb, var(--marketplace-accent) 25%, white);
    background: linear-gradient(90deg, color-mix(in srgb, var(--marketplace-accent) 2%, white), #fff);
}

.protection-finalize__notice,
.activation-progress {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 0 24px 16px;
    border: 1px solid #dce5f4;
    border-radius: 8px;
    padding: 11px 14px;
    background: #f7f9fc;
}

.protection-finalize__notice svg {
    width: 20px;
    height: 20px;
    color: #3b6edc;
}

.protection-finalize__notice strong,
.protection-finalize__notice small,
.activation-progress strong,
.activation-progress small {
    display: block;
}

.protection-finalize__notice strong,
.activation-progress strong {
    color: var(--onboarding-ink);
    font-size: 12px;
}

.protection-finalize__notice small,
.activation-progress small {
    margin-top: 2px;
    color: var(--onboarding-copy);
    font-size: 12px;
}

.activation-progress {
    border-color: color-mix(in srgb, var(--marketplace-accent) 20%, white);
    background: color-mix(in srgb, var(--marketplace-accent) 5%, white);
}

.activation-progress > i,
.activation-button__loading > i {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid color-mix(in srgb, var(--marketplace-accent) 22%, transparent);
    border-top-color: var(--marketplace-accent);
    border-radius: 50%;
    animation: protection-activation-spin .75s linear infinite;
}

.activation-button__loading {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.activation-button__loading[hidden] {
    display: none !important;
}

.activation-button__loading > i {
    width: 18px;
    height: 18px;
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
}

.installation-button--activate.is-activating > svg {
    display: none;
}

.protection-finalize .installation-result {
    margin: 0 24px 16px;
}

.protection-finalize__actions {
    margin: 0;
    padding: 14px 24px;
}

.protection-finalize__back > svg {
    transform: rotate(180deg);
}

@keyframes protection-activation-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .protection-finalize__heading {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .protection-finalize__status {
        grid-column: 1 / -1;
        justify-self: stretch;
        border-top: 1px solid var(--onboarding-border-soft);
        padding-top: 14px;
    }

    .protection-finalize__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .protection-finalize__plan {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .protection-finalize__plan dl {
        grid-column: 1 / -1;
        border-top: 1px solid var(--onboarding-border-soft);
        border-left: 0;
        padding-top: 13px;
        padding-left: 0;
    }
}

@media (max-width: 680px) {
    .protection-finalize {
        gap: 0;
        padding: 0;
    }

    .protection-finalize__heading {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 20px;
    }

    .protection-finalize__grid,
    .protection-finalize__details {
        grid-template-columns: minmax(0, 1fr);
    }

    .protection-finalize__card--business,
    .protection-finalize__card--plan {
        grid-column: auto;
    }

    .protection-finalize__plan {
        grid-template-columns: minmax(0, 1fr);
    }

    .protection-finalize__plan dl {
        grid-column: auto;
    }

    .protection-finalize__actions {
        margin: 0;
        padding: 14px 20px;
    }

    .protection-finalize__grid {
        padding: 14px 20px;
    }

    .protection-finalize__notice,
    .activation-progress,
    .protection-finalize .installation-result {
        margin-right: 20px;
        margin-left: 20px;
    }
}

/* Final review is intentionally a compact checklist so the activation decision remains the only primary action. */
.protection-finalize {
    --protection-finalize-content-width: 920px;
    padding: 34px 0 0;
}

.protection-finalize__hero {
    display: grid;
    justify-items: center;
    padding: 0 24px 24px;
    text-align: center;
}

.protection-finalize__hero-icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.protection-finalize__hero-icon svg {
    width: 40px;
    height: 40px;
}

.protection-finalize__hero p,
.protection-finalize__hero h2,
.protection-finalize__hero small {
    display: block;
    margin: 0;
}

.protection-finalize__hero p {
    margin-bottom: 7px;
    color: var(--marketplace-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.protection-finalize__hero h2 {
    color: var(--onboarding-ink);
    font-size: 28px;
    letter-spacing: -.035em;
}

.protection-finalize__hero small {
    margin-top: 7px;
    color: var(--onboarding-copy);
    font-size: 14px;
}

.protection-finalize__rows {
    width: min(100% - 48px, var(--protection-finalize-content-width));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--onboarding-border);
    border-radius: 12px;
}

.protection-finalize__row {
    display: grid;
    position: relative;
    min-height: 72px;
    grid-template-columns: 48px 190px minmax(0, 1fr) 76px;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--onboarding-border);
    padding: 9px 14px;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.protection-finalize__row:last-child {
    border-bottom: 0;
}

.protection-finalize__row:hover {
    background: #f5f6f8;
}

.protection-finalize__row--static {
    cursor: default;
}

.protection-finalize__row--static:hover {
    background: transparent;
}

.protection-finalize__row.is-expanded,
.protection-finalize__row.is-expanded:hover {
    border-top: 3px solid #d9dee6;
    background: #fff;
}

.protection-finalize__row:focus-visible {
    z-index: 1;
    outline: 2px solid #657182;
    outline-offset: -2px;
}

.protection-finalize__row-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--onboarding-success-soft);
    color: var(--onboarding-success);
}

.protection-finalize__row-icon svg {
    width: 22px;
    height: 22px;
}

.protection-finalize__row h3 {
    margin: 0;
    color: var(--onboarding-ink);
    font-size: 14px;
}

.protection-finalize__row-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 18px;
    color: var(--onboarding-copy);
    font-size: 13px;
}

.protection-finalize__row-summary > span {
    min-width: 0;
}

.protection-finalize__row-summary > i {
    color: #8090a8;
    font-style: normal;
}

.protection-finalize__row-summary--business > span {
    overflow: hidden;
    flex: 1 1 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.protection-finalize__row-summary--counts strong,
.protection-finalize__provider-count strong {
    font-weight: 500;
}

.protection-finalize__row-actions {
    display: flex;
    grid-column: 4;
    grid-row: 1;
    justify-content: flex-end;
    gap: 4px;
}

.protection-finalize__info,
.protection-finalize__edit {
    display: grid;
    width: 32px;
    height: 32px;
    min-height: 32px;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: transparent;
    color: #4b5565;
    cursor: pointer;
}

.protection-finalize__info svg,
.protection-finalize__edit svg {
    width: 18px;
    height: 18px;
}

.protection-finalize__info:hover,
.protection-finalize__info:focus-visible,
.protection-finalize__edit:hover,
.protection-finalize__edit:focus-visible {
    outline: 0;
    background: #e5e7eb;
    color: #252d39;
}

.protection-finalize__edit:disabled {
    color: #8b98aa;
    cursor: wait;
}

.protection-finalize__row-details {
    display: grid;
    grid-column: 2 / -1;
    gap: 14px;
    align-items: start;
    margin-top: 3px;
    border-top: 1px solid #dfe3e8;
    padding: 15px 0 8px;
    color: var(--onboarding-copy);
    cursor: default;
    font-size: 13px;
}

.protection-finalize__row-details[hidden] {
    display: none;
}

.protection-finalize__detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin: 0;
}

.protection-finalize__detail-grid div,
.protection-finalize__plan-details dl div {
    min-width: 0;
}

.protection-finalize__detail-grid dt,
.protection-finalize__plan-details dt,
.protection-finalize__row-summary--business > span > small,
.protection-finalize__plan .coverage-price-network {
    margin-bottom: 4px;
    color: #687386;
    font-size: 12px;
    font-weight: 700;
}

.protection-finalize__detail-grid dd,
.protection-finalize__plan-details dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--onboarding-ink);
}

.protection-finalize__identifier-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.protection-finalize__identifier-details > section,
.protection-finalize__row-details > span {
    display: grid;
    gap: 8px;
}

.protection-finalize__detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.protection-finalize__detail-chips > span {
    border: 1px solid #d8dee8;
    border-radius: 6px;
    padding: 5px 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
}

.protection-finalize__row-details p {
    margin: 0;
}

.protection-finalize__review .protection-finalize__row-details.protection-finalize__provider-details {
    grid-column: 2 / -1;
    gap: var(--ui-space-3, 12px);
    border-color: var(--ui-color-border-subtle);
    color: var(--ui-color-text-muted);
    line-height: 1.5;
}

.protection-finalize__provider-count {
    white-space: nowrap;
}

.protection-finalize__plan {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.protection-finalize__plan-summary-networks {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}

.protection-finalize__plan-summary-networks > span {
    display: grid;
    width: 62px;
    height: 34px;
    place-items: center;
    border: 1px solid #dce2eb;
    border-radius: 6px;
    padding: 4px 5px;
    background: #fff;
}

.protection-finalize__plan-summary-networks > .protection-finalize__plan-summary-network--ethoca {
    border-color: #142c3b;
    background: #142c3b;
}

.protection-finalize__plan-summary-networks img {
    max-width: 100%;
    max-height: 20px;
    object-fit: contain;
}

.protection-finalize__plan-summary-networks small {
    color: #20335f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
}

.protection-finalize__plan-summary-networks > i {
    color: #687386;
    font-size: 12px;
    font-style: normal;
}

.protection-finalize__plan > strong {
    color: var(--onboarding-ink);
    font-size: 13px;
    white-space: nowrap;
}

.protection-finalize__plan > span {
    overflow: hidden;
    color: var(--onboarding-copy);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.protection-finalize__plan-details > article {
    display: flex;
    align-items: center;
    gap: 20px;
}

.protection-finalize__plan-details dl {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.protection-finalize__plan-brand {
    width: auto;
    min-height: 42px;
}

.protection-finalize__network-logos {
    gap: 7px;
}

.protection-finalize__network-logos > span {
    width: 76px;
    height: 42px;
    padding: 5px;
}

.protection-finalize > .protection-finalize__notice {
    width: min(100% - 48px, var(--protection-finalize-content-width));
    margin: 30px auto 0;
    padding: 12px 16px;
    background: #f4f7fc;
}

.protection-finalize__notice svg {
    width: 22px;
    height: 22px;
}

/* The button is the progress indicator; a second progress card would compete with the single final action. */
.protection-finalize .activation-progress:not([hidden]) {
    display: none;
}

.protection-finalize .installation-result {
    width: min(100% - 48px, var(--protection-finalize-content-width));
    margin: 14px auto 0;
}

.protection-finalize__actions {
    width: min(100% - 48px, var(--protection-finalize-content-width));
    margin: 22px auto 30px;
    border: 0;
    padding: 0;
}

.protection-finalize__actions .installation-button {
    height: 58px;
    min-height: 58px;
}

.protection-finalize__actions .installation-button--activate {
    min-width: 344px;
    justify-content: space-between;
}

.activation-button__copy,
.activation-button__copy strong,
.activation-button__copy small,
.activation-button__loading strong,
.activation-button__loading small {
    display: block;
}

.activation-button__copy,
.activation-button__loading > span {
    text-align: left;
}

.activation-button__copy strong,
.activation-button__loading strong {
    font-size: 14px;
}

.activation-button__copy small,
.activation-button__loading small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 500;
}

.installation-button--activate:disabled.is-activating {
    opacity: .94;
    cursor: wait;
}

.installation-button--activate:disabled:not(.is-activating) {
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .protection-finalize__row {
        grid-template-columns: 44px 160px minmax(0, 1fr) 76px;
    }

    .protection-finalize__row-summary,
    .protection-finalize__plan {
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .protection-finalize {
        padding-top: 24px;
    }

    .protection-finalize__rows,
    .protection-finalize__notice,
    .protection-finalize .installation-result,
    .protection-finalize__actions {
        width: min(100% - 32px, 1040px);
    }

    .protection-finalize__row {
        grid-template-columns: 42px minmax(0, 1fr) 76px;
        gap: 9px;
        padding: 13px 12px;
    }

    .protection-finalize__row h3 {
        grid-column: 2;
    }

    .protection-finalize__row-summary {
        grid-column: 2 / -1;
        flex-wrap: wrap;
    }

    .protection-finalize__row-actions {
        grid-column: 3;
        grid-row: 1;
    }

    .protection-finalize__row-details {
        grid-column: 1 / -1;
    }

    .protection-finalize__detail-grid,
    .protection-finalize__identifier-details,
    .protection-finalize__plan-details dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .protection-finalize__row-summary--business > span {
        flex-basis: 100%;
    }

    .protection-finalize__row-summary--business > i {
        display: none;
    }

    .protection-finalize__plan {
        flex-wrap: wrap;
    }

    .protection-finalize__actions {
        gap: 10px;
    }

    .protection-finalize__actions .installation-button,
    .protection-finalize__actions .installation-button--activate {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .activation-progress > i,
    .activation-button__loading > i {
        animation-duration: 1.8s;
    }
}

@media (max-width: 1050px) {
    .review-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .review-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid var(--onboarding-border);
        border-left: 0;
    }

    .review-security-note {
        margin-top: 0;
    }
}

@media (max-width: 620px) {
    .review-aside {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px 18px;
    }
}

.review-card > header > .review-mid-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--onboarding-primary);
}
.review-mid-link svg { width: 15px; height: 15px; }
.review-mid-link[aria-expanded="true"] svg { transform: rotate(180deg); }
[data-mid-details] { padding-top: 16px; }

.review-card--providers,
.review-card--descriptors { border-bottom: 0; }
.review-card--descriptors { border-left: 1px solid var(--onboarding-border); padding-left: 24px; }
.review-provider-list button.provider-badges__item { width: 100%; text-align: left; cursor: pointer; font-family: inherit; color: var(--onboarding-text); }
.review-provider-list button.provider-badges__item:hover { background: var(--onboarding-bg); }
.review-provider-list button.provider-badges__item:focus-visible { outline: 2px solid var(--onboarding-primary); outline-offset: 3px; }
.review-mid-list { margin: 0; display: grid; gap: 12px; }
.review-mid-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 18px 20px; background: #f8fafc; border-radius: 10px; }
.review-mid-row dt { margin: 0 0 8px; color: var(--onboarding-muted); font-size: 12px; }
.review-mid-row dd { margin: 0; color: var(--onboarding-text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.review-descriptor-pill { display: inline-block; border-radius: 6px; background: #f3f4f6; color: #111111; padding: 6px 9px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 620px) {
    .review-card--descriptors { border-left: 0; padding-left: 0; }
    .review-mid-row { grid-template-columns: 1fr; gap: 16px; }
    .review-mid-link { grid-column: 2; justify-self: start; }
}

.review-mid-provider { display: flex; align-items: center; gap: 10px; }
.review-mid-provider .provider-badges__logo { flex: 0 0 30px; }
.review-mid-row dd.review-mid-number { align-self: center; font-variant-numeric: tabular-nums; }

/* Payment choices share the final-review rhythm; card entry stays inside the hosted provider form. */
.installation-payment { width:calc(100% - 36px); max-width:920px; box-sizing:border-box; margin: 28px auto 8px; padding-top: 24px; border-top: 1px solid #e5e9ef; text-align: left; }
.installation-payment__heading, .installation-payment__card-heading { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.installation-payment h3 { margin:0 0 5px; font-size:18px; color:#172b4d; }
.installation-payment p { margin:5px 0 16px; color:#667085; font-size:13px; line-height:1.55; }
.installation-payment__heading p { margin:0; }
.installation-payment__learn-more { border:0; padding:0; background:transparent; color:var(--ui-color-text); font:inherit; text-decoration:underline; cursor:pointer; }
.installation-payment__choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.installation-payment__choice.installation-payment__loading {
    min-height: 94px;
    cursor: default;
    background: linear-gradient(var(--ui-color-gray-200) 0 0) 18px center / 14px 14px no-repeat,
        linear-gradient(var(--ui-color-gray-200) 0 0) 44px center / 28px 28px no-repeat,
        linear-gradient(var(--ui-color-gray-200) 0 0) 88px 25px / 34% 12px no-repeat,
        linear-gradient(var(--ui-color-gray-200) 0 0) 88px 49px / 48% 10px no-repeat,
        linear-gradient(var(--ui-color-gray-200) 0 0) calc(100% - 15px) center / 66px 46px no-repeat;
}
.installation-payment__choice { display:flex; align-items:center; gap:12px; padding:18px; border:1px solid #d8e0ea; border-radius:10px; cursor:pointer; background:#fff; }
.installation-payment__choice:has(:checked) { border-color:var(--onboarding-primary); box-shadow:0 0 0 1px var(--onboarding-primary); background:#f7f9fc; }
.installation-payment input[type=radio], .installation-payment input[type=checkbox] { accent-color:var(--onboarding-primary); flex:0 0 auto; }
.installation-payment__choice img { width:28px; height:28px; object-fit:contain; }
.installation-payment__choice strong { display:block; font-size:14px; color:#172b4d; }
.installation-payment__choice small { display:block; font-size:12px; color:#667085; margin-top:5px; line-height:1.5; }
.installation-payment__details { padding:24px; margin-top:16px; background:#fff; border:1px solid #e0e6ee; border-radius:12px; }
.installation-payment__card-heading { justify-content:space-between; }
.installation-payment__trust { display:flex; align-items:center; gap:6px; font-size:12px; color:#667085; }
.installation-payment__preview-fields label { display:grid; gap:8px; font-size:12px; font-weight:600; color:#344054; margin-bottom:16px; }
.installation-payment__preview-fields input { width:100%; box-sizing:border-box; border:1px solid #cfd7e3; border-radius:7px; background:#fff; padding:13px; font:inherit; font-size:14px; color:#344054; }
.installation-payment__preview-fields > div { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.installation-payment__preview-number { display:flex; position:relative; }
.installation-payment__preview-number img { position:absolute; width:32px; height:24px; right:12px; top:10px; }
.installation-payment__preview-fields small { color:#667085; font-size:12px; }
.installation-payment__actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:14px; }
.installation-payment__actions .installation-button--primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.installation-payment__trust { margin:12px 0 0; }
.installation-payment__saved { display:flex; align-items:center; gap:10px; padding:18px; margin-top:16px; background:#f2f7f5; border-radius:8px; color:#236348; font-size:14px; }
.installation-payment__feedback.is-error { color:#b42318; }
.installation-payment__marketplace-note {
    display: flex;
    align-items: center;
    gap: var(--ui-space-5);
    margin: var(--ui-space-5) 0 0;
    padding: var(--ui-space-5);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-3xl);
    background: var(--ui-color-gray-50);
    color: var(--ui-color-text-muted);
    font-size: var(--ui-font-size-sm);
    line-height: 1.5;
    text-align: left;
}
.installation-payment__marketplace-note[data-waiting="true"] {
    border-color: transparent;
    background: color-mix(in srgb, var(--marketplace-accent) 6%, var(--ui-color-surface));
}
.installation-payment__status-indicator {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    height: 56px;
    border-radius: var(--ui-radius-circle);
    background: color-mix(in srgb, var(--marketplace-accent) 12%, var(--ui-color-surface));
}
.installation-payment__status-indicator::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: var(--ui-radius-circle);
    background: var(--marketplace-accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--marketplace-accent) 15%, transparent);
    animation: marketplace-approval-pulse 1.8s ease-in-out infinite;
}
.installation-payment__status-copy { min-width: 0; flex: 1; }
.installation-payment__approval-retry {
    display: block;
    margin-top: var(--ui-space-2);
    color: var(--marketplace-accent);
    text-decoration: underline;
    text-underline-offset: var(--ui-space-1);
}
.installation-payment__status-refresh {
    flex-shrink: 0;
    width: auto;
    margin-left: auto;
    padding: var(--ui-space-3);
}
.installation-payment__status-copy > strong {
    display: block;
    margin-bottom: var(--ui-space-1);
    color: var(--ui-color-text);
}
.installation-payment__marketplace-note[data-waiting="true"] .installation-payment__status-copy {
    padding-left: var(--ui-space-5);
    border-left: 1px solid color-mix(in srgb, var(--marketplace-accent) 15%, transparent);
}
.installation-payment__marketplace-note.is-error {
    border-color: var(--ui-color-red-200);
    background: var(--ui-color-danger-soft);
    color: var(--ui-color-danger);
}
@keyframes marketplace-approval-pulse {
    50% { opacity: .45; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
    .installation-payment__status-indicator::before { animation: none; }
}
.installation-payment [hidden] { display:none !important; }
@media(max-width:600px) { .installation-payment__details { padding:18px; } .installation-payment__card-heading { align-items:flex-start; flex-direction:column; gap:2px; } .installation-payment__actions { justify-content:stretch; } .installation-payment__actions .installation-button { width:100%; min-width:0; } }

.installation-payment [data-payment-card] { max-width:620px; margin:16px auto 0; }

/* Final review is a compact summary beside a dedicated payment workspace. */
.protection-finalize { padding: 0; }
.protection-finalize__layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); align-items:start; }
.protection-finalize__review { min-width:0; padding:32px; }
.protection-finalize__payment-column { min-width:0; padding:32px; border-left:1px solid var(--onboarding-border-soft); background:#fafbfc; border-radius:0 12px 12px 0; }
.protection-finalize__review .protection-finalize__hero { justify-items:start; text-align:left; padding:0 0 28px; }
.protection-finalize__review .protection-finalize__hero-icon { width:52px; height:52px; margin-bottom:16px; }
.protection-finalize__review .protection-finalize__hero-icon svg { width:28px; height:28px; }
.protection-finalize__review .protection-finalize__hero h2 { font-size:24px; }
.protection-finalize__review .protection-finalize__rows { width:100%; border:0; border-radius:0; }
.protection-finalize__review .protection-finalize__row { grid-template-columns:38px minmax(0, 1fr) 68px; gap:8px 12px; padding:18px 0; min-height:0; }
.protection-finalize__review .protection-finalize__row-icon { width:36px; height:36px; grid-column:1; grid-row:1; }
.protection-finalize__review .protection-finalize__row h3 { grid-column:2; grid-row:1; }
.protection-finalize__review .protection-finalize__row-actions { grid-column:3; grid-row:1; }
.protection-finalize__review .protection-finalize__row-summary { grid-column:2 / -1; grid-row:2; flex-wrap:wrap; justify-content:flex-start; }
.protection-finalize__review .protection-finalize__row-summary--business { display:grid; gap:4px; }
.protection-finalize__review .protection-finalize__row-summary--business > i { display:none; }
.protection-finalize__review .protection-finalize__row-summary--business > span { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 2fr); gap:var(--ui-space-2); white-space:normal; line-height:var(--ui-line-height-relaxed); }
.protection-finalize__review .protection-finalize__row-details { grid-column:1 / -1; }
.protection-finalize__review .protection-finalize__notice { width:auto; margin:24px 0 0; }
.protection-finalize__payment-column .installation-payment { width:100%; margin:0; padding:0; border:0; }
.protection-finalize__payment-column .installation-payment__heading { margin-bottom:24px; }
.protection-finalize__payment-column .installation-payment__heading .onboarding-heading-icon { display:none; }
.protection-finalize__payment-column .installation-payment__choices { grid-template-columns:1fr; gap:10px; }
.protection-finalize__payment-column .installation-payment__choice { padding:15px; }
.protection-finalize__payment-column .installation-payment__details { padding:20px; }
.protection-finalize__payment-column .installation-payment__card-heading { align-items:start; flex-direction:column; gap:2px; }
.protection-finalize__payment-column .protection-finalize__actions { display:flex; flex-direction:column-reverse; width:100%; margin:24px 0 0; padding:20px 0 0; border-top:1px solid var(--onboarding-border-soft); gap:10px; }
.protection-finalize__payment-column .protection-finalize__actions .installation-button { width:100%; max-width:none; }
.protection-finalize__payment-column .activation-progress, .protection-finalize__payment-column .installation-result { width:auto; margin:16px 0 0; }
.installation-payment__preview-fields input:focus { outline:2px solid var(--onboarding-primary); outline-offset:2px; }
@media(max-width:960px) {
    .protection-finalize__layout { grid-template-columns:1fr; }
    .protection-finalize__review, .protection-finalize__payment-column { padding:24px; }
    .protection-finalize__payment-column { border-left:0; border-top:1px solid var(--onboarding-border-soft); border-radius:0 0 12px 12px; }
}
@media(max-width:480px) {
    .protection-finalize__review, .protection-finalize__payment-column { padding:20px 16px; }
    .protection-finalize__payment-column .installation-payment__details { padding:16px; }
}

.protection-finalize__layout { align-items: stretch; }
.installation-payment__saved [data-payment-saved-text] { flex: 1; }
.installation-payment__change { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.installation-payment [data-preview-card="cvc"] { -webkit-text-security: disc; }

/* Final review and payment remain distinct surfaces within the shared workflow. */
.protected-panel:has(.protection-finalize:not([hidden])) { background:transparent; border:0; box-shadow:none; padding:0; }
.protection-finalize__layout { gap:16px; }
.protection-finalize__review,
.protection-finalize__payment-column { padding:24px; background:#fff; border:1px solid var(--onboarding-border-soft); border-radius:12px; box-shadow:0 6px 24px rgb(24 47 76 / 3%); }
.protection-finalize__review .protection-finalize__hero { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:24px; }
.protection-finalize__hero-copy { min-width:0; }
.protection-finalize__hero-copy > small { display:block; }
.protection-finalize__ready { display:flex; align-items:center; gap:10px; flex-shrink:0; padding:12px; background:var(--onboarding-success-soft); color:var(--onboarding-success); border-radius:10px; }
.protection-finalize__ready > svg { padding:4px; width:26px; height:26px; border-radius:50%; background:var(--onboarding-success); color:#fff; }
.protection-finalize__ready strong { display:block; font-size:12px; }
.protection-finalize__hero .protection-finalize__ready small { display:block; margin-top:3px; color:inherit; font-size:10px; }
.protection-finalize__review .protection-finalize__rows { border:1px solid var(--onboarding-border-soft); border-radius:12px; padding:0 16px; }
.protection-finalize__review .protection-finalize__row { padding:20px 0; }
.protection-finalize__review .protection-finalize__notice { margin-top:12px; }
.protection-finalize__payment-column .installation-payment__heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.installation-payment__security { display:flex; align-items:center; gap:10px; color:var(--onboarding-success); }
.installation-payment__security strong { display:block; font-size:12px; font-weight:600; }
.installation-payment__security small { display:block; margin-top:3px; font-size:10px; color:var(--onboarding-copy); }
.protection-finalize__payment-column .protection-finalize__actions { border-top:0; padding-top:0; }
.protection-finalize__benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; list-style:none; padding:0; margin:32px 0 0; }
.protection-finalize__benefits li { display:flex; align-items:center; gap:10px; min-width:0; }
.protection-finalize__benefits li + li { border-left:1px solid var(--onboarding-border-soft); padding-left:12px; }
.protection-finalize__benefits li > span { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; border-radius:50%; background:var(--onboarding-success-soft); color:var(--onboarding-success); }
.protection-finalize__benefits small { font-size:11px; line-height:1.5; color:var(--onboarding-copy); }
@media(min-width:961px) and (max-width:1200px) {
    .protection-finalize__review .protection-finalize__hero { align-items:flex-start; flex-direction:column; }
}
@media(max-width:480px) {
    .protection-finalize__review, .protection-finalize__payment-column { padding:20px 16px; }
    .protection-finalize__review .protection-finalize__hero { flex-direction:column; align-items:flex-start; }
    .protection-finalize__review .protection-finalize__rows { padding:0 12px; }
    .protection-finalize__benefits { gap:8px; }
    .protection-finalize__benefits li { flex-direction:column; align-items:flex-start; gap:8px; }
    .protection-finalize__benefits li + li { padding-left:8px; }
}

/* Edge-to-edge review feedback and compact final actions. */
.protection-finalize__review .protection-finalize__rows { padding:0; }
.protection-finalize__review .protection-finalize__row { padding:20px 16px; }
.protection-finalize__payment-column .protection-finalize__actions { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.protection-finalize__payment-column .protection-finalize__actions .installation-button { width:auto; height:42px; min-height:42px; min-width:0; padding:10px 16px; font-size:13px; }
.protection-finalize__actions .activation-button__copy small,
.protection-finalize__actions .installation-button--activate > svg:first-child { display:none; }
.protection-finalize__payment-column .protection-finalize__actions .installation-button--activate { height:auto; padding-block:var(--ui-space-3); gap:12px; }
.protection-finalize__actions .protection-finalize__back { border-color:transparent; background:transparent; padding-left:0; }
.installation-payment-dialog { box-sizing:border-box; width:min(520px, calc(100vw - 32px)); max-height:calc(100dvh - 48px); margin:auto; padding:0; overflow:hidden; border:1px solid var(--onboarding-border-soft); border-radius:16px; background:#fff; color:var(--onboarding-ink); box-shadow:0 24px 80px rgb(15 30 50 / 20%); }
.installation-payment-dialog::backdrop { background:rgb(15 30 50 / 40%); }
.installation-payment-dialog__body { box-sizing:border-box; max-height:calc(100dvh - 48px); padding:28px; overflow-y:auto; }
.protection-finalize__payment-column .installation-payment-dialog .installation-payment__details { position:relative; padding:0; margin:0; border:0; background:transparent; }
.installation-payment-dialog__close { position:absolute; z-index:1; right:16px; top:16px; display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:6px; background:transparent; color:var(--onboarding-copy); cursor:pointer; }
.installation-payment-dialog__close:hover { background:var(--onboarding-border-soft); }
.installation-payment-dialog .installation-payment__card-heading { padding-right:36px; }
.installation-payment-dialog .installation-payment__card-heading strong { font-size:20px; }
.card-entry-dialog--payscout .installation-payment-dialog__body { padding-top:20px; padding-bottom:20px; }
.installation-payment-dialog .installation-payment__feedback,
.installation-payment-dialog .installation-payment__feedback:empty { display:flex; align-items:center; box-sizing:border-box; height:40px; margin:8px 0 0; overflow-y:auto; }
@media(max-width:480px) {
    .installation-payment-dialog__body { padding:24px 20px; }
    .protection-finalize__payment-column .protection-finalize__actions { flex-wrap:wrap; }
}

.installation-payment .installation-payment__choice-action { width:auto; min-width:0; margin-left:auto; min-height:36px; padding:8px 12px; font-size:12px; }

.installation-payment__choice--card { display:grid; grid-template-columns:minmax(0, 1fr) minmax(88px, 30%); min-height:80px; }
.installation-payment__card-label { display:flex; align-items:center; gap:12px; min-width:0; flex:1; cursor:pointer; }
.installation-payment__card-label > svg { flex-shrink:0; }
.installation-payment__card-summary { margin-left:auto; text-align:right; }
.installation-payment__card-summary:empty { display:none; }
.installation-payment__card-summary .installation-payment__saved { display:flex; flex-direction:column; align-items:flex-end; gap:5px; padding:0; margin:0; border:0; background:transparent; color:#111; font-size:12px; }
.installation-payment__card-summary .installation-payment__saved > svg { display:none; }
.installation-payment__card-summary .installation-payment__change { color:#111; font-size:12px; }
.protection-finalize__payment-column { display:flex; flex-direction:column; }
.protection-finalize__payment-column .protection-finalize__actions { margin-top:28px; padding-top:20px; border-top:1px solid var(--onboarding-border-soft); }
.protection-finalize__payment-column .protection-finalize__benefits { margin-top:auto; padding-top:56px; padding-bottom:8px; }
.protection-finalize__payment-column .protection-finalize__back { padding-left:4px; color:var(--onboarding-copy); }

.installation-payment-dialog__provider { display:block; width:40px; height:40px; object-fit:contain; margin:16px 0; }

.installation-payment-dialog [data-payment-marketplace] > .installation-button { margin-top:12px; vertical-align:top; }

.installation-payment__card-label > img { width:28px; height:28px; object-fit:contain; flex-shrink:0; }
.installation-payment__approval > small { display:block; margin-bottom:4px; font-size:11px; color:var(--onboarding-copy); }
.installation-payment__approval .installation-payment__saved { font-weight:600; }

/* Empty feedback must not change the review height when moved into a dialog. */
.installation-payment__feedback:empty { display:none; }

.card-entry-dialog .installation-payment__actions { flex:1; flex-wrap:wrap; justify-content:flex-start; gap:var(--ui-space-3); min-width:0; }
.card-entry-dialog .installation-payment__actions .installation-button { flex-shrink:0; }
.card-entry-dialog .installation-payment__actions .installation-payment__feedback { flex:1 1 160px; gap:var(--ui-space-2); height:auto; min-height:40px; margin:0; overflow:visible; font-size:var(--ui-font-size-sm); line-height:1.5; color:var(--ui-color-text-muted); }
.card-entry-dialog .installation-payment__actions .installation-payment__feedback:empty { display:none; }
.installation-payment[aria-busy="true"] .installation-payment__actions .installation-payment__feedback:not(:empty):not(.is-error)::before { content:""; flex-shrink:0; width:14px; height:14px; border:2px solid var(--ui-color-border); border-top-color:var(--ui-color-text-muted); border-radius:50%; animation:verification-spinner .9s linear infinite; }
.card-entry-dialog .installation-payment__actions .installation-payment__feedback.is-error { color:var(--ui-color-red-700); }
@media(max-width:480px) { .card-entry-dialog .installation-payment__actions .installation-payment__feedback { flex-basis:100%; min-height:0; } }
@media(prefers-reduced-motion:reduce) { .installation-payment[aria-busy="true"] .installation-payment__actions .installation-payment__feedback::before { animation:none; } }

/* Review surfaces inherit the marketplace palette, including status decorations. */
.review-panel,
.protection-finalize {
    --onboarding-success: var(--marketplace-accent);
    --onboarding-success-soft: color-mix(in srgb, var(--marketplace-accent) 8%, white);
}

@media (max-width: 360px) {
    .connect-visual { --connect-node-offset: 91.92px; }
    .connect-visual__ring--outer { width: 260px; height: 260px; --orbit-radius: 130px; }
    .connect-visual__ring--inner { width: 185px; height: 185px; --orbit-radius: 92.5px; }
    .connect-visual__node { width: 90px; }
    .connect-visual__node--store small,
    .connect-visual__node--card small { position: absolute; bottom: calc(100% + 8px); }
}

/* Review notices expose required corrections without warning about optional discovery. */
.review-value--missing {
    background: var(--ui-color-warning-soft);
    color: var(--ui-color-warning);
    border-radius: var(--ui-radius-sm);
    padding: var(--ui-space-1) var(--ui-space-2);
}

.review-information-notice {
    background: var(--ui-color-surface-muted);
    color: var(--ui-color-text-muted);
    border-radius: var(--ui-radius-sm);
    padding: var(--ui-space-3);
    font-size: var(--ui-font-size-sm);
}

.review-card--mids > .review-information-notice {
    margin-top: var(--ui-space-3);
}

.review-descriptor-notice {
    margin-bottom: var(--ui-space-3);
}

[data-review-attention][hidden],
[data-review-descriptors-notice][hidden],
[data-review-mids-notice][hidden],
[data-review-providers-notice][hidden] {
    display: none;
}

/* Descriptor editor keeps the statement name and MID together, with an illustrative preview. */
.descriptor-dialog[data-descriptor-dialog] {
    width: min(960px, calc(100% - 32px));
    max-height: min(92vh, 850px);
}
.descriptor-dialog[data-descriptor-dialog] .descriptor-dialog__surface { max-height: min(92vh, 850px); }
[data-descriptor-dialog] .descriptor-dialog__body { padding: var(--ui-space-4) var(--ui-space-6); }
[data-descriptor-dialog] .installation-identifier,
[data-descriptor-dialog] .installation-identifier:last-child,
[data-descriptor-dialog][data-descriptor-scope="single"] .installation-identifier {
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-xl);
    padding: var(--ui-space-4);
}
[data-descriptor-dialog] .installation-identifier legend {
    color: var(--ui-color-text);
    font-size: var(--ui-font-size-lg);
    padding: 0 var(--ui-space-2);
}
[data-descriptor-dialog] .installation-identifier { position: relative; }
[data-descriptor-dialog] .descriptor-dialog__remove-draft {
    position: absolute;
    top: calc(-1 * var(--ui-space-6));
    right: var(--ui-space-4);
    padding-inline: var(--ui-space-2);
    background: var(--ui-color-surface);
}
[data-descriptor-dialog] .descriptor-dialog__remove-draft[hidden] { display: none; }
.descriptor-dialog__main-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--ui-space-6);
    align-items: start;
}
[data-descriptor-dialog] .installation-field--descriptor { display: flex; flex-direction: column; }
[data-descriptor-dialog] .installation-field--descriptor input {
    min-height: 48px;
    padding: var(--ui-space-3) var(--ui-space-4);
    border-color: var(--ui-color-border);
    font-size: var(--ui-font-size-sm);
}
.descriptor-dialog__main-fields small {
    color: var(--ui-color-text-muted);
    font-size: var(--ui-font-size-xs);
    font-weight: normal;
    line-height: 1.5;
}
.descriptor-dialog__statement-preview {
    display: flex;
    align-items: center;
    gap: var(--ui-space-4);
    margin-top: var(--ui-space-4);
    padding: var(--ui-space-4);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-color-primary-soft);
}
.descriptor-dialog__preview-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    color: var(--ui-color-primary);
}
.descriptor-dialog__preview-icon svg { width: 28px; height: 28px; }
.descriptor-dialog__statement-preview > div { min-width: 0; }
.descriptor-dialog__statement-preview strong,
.descriptor-dialog__statement-preview small { display: block; font-size: var(--ui-font-size-xs); }
.descriptor-dialog__statement-preview small { color: var(--ui-color-text-muted); line-height: 1.5; }
.descriptor-dialog__statement-preview output {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    margin: var(--ui-space-2) 0;
    padding: var(--ui-space-2) var(--ui-space-3);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-md);
    background: var(--ui-color-surface);
    font-weight: var(--ui-font-weight-semibold);
}
[data-descriptor-dialog] .installation-add-identifier {
    display: flex;
    width: 100%;
    align-items: center;
    gap: var(--ui-space-4);
    border: 1px dashed var(--ui-color-border);
    border-radius: var(--ui-radius-lg);
    padding: var(--ui-space-4);
    text-align: left;
    background: var(--ui-color-surface);
}
[data-descriptor-dialog] .installation-add-identifier svg { width: 24px; height: 24px; flex-shrink: 0; }
[data-descriptor-dialog] .installation-add-identifier strong,
[data-descriptor-dialog] .installation-add-identifier small { display: block; }
[data-descriptor-dialog] .installation-add-identifier small { color: var(--ui-color-text-muted); font-weight: normal; margin-top: var(--ui-space-1); }
[data-descriptor-dialog] .descriptor-dialog__actions { margin-left: auto; }
@media (max-width: 640px) {
    .descriptor-dialog__main-fields { grid-template-columns: minmax(0, 1fr); gap: var(--ui-space-4); }
    [data-descriptor-dialog] .installation-identifier { padding: var(--ui-space-4); }
}

button.installation-progress__phase {
    font: inherit;
    text-align: left;
    border: 0;
    background: transparent;
    padding-block: 0;
    cursor: pointer;
}
button.installation-progress__phase:disabled { cursor: default; }
button.installation-progress__phase:focus-visible { outline: 2px solid var(--ui-color-primary); outline-offset: var(--ui-space-1); }
@media (max-width: 640px) {
    .installation-header { flex-wrap: wrap; }
}

.connect-panel__identity {
    padding-bottom: var(--ui-space-4);
    border-bottom: 1px solid var(--ui-color-border);
}

.review-descriptor-add {
    margin-left: var(--ui-space-2);
}

.protection-finalize__review .protection-finalize__row-summary--plan { display: grid; gap: var(--ui-space-2); }
.protection-finalize__plan > span:last-child { flex: 1; white-space: normal; line-height: var(--ui-line-height-relaxed); }
.protection-finalize__plan [data-coverage-price] { display: grid; gap: var(--ui-space-1); }
.protection-finalize__plan .coverage-price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: var(--ui-space-2);
    line-height: var(--ui-line-height-relaxed);
}
.protection-finalize__plan .coverage-price-help { margin: 0; }
.protection-finalize__additional-service {
    display: block;
    margin-top: var(--ui-space-2);
    padding-top: var(--ui-space-3);
    border-top: 1px solid var(--ui-color-gray-200);
    color: var(--onboarding-ink);
    line-height: var(--ui-line-height-relaxed);
}

[data-payment-marketplace-dialog] { width: min(640px, calc(100vw - 32px)); }
[data-payment-marketplace-dialog] .installation-payment__marketplace-heading {
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: var(--ui-space-4);
    margin-bottom: var(--ui-space-6);
}
[data-payment-marketplace-dialog] .installation-payment__marketplace-heading > strong { font-size: 24px; }
.installation-payment-dialog__brand {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    height: 64px;
    border-radius: var(--ui-radius-3xl);
    background: color-mix(in srgb, var(--marketplace-accent) 8%, var(--ui-color-surface));
}
.installation-payment-dialog__brand img { width: 44px; height: 44px; object-fit: contain; }
[data-payment-marketplace-dialog] .installation-payment__marketplace-title { font-size: 24px; }
[data-payment-marketplace-dialog] .installation-payment__details > p { font-size: 16px; line-height: 1.5; }
[data-payment-marketplace-dialog] .installation-payment-dialog__close { background: var(--ui-color-gray-100); }
@media (max-width: 480px) {
    [data-payment-marketplace-dialog] .installation-payment__marketplace-heading > strong,
    [data-payment-marketplace-dialog] .installation-payment__marketplace-title { font-size: 20px; }
    .installation-payment__marketplace-note { gap: var(--ui-space-3); padding: var(--ui-space-4); }
    .installation-payment__marketplace-note[data-waiting="true"] .installation-payment__status-copy { padding-left: var(--ui-space-3); }
    .installation-payment__status-indicator { flex-basis: 40px; height: 40px; }
}

[data-payment-marketplace-dialog] .installation-payment__marketplace-note { font-size: 15px; }
[data-payment-marketplace-dialog] .installation-payment__status-copy > strong { font-size: 16px; }
[data-optional-service-price] { min-height: 28px; font-size: 12px; font-weight: 700; }
[data-optional-service-price][aria-busy="true"] {
    color: transparent;
    background: linear-gradient(var(--ui-color-gray-200) 0 0) left 10px / 70% 14px no-repeat;
}

/* Opt-in hosted payment handoffs keep the existing installation surfaces unchanged. */
.marketplace-installation[data-payment-only="true"] {
    max-width: 860px;
}
.marketplace-installation[data-payment-only="true"] > [data-protection-finalize] {
    padding: var(--ui-space-6);
    gap: var(--ui-space-4);
}
.marketplace-installation[data-payment-only="true"] > [data-protection-finalize] > a {
    justify-self: start;
}

/* The opt-in landing page reveals progress as soon as the shared runtime leaves Connect. */
[data-installation-intro="true"][data-stage="connect"] .installation-progress {
    display: none;
}

/* A full-width track keeps both actions and helper copy comfortably aligned. */
.connect-panel__entry-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 384px);
    align-self: flex-start;
    gap: var(--ui-space-3);
}

/* Only the opt-in introduction places authorization guidance inside its primary action. */
.connect-panel__entry-actions > .installation-button--primary {
    display: grid;
    height: auto;
    gap: var(--ui-space-1);
    padding-block: var(--ui-space-3);
    text-align: center;
}

.connect-panel__button-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ui-space-2);
}

.connect-panel__button-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ui-space-1);
    color: color-mix(in srgb, var(--ui-color-white) 88%, transparent);
    font-size: var(--ui-font-size-xs);
    font-weight: 400;
    line-height: var(--ui-line-height-relaxed);
}

.connect-panel__divider {
    display: flex;
    align-items: center;
    gap: var(--ui-space-3);
    color: var(--ui-color-text-muted);
    font-size: var(--ui-font-size-xs);
}

.connect-panel__divider::before,
.connect-panel__divider::after {
    flex: 1;
    height: 1px;
    background: var(--ui-color-border);
    content: "";
}

.connect-panel__signin-note {
    color: var(--ui-color-text-muted);
    font-size: var(--ui-font-size-sm);
    line-height: var(--ui-line-height-relaxed);
    text-align: center;
}

/* Keep the reassurance icon proportional to the smaller button subtitle. */
.connect-panel__button-note > svg {
    width: var(--ui-font-size-xs);
    height: var(--ui-font-size-xs);
    flex-shrink: 0;
}
