/* Scroll lock while a dashboard service interstitial is open. Lives here rather
   than in Dashboard.razor.css because <body> is outside any component's scope,
   so a scoped rule would never match it. */
body.svc-modal-lock {
    overflow: hidden;
}

/* ── Service interstitial popup ───────────────────────────────────────────────
   These styles live here (global), not in Dashboard.razor.css (scoped), because the popup markup is now
   rendered by the shared Shared.Benefits.Web ServiceInterstitialModals component, which carries no
   per-component scope attribute — a scoped rule would never match it. Class names match the component:
   the .svc-modal* shell + the .svc-info-* skin. Hidden until service-modal.js adds .open (CSP forbids
   inline handlers); --c is the per-service accent carried in via the tile colour. */

/* Launch-CTA button — the interstitial popup's submit button (also RCL-rendered, so global). */
.btn-cta {
    background: #fff;
    color: var(--brand-cyan-dark);
    font-size: 1.02rem;
    padding: .8rem 1.6rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    white-space: nowrap;
}

.btn-cta span { font-size: 1.2rem; }

.btn-cta:hover {
    background: var(--brand-cyan-soft);
    color: var(--brand-cyan-dark);
    text-decoration: none;
}

/* Popup shell */
.svc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.svc-modal.open { display: block; }

.svc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}

.svc-modal-card {
    position: relative;
    max-width: 720px;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    margin: 3rem auto 0;
    background: var(--brand-surface);
    border: 1px solid var(--brand-line);
    border-radius: var(--brand-radius);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    /* The accent reads as a band across the top rather than tinting the card. */
    border-top: 4px solid var(--c);
    padding: 1.9rem;
}

.svc-modal-x {
    position: absolute;
    top: .6rem;
    right: .8rem;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brand-muted);
    cursor: pointer;
}

/* Popup skin */
.svc-info-body { display: flex; flex-direction: column; gap: 1.2rem; }
.svc-info-media { display: flex; justify-content: center; }

.svc-info-kicker {
    display: inline-block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--c);
    margin-bottom: .35rem;
}

.svc-info-tx h3 { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1.3; color: var(--brand-ink); }
.svc-info-tx p { margin: 0 0 1rem; color: var(--brand-muted); line-height: 1.55; }

.svc-info-list {
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.svc-info-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--brand-ink);
    font-size: .9rem;
}

.svc-info-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--c);
    font-weight: 700;
}

.svc-info-actions {
    display: flex;
    align-items: flex-end;
    gap: .9rem;
    flex-wrap: wrap;
}

.svc-info-recipient { display: flex; flex-direction: column; gap: .3rem; }

.svc-info-recipient label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-muted);
    font-weight: 600;
}

.svc-info-recipient select {
    font: inherit;
    font-size: .88rem;
    padding: .5rem .7rem;
    border-radius: var(--brand-radius);
    border: 1px solid var(--brand-line);
    background: var(--brand-surface);
    color: var(--brand-ink);
    max-width: 20rem;
}

/* A recipient this service can't launch for stays visible but unpickable, with
   the reason in its label — see the shared CareRecipientPolicy. */
.svc-info-recipient select option:disabled { color: var(--brand-muted); }

.svc-info-go:disabled { opacity: .55; cursor: not-allowed; }

.svc-info-partner {
    display: block;
    margin-top: .9rem;
    font-size: .74rem;
    color: var(--brand-muted);
}

/* Portal → vendor handoff lockup used as this portal's popup media (Unified illustrates with the lockup
   rather than a photo, so ServiceInterstitial.Image is null in its catalogue). */
.handoff {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.handoff-badge {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.1rem;
    border-radius: var(--brand-radius);
    border: 1px solid var(--brand-line);
    background: var(--brand-surface);
    box-shadow: var(--brand-shadow);
    font-weight: 700;
}

.handoff-badge.ulr img { height: 28px; display: block; }
.handoff-badge.vendor { font-size: 1.05rem; }
.handoff-arrow { font-size: 1.5rem; color: var(--brand-muted); }

@media (max-width: 640px) {
    .svc-modal-card { padding: 1.35rem; margin-top: 1.5rem; }
}
