.chat-container, .chat-container * {
    box-sizing:content-box;
}
.chat-ico_container {
    cursor: pointer;
    position: fixed;
    bottom: 195px;
    right: -100px;
    z-index: 500;
    box-shadow: -2px -1px 2px 0 rgba(0,0,0,.2);
    display: flex;
    flex-wrap: nowrap;
    padding-left: 0;
    height: 0px;
    transition: all 1s ease;
}
.chat-ico-img {
    height: 70px;
    width: 70px;
    transform: scale(1);
    transition: all .2s ease-in-out;
    display: inline-block;
    border-radius: 120px;
    overflow: hidden;
    z-index: 10;
    top: 0;
    left: 0;
    border: 2px solid #2f88c8;
    box-sizing: border-box;
    box-shadow: 0 0 78px -20px rgba(6,42,74,.46);
}
.chat-ico-img .photo {
    width: 100%;
    position: relative;
    left: 0;
    top: 0;
}
.chat-ico_text {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 17px;
    background-color: #00b63e;
    color: #fff;
    display: inline-block;
    height: 20px;
    padding: 12px 9px 8px 3px;
    line-height: 1;
}
.chat-container {
    font-family: 'Arial', sans-serif;
    width: 273px;
    height: 350px;
    border: 2px solid #ffffff;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .95);
    position: fixed;
    bottom: 200px;
    right: 40px;
    z-index: 100000;
    box-shadow: 0 0 78px -5px rgba(6,42,74,.6);
}
.chat-container .chat-header {
    width: auto;
    position: relative;
    top: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 6px 10px 7px 10px;
    height: 44px;
    border-bottom: 1px solid #e6e6e6;
    box-sizing: content-box;
}
.chat-header_photo-container {
    width: 40px;
    height: 40px;
    border: 2px solid #00FF00;
    border-radius: 30px;
    display: inline-block;
    overflow: hidden;
    z-index: 10;
}
.chat-header_photo-container .photo {
    width: 200%;
    position: relative;
    left: -22px;
    top: 0;
}
.photo-container_online-ico {
    position: absolute;
    top: 6px;
    left: 42px;
    width: 8px;
    height: 8px;
    border: 2px solid #00FF00;
    border-radius: 12px;
    background-color: #00FF00;
    z-index: 20;
}
.chat-header_name-container {
    color: #3a4954;
    display: inline-block;
    position: absolute;
    top: 11px;
    left: 18px;
    line-height: 15px;
}

.name-container_position {
    font-size: 11px;
    line-height: 12px;
    margin-top: 2px;
}

.name-container_name, .name-container_family {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    line-height: 18px;
}
.chat-header_button-container {
    float: right;
    color: #1778eb;
    font-size: 20px;
    position: relative;
    top: -1px;
    right: -3px;
    padding: 11px 8px;
    height: 100%;
    box-sizing: border-box;
}
.chat-header_button-container:hover {
    color: #3056a7;
}
.chat-container .chat-content {
    overflow: hidden;
}
.chat-content_title {
    color: #4d4d4d;
    padding: 25px 25px 15px;
    text-align: center;
    font-size: 17px;
}
.chat-content_tel-input{
    padding: 0;
}
#chat-tel-input {
    border: 1px solid #007be1;
    border-radius: 12px;
    width: 95%;
    margin: 0;
    padding: 2%;
    height: 26px;
    font-size: 14px;
}
.chat-content_button-enter {
    padding: 10px 0 0;
}
.chat-content_button-enter .submit-chat {
    width: 100%;
    height: 34px;
    border: 0;
    border-radius: 12px;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #007be1;
    font-size: 14px;
}
.chat-content_button-enter .submit-chat:hover {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.2);
    background: #3056a7;
}
.chat-content_input-message-container {
    padding: 0 10px;
    position: static;
    bottom: 10px;
    width: 253px;
}
.chat-content_input {
    font-size: 13px;
}
#input-message {
    border: 1px solid #1577eb;
    border-radius: 12px;
    width: 95%;
    margin: 0;
    padding: 2%;
    height: 26px;
    background: #fff;
    padding-left: 10px;
}
.fa-arrow-circle-up {
    color: #1577eb;
    font-size: 33px;
}
.input-message_arrow-img {
    position: absolute;
    width: 32px;
    right: 16px;
    top: 3px;
    font-size: 33px;
}
.input-message_writing-img-container {
    overflow: hidden;
    position: relative;
    width: 36px;
    left: 10px;
    bottom: -14px;
    vertical-align: unset;
    display: inline-block;
}
.input-message_writing-img {
    position: relative;
    left: -13px;
    vertical-align: unset;
}
.input-message_writing-message {
    position: relative;
    left: 14px;
    bottom: 3px;
    font-size: 13px;
    color: #999;
    display: inline-block;
    vertical-align: unset;
}
.chat-content_message-container {
    position: absolute;
    width: 100%;
    overflow: auto;
    height: 282px;
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: 0;
    box-sizing: border-box;
}
.message-container_message {
    width: calc(100% - 40px);
    background-color: #e6e6e6;
    color: #232323;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 14px;
    position: relative;
    line-height: 16px;
    margin-top: 10px;
}

