/**
   ToDo: перенести в компоненты
 */
.modal {
    display: block;
    position: fixed;
    overflow: hidden;
    overflow-y: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
}

.modal > .container {
    margin: 30px auto;
    display: inline-block;
}

.modal > .container:after {
    content: "";
    display: table;
    clear: both;
}

.modal .window {
    display: block;
    min-width: 320px;
    max-width: 630px;
    width: 630px;
    background: #fff;
    position: relative;
    margin: 0 10px;
    box-sizing: border-box;
    padding: 20px;
    float: left;
}

.modal .window .caption {
    display: block;
    font-weight: bold;
    font-size: 13px;
    overflow: hidden;
    margin-bottom: 10px;
}

.modal .window .caption > span {
    float: left;
}

.modal .window .caption > .close {
    float: right;
    cursor: pointer;
    color: #000;
}

.modal .window .caption > .close:hover {
    color: #f47c5e;
}

.modal .window .caption > .close:before {
    content: "\f00d";
    font-family: FontAwesome;
}

.modal .window .alerts .alert {
    display: block;
    background: #e0e8eb;
    color: #22637f;
    margin: 5px 0;
    padding: 7px 10px;
    text-align: justify;
    border-radius: 2px;
}

.modal > .attention {
    display: flex;
    align-items: center;
    margin: 0;
}

.modal > .attention .window {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #7ab4d1;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 35px 10px 10px;
    text-transform: uppercase;
    border-top: solid #fff 2px;
    border-bottom: solid #fff 2px;
}

.modal > .attention.error .window {
    background: #c73d42;
}

.modal > .attention .window span.title {
    display: inline-block;
    margin-bottom: 25px;
}

.modal > .attention .window span.title:before {
    content: '';
    display: inline-block;
    background: no-repeat 50% 0;
    background-size: contain;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    margin-bottom: 5px;
    background-image: url(images/svg/success_color-white.svg);
}

.modal > .attention.error .window span.title:before {
    background-image: url(images/svg/error_color-white.svg);
}

.modal > .attention .window .close {
    cursor: pointer;
    position: absolute;
    right: 0;
    border: solid #fff 2px;
    border-right: none;
    border-bottom-color: #7ab4d1;
    height: 40px;
    width: 40px;
    border-top-left-radius: 20px;
    transition: .2s;
    margin-top: -79px;
    background: #7ab4d1;
    font-size: 18px;
    line-height: 40px;
}

.modal > .attention.error .window .close {
    background: #c73d42;
    border-bottom-color: #c73d42;
}

.modal > .attention .window .close:before {
    content: "\f00d";
    font-family: FontAwesome;
    margin-left: 2px;
}

.modal > .attention .window .message {
    max-width: 90%;
    border-top: solid #fff 1px;
    margin: 0 auto 20px;
    padding-top: 20px;
    text-transform: none;
}





@media screen and (max-width: 1300px) {
    .modal > .container .window {
        display: none;
    }

    .modal > .container .window:first-child {
        display: block;
    }
}