/* =========================================================
   Elmed Welcome Popup
   ========================================================= */

.elmed-welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.elmed-welcome-popup.is-visible {
    display: flex;
}

.elmed-welcome-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.elmed-welcome-popup__window {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    animation: elmedWelcomePopupIn 0.25s ease;
}

.elmed-welcome-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.elmed-welcome-popup__close:hover {
    background: #3ec377;
    color: #fff;
}

.elmed-welcome-popup__image-link {
    display: block;
    text-decoration: none;
}

.elmed-welcome-popup__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #f5f7f5;
    overflow: hidden;
}

.elmed-welcome-popup__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

.elmed-welcome-popup__content {
    padding: 30px 34px 34px;
}

.elmed-welcome-popup__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.elmed-welcome-popup__label {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px 10px;
    border-radius: 999px;
    background: rgba(62, 195, 119, 0.14);
    color: #3ec377;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
}

.elmed-welcome-popup__label--city {
    background: rgba(62, 195, 119, 0.14);
    color: #3ec377;
}

.elmed-welcome-popup__title {
    margin: 0 0 14px;
    color: #1f1f1f;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.elmed-welcome-popup__text {
    margin: 0 0 24px;
    color: #555;
    font-size: 16px;
    line-height: 1.55;
}

.elmed-welcome-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 38px;
    border-radius: 999px;
    background: #3ec377;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.2s ease;
}

.elmed-welcome-popup__button,
.elmed-welcome-popup__button:link,
.elmed-welcome-popup__button:visited,
.elmed-welcome-popup__button:hover,
.elmed-welcome-popup__button:active,
.elmed-welcome-popup__button:focus {
    background: #3ec377 !important;
    color: #fff !important;
    border-color: #3ec377 !important;
    text-decoration: none !important;
}

.elmed-welcome-popup__button:hover,
.elmed-welcome-popup__button:active,
.elmed-welcome-popup__button:focus {
    background: #32ad67 !important;
    color: #fff !important;
}

.elmed-welcome-popup__button:hover {
    background: #32ad67;
    color: #fff !important;
}

body.elmed-welcome-popup-open {
    overflow: hidden;
}

@keyframes elmedWelcomePopupIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {
    .elmed-welcome-popup__button,
    .elmed-welcome-popup__button:link,
    .elmed-welcome-popup__button:visited,
    .elmed-welcome-popup__button:hover,
    .elmed-welcome-popup__button:active,
    .elmed-welcome-popup__button:focus {
        background: #3ec377 !important;
        color: #fff !important;
        border-color: #3ec377 !important;
    }
    
    .elmed-welcome-popup {
        padding: 14px;
    }

    .elmed-welcome-popup__window {
        max-width: 100%;
        border-radius: 18px;
    }

    .elmed-welcome-popup__image {
    height: auto;
    max-height: 240px;
    object-fit: contain;
    }

    .elmed-welcome-popup__content {
        padding: 22px 20px 24px;
    }

    .elmed-welcome-popup__title {
        font-size: 21px;
    }

    .elmed-welcome-popup__text {
        font-size: 15px;
        line-height: 1.45;
    }

    .elmed-welcome-popup__button {
        width: 100%;
    }
}