.modal_window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
	display: none;
	transition: background-color .3s ease;
}
.modal_window.modal_window_active {
	background-color: rgb(0 0 0 / 50%);
}
.modal_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.modal_block {
    background-color: #fff;
    padding: 35px 40px;
    min-width: 350px;
    max-width: 650px;
    right: -100%;
    position: relative;
    opacity: 0;
}
#modal_cart .modal_block {
    max-width: 800px;
}
.modal_head {margin-bottom: 48px;font-size: 30px;line-height: 130%;
/* identical to box height, or 39px */text-align: center;letter-spacing: 0.02em;text-transform: uppercase;

/* Main Black */color: #141414;}

.modal_closet {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .3s ease;
    font-size: 20px;
}

.modal_closet:hover {
    color: #887cbf;
}
.modal_body form input, .modal_body form textarea {
    width: 100%;
    margin-bottom: 12px;
    max-width: 350px;
    display: block;
}

.modal_body .button, .modal_body .button_border {
    padding: 19px 15px;
}
.error .modal_block {
    background-color: rgb(255 247 247);
    border: solid 1px rgb(255 176 176);
    font-size: 14px;
    color: #f00;
    line-height: 20px;
}

.error .modal_block ul li:not(:last-child) {
    margin-bottom: 8px;
}
.oki .modal_block {
    background-color: rgb(227 255 232);
    border: solid 1px #8bd08d;
    font-size: 14px;
    color: #46a749;
    text-align: center;
    line-height: 20px;
}
#modal_cart .modal_wrap {
    align-items: flex-end;
    justify-content: flex-end;
}

#modal_cart .modal_block {
    width: 550px;
	min-height: 500px;
    padding: 50px 40px 35px;
}