.chat-ico-alert {
    width: 20px;
    height: 20px;
    background-color: #ff3b30;
    position: absolute;
    padding: 4px 2px 4px 7px;
    border-radius: 30px;
    z-index: 501;
    box-sizing: border-box;
    font-size: 12px;
    color: #fff;
    right: 4px;
    top: 4px;
    display: none;
    line-height: 1;
}
.chat-header_img {
    width: 42px;
    position: relative;
    border-radius: 60px;
    left: 0;
    display: none;
}
.message-container_consult-message {
    left: 10px;
    width: calc(100% - 40px);
    color: #fff;
    text-align: center;
    cursor: pointer;

    background: #0076f3; /* Old browsers */
    background: -moz-linear-gradient(-30deg, #0076f3 0%, #3056a7 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(-30deg, #0076f3 0%,#3056a7 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(150deg, #0076f3 0%,#3056a7 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#93f9b9', endColorstr='#28D095',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
    background-size: 400% 400% !important;

    -webkit-animation: chat-button__gradient 2s infinite forwards;
    -moz-animation: chat-button__gradient 2s infinite forwards;
    -o-animation: chat-button__gradient 2s infinite forwards;
    animation: chat-button__gradient 2s infinite forwards;
}
.message-container_consult-message:hover {
    background: #3056a7;
}
.input-message-container_animation-container {
    position: absolute;
    bottom: -3px;
    box-sizing: border-box;
}
.message-container_tel-form {
    background: 0;
    width: auto;
    padding: 10px;
}
.button-not-active {
    background: #ccc;
    cursor: auto;
}
.button-not-active:hover {
    background: #ccc;
}
.message-container_choice {
    left: 10px;
}
.message-tel {
    font-weight: 700;
    color: #0074fc;
}
.message-tel_mob {
    display: none;
}
.message-container_alert-message {
    text-align: left;
    margin-top: 10px;
    color: #c10000;
    line-height: 1.2;
}
.message-container_success-message {
    text-align: left;
    margin-top: 10px;
    color: #16940a;
    line-height: 1.2;
}
.stop-scrolling {
    height: 100%;
    overflow: hidden;
}
.chat-sm {
    position: fixed;
    right: 10px;
    bottom: 200px;
    z-index: 5000;
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    box-sizing: border-box;
    border: 1px solid #008ff0;
    text-align: center;
    font-family: Arial,sans-serif;
    box-shadow: -2px -1px 24px -2px rgba(0,0,0,.2);
    max-width: 330px;
    overflow: hidden;
}
.chat-sm__title {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 23px;
    display: block;
    text-align: left;
    line-height: 1.2;
}
.chat-sm__button {
    padding: 0;
    border-radius: 6px;
    color: #fff;
    background-color: #007bf5;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: 400;
    cursor: pointer;
    font-size: 17px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    line-height: 44px;
}
.chat-sm__button:hover {
    background-color: #3056a7;
    color: #fff;
}
.chat-sm__close {
    text-decoration: underline;
    color: #007bf5;
    cursor: pointer;
    font-size: 15px;
}

.chat-lg {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 5000;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-sizing: border-box;
    border: 1px solid #008ff0;
    text-align: center;
    font-family: Arial,sans-serif;
    box-shadow: -2px -1px 24px -2px rgba(0,0,0,.2);
    max-width: 330px;
    height: calc(100% - 20px);
    overflow: hidden;
}
.chat-lg__title {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 23px;
    display: block;
    text-align: left;
    line-height: 1.2;
}
.chat-lg__button {
    padding: 0;
    border: 1px solid #007bf5;
    border-radius: 6px;
    color: #007bf5;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: 400;
    cursor: pointer;
    font-size: 17px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    line-height: 44px;
}
.chat-lg__button_consult {
    background-color: rgba(0, 123, 245, .5);
}
.chat-lg__button:hover {
    background-color: #007bf5;
    color: #fff;
}
.chat-lg__subtitle {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.2;
}
.chat-lg__text {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.2;
    margin-top: 40px;
}
.chat-lg__close {
    text-decoration: underline;
    color: #007bf5;
    cursor: pointer;
    font-size: 15px;
    position: absolute;
    bottom: 15px;
    left: calc(50% - 43px);
}
.chat-lg .chat-content_tel-input #chat-tel-input {
    border-radius: 6px;
    padding: 5px 12px 5px 20px;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    font-size: 15px;
}
.chat-lg .chat-content_button-enter .submit-chat {
    border-radius: 6px;
    height: 44px;
    font-size: 17px;
}

