body::after {
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 149;
}
.popup-show body::after {
    opacity: 1;
}
.lock {
    overflow: hidden;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.popup.popup_show {
    z-index: 150;
    visibility: visible;
    overflow: auto;
    pointer-events: auto;
    transform: scale(1);
}
.popup.popup_show>.popup__wrapper>.popup__content {
    visibility: visible;
}
.popup__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
}
.popup__content {
    position: relative;
    visibility: hidden;
    width: 100%;
    max-width: 100%;
}

.popup__close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../../images/icon_close.png) center no-repeat;
    cursor: pointer;
}

.popup__close:hover {
    opacity: 0.6;
}
