/* ===== BANNER CONTAINER ===== */
/* Sticky outer container with full-width background + shadow */
#vpp-plan-details .sticky-progress-banner-container:not(:empty) {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: #E5F8FB;
    box-shadow: 0px 6px 12px 0px #00000026;
    height: 78px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Keep planSide sticky content below banner on desktop */
#vpp-plan-details .sticky-progress-banner-container:not(:empty) ~ .wrapNoPad .planSide {
    top: 116px;
}

/* ===== BANNER MOUNT & WRAPPER ===== */
/* Inner mount — inherits max-width: 1272px; margin: 0 auto from parent */
#vpp-plan-details #sticky-progress-banner-mount {
    position: relative;
    z-index: 999;
    width: 100%;
}

/* Inner layout wrapper */
#vpp-plan-details .sticky-banner {
    width: min(100%, 738px);
    max-width: 738px;
    margin-left: auto;
    margin-right: auto;
    height: 78px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* ===== GRID TRACK LAYOUT ===== */
#vpp-plan-details .sticky-banner-track {
    width: 100%;
    height: 52px;
    display: grid;
    grid-template-columns: 16px 1fr 16px 1fr 16px;
    grid-template-rows: 16px auto;
    row-gap: 4px;
    align-items: center;
    justify-items: center;
}

#vpp-plan-details .sticky-banner-dot-row {
    align-self: center;
}

/* ===== DESKTOP STYLES (min-width: 1001px) ===== */
@container plan-details-content (min-width: 1001px) {
    /* Track grid for desktop */
    #vpp-plan-details .sticky-banner-track {
        grid-template-columns: 25px 1fr 25px 1fr 16px;
        row-gap: 10px;
    }
    /* Larger dots */
    #vpp-plan-details .sticky-banner-dot {
        width: 25px;
        height: 25px;
    }
}

/* ===== DOT STYLING ===== */
/* Base dot styles */
#vpp-plan-details .sticky-banner-dot {
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Completed step: white background, blue border, blue checkmark */
#vpp-plan-details .sticky-banner-dot-completed {
    background: #fff;
    border: 2px solid #196ECF;
}

/* Current/active step: filled blue background, blue border, white number */
#vpp-plan-details .sticky-banner-dot-current {
    background: #196ECF;
    border: 2px solid #196ECF;
}

#vpp-plan-details .sticky-banner-dot-pending {
    background: #fff;
    border: 2px solid #323333;
}

/* ===== DOT CONTENT (CHECK & NUMBER) ===== */
#vpp-plan-details .dot-check {
    font-size: 13px;
    font-weight: 700;
    color: #196ECF;
    line-height: 1;
}

/* Number inside dots */
#vpp-plan-details .dot-number {
    font-size: 13px;
    font-weight: 700;
    color: #323333;
    line-height: 1;
}

#vpp-plan-details .sticky-banner-dot-current .dot-number {
    color: #fff;
}

/* ===== CONNECTING LINES ===== */
#vpp-plan-details .sticky-banner-line {
    height: 2px;
    width: 100%;
    background: #7D7F81;
}

/* Blue line when connecting to completed step */
#vpp-plan-details .sticky-banner-line.blue {
    background: #196ECF;
}

/* ===== LABEL ===== */
#vpp-plan-details .sticky-banner-label {
    font: 700 16px 'UHCSans', Arial, sans-serif;
    color: #323333;
    white-space: nowrap;
    width: max-content;
}

/* ===== CTA BUTTON (Add Doctors & Drugs) ===== */
#vpp-plan-details .sticky-banner-cta {
    background: #fff;
    color: #196ECF;
    border: 2px solid #196ECF;
    border-radius: 999px;
    font: 700 16px 'UHCSans', Arial, sans-serif;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 28px;
    width: auto;
    gap: 4px;
    font-weight: 700 !important;
}

#vpp-plan-details .sticky-banner-cta:hover {
    text-decoration: none;
    color: #0D4D8B;
}

/* CTA text variants — default to desktop */
#vpp-plan-details .sticky-banner-cta-text-desktop {
    display: inline;
}

#vpp-plan-details .sticky-banner-cta-text-mobile {
    display: none;
}

/* ===== ENROLL BUTTON ===== */
#vpp-plan-details .sticky-banner-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 28px;
    background: #D14600;
    color: #fff;
    border: none;
    border-radius: 999px;
    font: 700 16px 'UHCSans', Arial, sans-serif;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    padding: 0 16px;
}

#vpp-plan-details .sticky-banner-enroll:hover {
    background: #A83E00;
}

#vpp-plan-details .sticky-banner-enroll-text {
    font: 700 16px 'UHCSans', Arial, sans-serif;
}

/* ===== MOBILE STYLES (max-width: 1000px) ===== */
@container plan-details-content (max-width: 1000px) {
    /* The dock supplies the visible header edge; without it, keep the existing offsets. */
    #vpp-plan-details .sticky-progress-banner-container:not(:empty) {
        top: var(--ai-companion-visible-header-bottom, 104px);
        box-shadow: 0px 0px 12px 0px #0000001A;
    }
    #vpp-plan-details .sticky-progress-banner-container:not(:empty) ~ .wrapNoPad .mobileNav {
        top: calc(var(--ai-companion-visible-header-bottom, 104px) + 76px);
    }

    /* The client removes the banner container when the progress banner is disabled. */
    body:has(#ai-companion-dock-placeholder:not(:empty)) #vpp-plan-details:not(:has(.sticky-progress-banner-container:not(:empty))) .mobileNav {
        top: var(--ai-companion-visible-header-bottom, 0px);
    }

    /* Dots: mobile styling */
    #vpp-plan-details .sticky-banner-dot-completed {
        background: #196ECF;
        border: none;
    }
    #vpp-plan-details .sticky-banner-dot-current {
        background: #fff;
        border: 2px solid #196ECF;
    }
    #vpp-plan-details .sticky-banner-dot-pending {
        background: #323333;
        border: none;
    }

    /* Hide numbers and checkmarks on mobile */
    #vpp-plan-details .dot-check,
    #vpp-plan-details .dot-number {
        display: none;
    }

    /* CTA text: show mobile, hide desktop */
    #vpp-plan-details .sticky-banner-cta-text-desktop {
        display: none;
    }
    #vpp-plan-details .sticky-banner-cta-text-mobile {
        display: inline;
    }

    /* Spacing adjustments */
    #vpp-plan-details .sticky-banner-track > .sticky-banner-dot:nth-of-type(3) {
        margin-right: 16px;
    }
    #vpp-plan-details .sticky-banner-enroll {
        margin-right: 16px;
    }
    #vpp-plan-details .sticky-banner-dot {
        width: 16px;
        height: 16px;
    }
}

/* Hide sticky banner on print */
@media print {
    .sticky-progress-banner-container,
    #sticky-progress-banner-mount,
    .sticky-banner {
        display: none !important;
    }
}

#vpp-plan-details .sticky-progress-banner-container:empty {
    display: none;
}