.modalpopup {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 9999999;
}

.modalpopup .modal_btn {
    background: transparent;
    padding: 0px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modalpopup .modal_btn:hover {
    background: #7b8d8f;
}

.modalpopup .modal_box {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
}

.modalpopup .modal_box .modal_bg_shadow {
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.modalpopup .modal_box .modal_box_wrap {
    width: 550px;
    max-width: 75%;
    height: auto;
    background: transparent;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.modalpopup .modal_box .modal_box_wrap .modal_close {
    position: absolute;
    top: -10px;
    right: 0px;
    width: 30px;
    height: 30px;
    background: #363d4e;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
}

.modalpopup .modal_box .modal_box_wrap .modal_close:before,
.modalpopup .modal_box .modal_box_wrap .modal_close:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 8px;
    width: 15px;
    height: 2px;
    background: #fff;
}

.modalpopup .modal_box .modal_box_wrap .modal_close:before {
    transform: rotate(45deg);
}

.modalpopup .modal_box .modal_box_wrap .modal_close:after {
    transform: rotate(130deg);
}

.modalpopup .modal_box .modal_box_wrap .modal_header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
    font-size: 22px;
}

.modalpopup .modal_box .modal_box_wrap .modal_body {
    padding: 0px;
    border-bottom: 0px solid #e0e0e0;
    height: calc(250px - 120px);
    font-size: 14px;
    line-height: 21px;
}

.modalpopup .modal_box .modal_box_wrap .modal_body img {
    max-width: 100%;
}

.modalpopup .modal_box .modal_box_wrap .modal_footer {
    padding: 0px;
    height: auto;
}

.modalpopup .modal_footer .modal_btn_grp {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.modalpopup .modal_footer .modal_btn_grp .btn {
    width: 100px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.modalpopup .modal_footer .modal_btn_grp .btn.btn_confirm {
    margin-left: 10px;
    background: #363d4e;
    color: #fff;
}

.modalpopup .modal_footer .modal_btn_grp .btn.btn_cancel {
    border: 1px solid #363d4e;
    color: #363d4e;
}

.modalpopup .modal_footer .modal_btn_grp .btn.btn_cancel:hover {
    background: #363d4e;
    color: #fff;
}

.modalpopup .modal_footer .modal_btn_grp .btn:hover {
    background: #7b8d8f;
}

.modalpopup .modal_box.active {
    display: block;
}