.modal-overlay * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

}

.modal-overlay *:before,
.modal-overlay *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    overflow: auto;
    z-index: 999;
    transition: .4s all;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.modal-overlay_visible {
    opacity: 1;
    visibility: visible;
}

.modal-table {
    display: table;
    width: 100%;
    height: 100%;
}

.modal-table-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 0 15px;
}

.modal {
    transition: .4s all;
    display: inline-block;
    padding: 18px 44px 20px 30px;
    max-width: 400px;
    width: 100%;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .25);
    color: #333;
    text-align: left;
    font-family: Arial;
    margin: 30px 0;
    transform: translate(0, 20%);
    position: relative;
    border-radius: 4px 6px 4px 4px;
    cursor: auto;
    font-size: 16px;
    Z-index:1000;
}

.modal-overlay_visible .modal {
    transform: translate(0);
}

.modal__header {
    font-size: 22px;
    font-weight: 400;
    padding: 0 0 30px 0;
}

.modal__close {
    position: absolute;
    right: 10px;
    top: 0;
    background: #ffdb50;
    width: 25px;
    height: 25px;
    border-radius: 0 0 4px 4px;
    transition: .4s all;
}

.modal__close:hover {
    background: #1b1b1b;
    cursor: pointer;
}

.modal__close:before,
.modal__close:after {
    content: "";
    display: block;
    height: 16px;
    width: 2px;
    transform: rotate(45deg);
    background: #fff;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
}

.modal__close:after {
    transform: rotate(-45deg);
}