/* Health-insurance promo popup (see /js/popup-salut.js) */

html.popup-salut-open {
    overflow: hidden;
}

/* ---- Overlay ---------------------------------------------------------- */
.popup-salut {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
}

    /* Required: display:flex above would otherwise override the hidden attribute. */
    .popup-salut[hidden] {
        display: none;
    }

/* ---- Dialog: image left, content right --------------------------------- */
.popup-salut__dialog {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 740px;
    max-height: calc(100vh - 32px);
    background: #fff;
    border: 2px solid #c00000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-salut__media {
    flex: 0 0 35%;
    overflow: hidden;
}

.popup-salut__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-salut__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 28px;
    color: #222;
    text-align: left;
}

.popup-salut__title {
    margin: 0 0 18px;
    padding-right: 32px; /* keeps the title clear of the close button */
    color: #c00000;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.popup-salut__list {
    margin: 0 0 22px;
    padding-left: 20px;
    list-style: disc;
}

    .popup-salut__list li {
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.4;
    }

        .popup-salut__list li:last-child {
            margin-bottom: 0;
        }

/* ---- Call to action --------------------------------------------------- */
.popup-salut__link {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 22px;
    background: #c00000;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

    .popup-salut__link:hover,
    .popup-salut__link:focus {
        background: #900000;
        color: #fff;
        text-decoration: none;
    }

    .popup-salut__link:focus-visible {
        outline: 3px solid #c00000;
        outline-offset: 3px;
    }

/* ---- Close button ------------------------------------------------------ */
.popup-salut__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 32px;
    height: 32px;
    border:none;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

  
    .popup-salut__close:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 2px;
        box-shadow: 0 0 0 6px #1a1a1a;
    }

/* ---- Mobile: stack image above content --------------------------------- */
@media (max-width: 600px) {
    .popup-salut__dialog {
        flex-direction: column;
    }

    .popup-salut__media {
        flex: 0 0 140px;
    }

    .popup-salut__body {
        padding: 20px;
    }

    .popup-salut__title {
        font-size: 19px;
    }
}
