.blue-phone {
    color: #196ECF;
    font-weight: 700;
}
#vpp-plan-details .heading-1 ,
#vpp-plan-details h1 {
    color: #002677;
    margin: 0.67em 0px;
}

#vpp-plan-details .heading-2 ,
#vpp-plan-details h2 {
    color: #002677;
}

/* ===== ISNP Learn More Button ===== */
#vpp-plan-details .isnp-learn-more-btn {
    background-color: #002677;
    color: #ffffff;
    border: none;
    border-radius: 500px;
    padding: 8px 24px;
    font-family: 'UHCSans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    min-height: 40px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

#vpp-plan-details .isnp-learn-more-btn:hover {
    background-color: #001d5b;
}

/* ===== ISNP Popover ===== */
.isnp-modal-overlay {
    position: absolute;
    top: calc(100% + 8px);
    left: -54px;
    z-index: 999;
    width: 258px;

}

@container plan-details-content (max-width: 600px) {
    .isnp-modal-overlay {
        left: unset !important;
        right: 0px !important;
    }
}

.isnp-modal-overlay[hidden] {
    display: none;
}

.isnp-modal {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 20px 20px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E5E6;
}

.isnp-modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.isnp-modal-close {
    width: 0px !important;
    min-width: 0px !important;
}

.isnp-modal-close:hover {
    color: #002677;
}

.isnp-modal-headline {
    font-family: 'UHCSerifHeadline', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #002677;
    margin: 0;
    line-height: 1.4;
}

.isnp-modal-subtext {
    font-family: 'UHCSans', Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #323333;
    margin: 0;
}

/** START -- PFNY Current Enrolled */
#vpp-plan-details #pd-pfny-current-plan.enrolled-text, #vpp-plan-details #pd-pfny-enrolled-plan.enrolled-text,#vpp-plan-details .enrollment-message-container {
    color: #002677;
    white-space: nowrap;
}

#vpp-plan-details .enrolled-text {
    display: inline-flex;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #002677;
}

#vpp-plan-details #pd-pfny-auto-enrolled-plan .abyss-popover-trigger {
    color: #002677;
    font-family: 'UHCSans',Helvetica,Arial,sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    padding-left: 0px;
    text-decoration: none;
    border-bottom-style: none;
    white-space: nowrap;
}

#pd-pfny-auto-enrolled-plan .abyss-popover-title {
    font-family: 'UHCSerifHeadline', Helvetica, Arial, sans-serif;
    font-size: var(--r16);
    line-height: var(--r22) !important;
    font-weight: 500;
    letter-spacing: 0px;
}

#vpp-plan-details #pd-pfny-auto-enrolled-plan .abyss-popover-content-container {
    font-size: var(--r14);
    letter-spacing: 0px;
}

#vpp-plan-details #plan-highlighted-benefits #pd-pfny-auto-enrolled-plan .abyss-popover-trigger .tooltip-text {
    border-image: repeating-linear-gradient(to right, #002677 0 4px, transparent 4px 8px) 0 0 1 0;
}

#vpp-plan-details #pd-pfny-auto-enrolled-plan .abyss-popover-trigger .tooltip-text {
    font-weight: 700;
}

#vpp-plan-details .abyss-popover-trigger .tooltip-text {
    border-bottom: 1.5px solid transparent;
    border-image: repeating-linear-gradient(to right, #196ecf 0 4px, transparent 4px 8px) 0 0 1 0;
}

/* Show a fixed-size skeleton placeholder while genuinely still loading (before Svelte
   mounts and makes its button-or-nothing decision, the container has zero children).
   Matches the real button's height/shape (.v2button__large, 500px pill radius) so
   there's no jump when the real button/Abyss content replaces it. */
#vpp-plan-details .plan-enrollment.enroll-btn:empty {
    display: block;
    min-width: 111px;
    min-height: 40px;
    border-radius: 500px;
    background-color: #e2e2e2;
}

/* Resolved (component finished deciding) but genuinely has no button/badge to show
   (e.g. outside the AEP enrollment window) -- collapse cleanly instead of showing a
   skeleton forever for what is a legitimate, permanent empty state. The [data-resolved-empty]
   marker only renders (via a single atomic {#if/:else if} in plan-enrollment.svelte) in
   that exact branch, so it can never coexist with the button mid-transition. */
#vpp-plan-details .plan-enrollment.enroll-btn:has([data-resolved-empty]) {
    display: none !important;
}

#vpp-plan-details .plan-enrollment.enroll-btn:has(button, abyss-parcel, .enrolled-text) {
    background-color: transparent;
}

/* Same skeleton treatment for the Save button placeholder, which previously had no
   reserved space and popped in at full height once Svelte mounted the button (CLS).
   Uses the same single-atomic-conditional + [data-resolved-empty] marker pattern
   (rendered by save-plan-button.svelte) so a Jarvis-without-SSO flow (which
   legitimately never shows a Save button) collapses cleanly instead of showing a
   skeleton forever. */
