.modal-box {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 99;
}
body.modal-open .modal-box.modal-active {
    display: block;
}
.modal-box .modal-bk {
    background: rgba(0,0,0,0.8);
    position: fixed;
    cursor: pointer;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}
.modal-box .modal-bk i {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 25px;
}

.modal-box .modal,
.modal-box .modal_link {
    position: fixed;
    background: url('/img/popup.png') no-repeat;
    background-size: 100% 100%;
    border-radius: 3px;
    padding: 50px 50px 30px;
    margin-left: 50%;
    top: 20%;
    width: 200px;
    left: -100px;
    z-index: 100;
}
.modal-box .modal_link {
    padding: 0;
    width: 80%;
    left: -40%;
}
.modal-box .modal_link a {
    font-size: 16px;
    font-weight: 600;
    color: #4d4d4d;
    display: block;
    text-align: center;
    padding: 20px;
    border-bottom: solid 1px #f3f3f3;
    text-decoration: none;
}
.modal-box .modal_link a:last-child {
    border: none;
}
.modal-box .modal_link a:hover {
    color: #f0c140;
}
.modal-box .modal .modal-title {
    color: #292c2e;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
}
.modal-box .modal .modal-title-payment {
    color: #292c2e;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.5;
}
.modal-box .modal .modal-error-icon {
    font-size: 4rem;
    margin: 1rem auto 2rem;
    display: block;
    text-align: center;
    color: #fd3c53;
}
.modal-box .modal p {
    color: #6f7077;
    line-height: 1.71;
    font-size: 14px;
    font-weight: 600;   
}
.modal-box .modal .button {
    margin: 1.5rem 0 2rem;
    text-transform: uppercase;
}
.modal-box .modal a.link {
    text-decoration: underline;
    font-weight: 600;
    display: block;
}
.modal-box .modal.modal-1 {
    width: 300px;
    left: -150px;
}
.modal-box .modal.modal-2 {
    width: 500px;
    left: -250px;
}
.modal-box .modal.modal-3 {
    width: 630px;
    left: -315px;
}
.modal-box .modal.modal-4 {
    width: 1020px;
    left: -510px;
}

.modal .submit {
    padding: 0;
}

/* Small */
@media (max-width:640px) {
    .modal-box .modal {
        left: 0 !important;
        width: auto !important;
        margin-left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        overflow: auto;
        padding: 30px;
    }
    .modal .submit {
        padding: 10px;
    }
    .modal form {
        padding: 0;
    }
    .modal .submit .back {
        display: block;
        position: fixed;
        top: -20px;
        right: -40px;
        overflow: hidden;
        height: 20px;
        width: 20px;
        text-indent: 2000px;
        z-index: 1;
    }
    .modal .submit .back::before {
        font-family: "Font Awesome 5 Pro";
        content: "\f00d";
        position: absolute;
        top: -7px;
        right: 4px;
        font-size: 25px;
        font-weight: 300;
    }
}