.chat_button {
    border: none;
    z-index: 1000;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: fixed;
    right: 15px;
    bottom: 15px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: #1C3F77;
    -webkit-box-shadow: 0px 0px 14px 2px rgba(38, 68, 112, 0.44);
    box-shadow: 0px 0px 14px 2px rgba(38, 68, 112, 0.44);
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
    opacity: 0;
    -webkit-transform: translateX(50px);
    -ms-transform: translateX(50px);
    transform: translateX(50px);
}

.chat_button_anchor_active {
    bottom: 80px;
}

.chat_button_active {
    opacity: 1;
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
    -webkit-transform: translateX(0px);
    -ms-transform: translateX(0px);
    transform: translateX(0px);
}

.chat_button:hover {
    background-color: #406aad;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}

.hide {
    display: none;
}

@media (max-width: 767px) {
    .chat_button_anchor_active {
        bottom: 70px;
    }

    .chat_button {
        height: 40px;
        width: 40px;
    }
}

@media (min-width: 577px) {
    .chat_body {
        z-index: 1000;
        position: fixed;
        right: 95px;
        bottom: 15px;
        width: 400px;

    }

    .chat_header {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        background: #1C3F77
    }

    .messages_block {
        height: 500px
    }
}

@media (max-width: 576px) {
    .chat_body {
        z-index: 1000;
        position: fixed;
        height: 100%;
        width: 100%;
    }

    .chat_header {
        background: #1C3F77
    }

    .height_576px {
        height: auto;
        min-height: 100%;
        max-height: 0;
    }

    .messages_block {
        height: auto;
        min-height: 100%;
        max-height: 0;
    }

}