button.btnPopup {
    width: 150px;
    display: block;
    margin: -25px 0 0 -75px;
    padding: 1em 0;
    position: absolute;
    top: 50%;
    left: 50%;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
}

.modal-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    z-index: 10000;
    pointer-events: none;
}

.modal-wrapper.open {
    opacity: 1;
    visibility: visible;
}

.modal-custom {
    width: 400px;
    display: block;
    position: relative;
    top: 5%;
    left: calc(100% + 200px);
    transform: translateX(-50%);
    background: #fff;
    opacity: 0;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    pointer-events: all;
}

.modal-custom .head {
    width: 100%;
    padding: 5px 4px 0 12px;
    overflow: hidden;
    background: #fff;
}

.modal-wrapper.open .modal-custom {
    opacity: 1;
    left: calc(100% - 230px);
    box-shadow: 0 0px 8px 1px rgba(0,0,0,.2);
}

.btnPopup-close {
    display: flex;
    justify-content: flex-end;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    margin-left: auto;
}

.btnPopup-close svg {
    width: 32px;
    height: 32px;
}

.btnPopup-close svg path {
    fill: #bfbfbf;
}

.modal-custom .content {
    padding: 0 3% 5% 3%;
    background-color: #fff;
}

.modal-custom p {
    margin: 0;
}

@media (max-width: 767px) {
    .modal-wrapper.open .modal-custom {
        left: calc(100% - 160px);
    }
    .modal-custom {
        width: 280px;
    }
}