#vpp-plan-details .headerButtons .save-plan:empty {
    display: block;
    min-width: 111px;
    min-height: 40px;
    border-radius: 500px;
    background-color: #e2e2e2;
}

#vpp-plan-details .headerButtons .save-plan:has([data-resolved-empty]) {
    display: none !important;
}


/* When enrolled badge/parcel is present, hide the enrollment message (sibling) */
#vpp-plan-details .plan-enrollment.enroll-btn:has(.enrolled-text, abyss-parcel) ~ .enrollment-message-container {
    display: none !important;
}

/* END -- PFNY Current Enrolled */

/* START -- PFNY Header Badge */

.pfny-enrollment-badge {
        display: inline-flex;
        align-items: center;
        margin-bottom: 8px;
    }

    .pfny-enrollment-badge-current {
        width: 223px;
        height: 37px;
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
        background-color: #002677;
    }

    .pfny-enrollment-badge-wide {
        width: 250px;
        height: 37px;
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
        background-color: #007000;
    }

    .pfny-enrollment-badge-text {
        font-family: 'UHC Sans', sans-serif !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
        padding: 0 16px !important;
        white-space: nowrap !important;
    }

/* END -- PFNY Header Badge */

/* START -- DTC (Direct-to-Consumer) Header Badge */
#vpp-plan-details .dtc-plan-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 267px;
    height: 37px;
    padding: 0 16px;
    margin-bottom: 8px;
}

/* Parallelogram drawn on a background layer so clip-path doesn't clip the popover tooltip. */
#vpp-plan-details .dtc-plan-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #196ECF;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    z-index: 0;
}

#vpp-plan-details .dtc-plan-badge > abyss-parcel {
    position: relative;
    z-index: 1;
}

/* Trigger button sits above the parallelogram background layer. */
#vpp-plan-details .dtc-badge-trigger {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
}

#vpp-plan-details .dtc-plan-badge .abyss-popover-trigger,
#vpp-plan-details .dtc-plan-badge .dtc-badge-text {
    font-family: 'UHC Sans', 'UHCSans', Helvetica, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    color: #FFFFFF !important;
}

#vpp-plan-details .dtc-badge-text {
    display: inline-block;
    width: fit-content;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-decoration: underline dotted;
    text-decoration-color: #FFFFFF;
    text-underline-offset: 3px;
}

/* Click tooltip anchored below the badge; badge is position:relative. */
#vpp-plan-details .dtc-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 999;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #FFFFFF;
    border: 1px solid #E5E5E6;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 32px 20px 20px 20px;
}

#vpp-plan-details .dtc-tooltip[hidden] {
    display: none;
}

#vpp-plan-details .dtc-tooltip-close,
#vpp-plan-details .dtc-banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #323333;
    padding: 4px;
}

#vpp-plan-details .dtc-tooltip-text {
    margin: 0;
    font-family: 'UHCSans', Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #323333;
}

/* -- DTC informational banner (below plan name) -- */
#vpp-plan-details .dtc-banner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 56px;
    margin: 0 0 16px;
    padding: 16px 44px 16px 16px;
    background-color: #EDF3FB;
    border: 1px solid #196ECF;
    border-left: 4px solid #196ECF;
    border-radius: 4px;
}

#vpp-plan-details .dtc-banner[hidden] {
    display: none;
}

#vpp-plan-details .dtc-banner-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    line-height: 0;
}

#vpp-plan-details .dtc-banner-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

#vpp-plan-details .dtc-banner-text {
    margin: 0;
    font-family: 'UHC Sans', 'UHCSans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: #323333;
}

/* Mobile: banner box per spec (344 x 176). */
@container plan-details-content (max-width: 744px) {
    #vpp-plan-details .dtc-tooltip {
        left: 0;
        margin-left: 16px;
        max-width: calc(100vw - 32px);
    }

    #vpp-plan-details .dtc-banner {
        max-width: 344px;
        min-height: 176px;
    }
}
/* END -- DTC Header Badge */

.pfny-top-choice-badge {
    width: auto;
    height: 37px;
    background-color: #007000;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    padding-right: 48px;
}

/* White dashed underline on the badge text (matches the DTC/SNP tooltip style). */
.pfny-top-choice-badge .top-choice-badge-text {
    border-bottom: 1.5px solid transparent;
    border-image: repeating-linear-gradient(to right, #FFFFFF 0 4px, transparent 4px 8px) 0 0 1 0;
    margin-right: 1.5em !important;
    padding-right: 0px !important;
    margin-left: 1.5em !important;
    padding-left: 0px !important;
}

/* END -- PFNY Header Badge */