@media screen and (max-width: 1024px) {
    .chat-ico_container {
        bottom: 180px;
    }
    .chat-ico-img {
        height: 65px;
        width: 65px;
    }
    .chat-container {
        bottom: 0;
        right: 0;
        z-index: 5000;
    }
    .chat-ico-alert {
        right: 5px;
        top: 3px;
    }
    .chat-sm {
        bottom: 180px;
    }
}
@media screen and (max-width: 768px) {
    .chat-container {
        right: 0;
    }
}
@media all and (max-width: 450px) {
    .chat-container {
        z-index: 100000;
        background-color: rgba(255,255,255,.97);
    }
    .chat-container-open {
        box-sizing: border-box;
        z-index: 100000;
        border-radius: 0;
        border: 0;
        margin: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
    .chat-content_input-message-container {
        width: 100%;
        box-sizing: border-box;
    }
    #input-message {
        width: 100%;
        padding: 2%;
        height: 38px;
        box-sizing: border-box;
    }
    .chat-content_message-container {
        height: calc(100% - 70px);
    }
    .chat-header_img {
        display: inline-block;
    }
    .message-container_message {
        width: calc(100% - 46px);
        padding: 13px 13px;
        font-size: 15px;
        line-height: 18px;
    }
    .chat-header_name-container {
        top: 10px;
        left: 65px;
    }
    .chat-ico_container {
        bottom: 170px;
    }
    .chat-ico-img {
        height: 60px;
        width: 60px;
    }
    .chat-ico-alert {
        right: 3px;
        top: 1px;
    }
    .message-container_tel-form {
        width: calc(100% - 26px);
    }
    #chat-tel-input {
        box-sizing: border-box;
        height: 43px;
        width: 100%;
    }
    .chat-content_button-enter .submit-chat {
        height: 43px;
    }
    .message-tel {
        display: none;
    }
    .message-tel_mob {
        display: inline-block;
        font-weight: 700;
        color: #0074fc;
    }
    .chat-content {
        height: 100%;
    }

    .chat-lg {
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        max-width: none;
    }
    .chat-lg__title {
        max-width: none;
        font-size: 21px;
    }
    .chat-lg__text {
        margin-top: 30px;
    }
    .chat-sm {
        width: calc(100% - 20px);
        max-width: none;
    }
    .chat-sm__title {
        text-align: center;
        font-size: 21px;
    }
}


@-webkit-keyframes chat-button__gradient {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}
@-moz-keyframes chat-button__gradient {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}
@-o-keyframes chat-button__gradient {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}
@keyframes chat-button__gradient {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}
