.modal-widget-turagent-overlay {
    background-color: rgba(0,0,0,.6);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    z-index: 10;
}

html.widget-turagent-open .modal-widget-turagent-overlay {
    display: block;
}

.modal-window.modal-widget-turagent {
    z-index: 1200;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    padding: 50px 0;
}

.modal-widget-turagent.open {
    display: block;
}

.modal-widget-turagent-main {
    background-color: #ebebeb;
    -webkit-box-shadow: inset 0px 1px 0px 0px rgba(239, 239, 239, 0.004);
    box-shadow: inset 0px 1px 0px 0px rgba(239, 239, 239, 0.004);
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    z-index: 11;
}

.modal-widget-turagent-header {
    background-color: #fff;
    height: 50px;
    position: relative;
    padding: 0 20px;
    z-index: 1;
}

.modal-widget-turagent-header .close {
    position: absolute;
    right: 17px;
    top: 17px;
    background-image: url(/i/icon-modal-close-15x15.png);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.modal-widget-turagent-body {
    padding: 15px 15px 0;
}

.modal-widget-turagent-footer {
    padding: 15px;
}

.modal-widget-turagent-header .title {
    font-size: 18px;
    line-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 23px;
    font-family: 'apercu_pro_bold';
}

a.modal-widget-turagent-btn {
    background-color: #00a551;
    text-decoration: none;
    color: #fff;
    display: block;
    height: 38px;
    text-align: center;
    line-height: 38px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
}

.modal-widget-turagent-body textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    resize: none;
    border-radius: 3px;
    padding: 10px;
    border: 1px solid #dedede;
    font-size: 12px;
    display: block;
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    html.widget-turagent-open,html.widget-turagent-open body {
        overflow: hidden;
    }
}

@media screen and (max-width: 639px) {
    .modal-window.modal-widget-turagent {
        padding: 0;
    }

    .modal-widget-turagent-main {
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        height: 100%;
    }
}
