.tchat__wrap {
    position: relative;
    z-index: 1;
}
.tchat {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    padding-bottom: 40px;
}
.tchat_started {
    padding-bottom: 80px;
}
.tchat__message-avatar img,
.tchat__transition-avatar img{
    display: block;
    max-width: 100%;
}

.tchat__message-avatar_round {
    border-radius: 50%;
    overflow: hidden;
}

.tchat__content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    position: relative;
}
.tchat__messages {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: calc(calc(var(--vh, 1vh) * 100) - 150px);
  margin-top: 20px;
  margin-bottom: 125px;
  padding-left: 100px;
  padding-right: 100px;
  transition: 0.3s;
  overflow-x: hidden;
  overflow-y: auto;
}
.tchat_started .tchat__messages {
  height: calc(calc(var(--vh, 1vh) * 100) - 500px);
}

.tchat__messages > * {
  max-width: 600px;
  margin-left: auto!important;
  margin-right: auto!important;
}

.tchat-actions {
    -webkit-transition: 0.4s 0.6s;
    -o-transition: 0.4s 0.6s;
    transition: 0.4s 0.6s;
    -webkit-transition: opacity 0.1s, -webkit-transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    transition: opacity 0.1s, -webkit-transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    -o-transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.1s;
    transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.1s;
    transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.1s, -webkit-transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: transform, opacity;
    padding: 0 30px;
    position: fixed;
    bottom: 40px;
    right: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px 20px;
}
.tchat__message {
    position: relative;
    margin-bottom: 18px;
    -webkit-transition: opacity 0.1s, -webkit-transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    transition: opacity 0.1s, -webkit-transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    -o-transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.1s;
    transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.1s;
    transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.1s, -webkit-transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: transform, opacity;
}
.tchat__message:last-child {
    margin-bottom: 1px;
}
.tchat__message.is-hidden,
.tchat-actions.is-hidden {
    -webkit-transform: scale(0.1) translateY(15px);
        -ms-transform: scale(0.1) translateY(15px);
            transform: scale(0.1) translateY(15px);
    opacity: 0;
}
.tchat__message_anim {
    -webkit-animation: show-message .4s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
            animation: show-message .4s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}
.tchat__message_left {
    margin-left: 0;
    margin-right: auto;
    -webkit-transform-origin: bottom left;
        -ms-transform-origin: bottom left;
            transform-origin: bottom left;
}
.tchat__message_left.is-hidden {
    -webkit-transform-origin: bottom left;
        -ms-transform-origin: bottom left;
            transform-origin: bottom left;
}
.tchat__message_right {
    margin-right: 0;
    margin-left: auto;
    -webkit-transform-origin: bottom right;
        -ms-transform-origin: bottom right;
            transform-origin: bottom right;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
}
.tchat__message_right.is-hidden {
    -webkit-transform-origin: bottom right;
        -ms-transform-origin: bottom right;
            transform-origin: bottom right;
}
.tchat__message_left_no-style{
    padding: 0;
}

.tchat__message__mobile-line_left,
.tchat__message__mobile-avatar_left {
    display: none;
}

.tchat__message__content__wrap {
    padding: 22px 65px 24px;
    -webkit-transform-origin: bottom;
        -ms-transform-origin: bottom;
            transform-origin: bottom;
    display: inline-block;
}
.tchat__message_left .tchat__message__content__wrap{
    border: 1px solid rgba(255,255,255,0.2);
    -webkit-transform: skewX(-12deg);
        -ms-transform: skewX(-12deg);
            transform: skewX(-12deg);
}
.tchat__message_right .tchat__message__content__wrap{
    background: rgba(255,255,255,0.1);
    -webkit-transform: skewX(12deg);
        -ms-transform: skewX(12deg);
            transform: skewX(12deg);
}
.tchat_inverse .tchat__message_left .tchat__message__content__wrap,
.tchat_inverse .tchat__message__mobile-line_left:after {
    border-color: #ECECEC;
}
.tchat_inverse .tchat__message_left:before {
    background: #ECECEC;
}
.tchat__message__content {
    color: #fff;
    font-size: 16px;
    line-height: 1.578em;
    -webkit-transition: opacity 0.4s 0.25s;
    -o-transition: opacity 0.4s 0.25s;
    transition: opacity 0.4s 0.25s;
}
.tchat__message__content strong {
    font-weight: 500;
}
.tchat__message__content a {
    color: #99CC00;
}
.tchat__message__content a:hover {
    color: #9FD500;
}
.tchat_inverse .tchat__message__content {
    color: #000;
}
.tchat__message.is-hidden .tchat__message__content {
    opacity: 0;
    -webkit-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    transition: opacity 0.4s;
}
.tchat__message_left .tchat__message__content{
    -webkit-transform: skewX(12deg);
        -ms-transform: skewX(12deg);
            transform: skewX(12deg);
}
.tchat__message_right .tchat__message__content{
    -webkit-transform: skewX(-12deg);
        -ms-transform: skewX(-12deg);
            transform: skewX(-12deg);
}
.tchat__message_form .tchat__message__content__wrap {
    padding-top: 40px;
}
.tchat__statuses {
  position: fixed;
  bottom: 6px;
  left: 0;
  width: 100%;
}
.tchat__status {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    z-index: 1;
    -webkit-transition: opacity 0.3s, visability 0.3s;
    -o-transition: opacity 0.3s, visability 0.3s;
    transition: opacity 0.3s, visability 0.3s;
}
.tchat__status.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.tchat__status_left {
    bottom: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
}
.tchat__status_right {
    bottom: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
}
.tchat__status__loader {
    margin-right: 7px;
}
.loader__ball {
    display: inline-block;
    vertical-align: middle;
    width: 6px;
    height: 6px;
    border: 1px solid #BFC4C8;
    border-radius: 50%;
    margin: 0 3px;
}
.loader__ball:first-child {
    -webkit-animation: typing-ball .9s linear infinite;
    animation: typing-ball .9s linear infinite;
}
.loader__ball:nth-child(2) {
    -webkit-animation: typing-ball .9s .225s linear infinite;
    animation: typing-ball .9s .225s linear infinite;
}
.loader__ball:nth-child(3) {
    -webkit-animation: typing-ball .9s .45s linear infinite;
    animation: typing-ball .9s .45s linear infinite;
}
.tchat__status.is-hidden .loader__ball {
    -webkit-animation-play-state: paused;
            animation-play-state: paused;
}
.tchat__status__text {
    font-style: italic;
    font-weight: normal;
    font-size: 14px;
    line-height: 32px;
    color: #fff;
}

.tchat_home__content {
    padding-top: 0;
    /* padding-bottom: 57px; */
}

.tchat_lg_title {
    font-weight: 600;
    font-size: 36px;
    line-height: 1.216em;
}
.tchat_lg_title .emoji {
    width: 48px;
    height: 47px;
}

@media (min-width: 767px){
    .tchat__transition-avatar {
        position: absolute;
        top: 0;
        width: 35px;
        -webkit-transition: -webkit-transform 0.4s;
        transition: -webkit-transform 0.4s;
        -o-transition: transform 0.4s;
        transition: transform 0.4s;
        transition: transform 0.4s, -webkit-transform 0.4s;
        will-change: transform, opacity;
    }
    .tchat__transition-avatar.is-hidden {
        opacity: 0;
        visibility: hidden;
    }
    .tchat__transition-avatar_left {
        left: 1px;
    }
    .tchat__transition-avatar_right {
        right: 1px;
    }
    .tchat__transition-avatar_right .emoji {
        width: 35px;
        height: 35px;
    }
    .tchat-with-hr-img .tchat__transition-avatar_left {
        border-radius: 50%;
        overflow: hidden;
    }
    .tchat__message-avatar .emoji{
        width: 55px;
        height: 55px;
    }
    .tchat__message-avatar {
        position: absolute;
        bottom: 50%;
        width: 55px;
    }
    .tchat__message-avatar_left {
        left: -19px;
        -webkit-transform: translate(-100%, 50%);
            -ms-transform: translate(-100%, 50%);
                transform: translate(-100%, 50%);
    }
    .tchat__message-avatar_right{
        right: -19px;
        -webkit-transform: translate(100%, 50%);
            -ms-transform: translate(100%, 50%);
                transform: translate(100%, 50%);
    }
    .tchat__message-avatar.is-hidden{
        opacity: 0;
        visibility: hidden;
    }
    .tchat__message-avatar img{
        width: 100%;
    }
    .tchat__message-avatar_animate img,
    .tchat__message-avatar_animate .emoji{
        -webkit-transition: 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        -o-transition: 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        transition: 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    }
    .tchat__message-avatar_animate.tchat__message-avatar.is-hidden img,
    .tchat__message-avatar_animate.tchat__message-avatar.is-hidden .emoji{
        -webkit-transform: scale(0);
            -ms-transform: scale(0);
                transform: scale(0);
        opacity: 0;
    }
    .emoji_rotate{
        -webkit-transform: rotate(720deg);
            -ms-transform: rotate(720deg);
                transform: rotate(720deg);
        -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        transition: -webkit-transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        -o-transition: transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        transition: transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        transition: transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28), -webkit-transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    }
}
@media screen and (max-width: 980px){
    .tchat_lg_title {
        font-size: 28px;
    }
    .tchat_lg_title .emoji {
        width: 40px;
        height: 39px;
    }
    .tchat__message__content__wrap {
        padding: 23px 50px 23px;
    }
    .tchat__message__content {
        font-size: 14px;
    }
}
@media screen and (max-width: 766px){
    .tchat_home__content {
        padding-top: 45px;
    }
    .tchat__content {
        padding-left: 0px;
        padding-right: 0px;
    }
    .tchat_started .tchat__messages {
        height: calc(calc(var(--vh, 1vh) * 100) - 350px);
    }
    .tchat__message {
        max-width: 100%;
    }
    .tchat__message + .tchat__message {
        padding-top: 5px;
    }
    .tchat__message:last-child {
        margin-bottom: 11px;
    }
    .tchat__message_left {
        margin-left: -5px !important;
    }
    .tchat__message_right {
        margin-right: -5px !important;
    }
    .tchat__message__content__wrap {
        -webkit-transform-origin: top;
            -ms-transform-origin: top;
                transform-origin: top;
    }
    .tchat__message_left .tchat__message__content__wrap{
        padding: 22px 45px 40px 27px;
    }
    .tchat__message_right .tchat__message__content__wrap{
        padding: 23px 31px 23px 45px;
    }
    .tchat__message__content {
        -webkit-transform-origin: top;
            -ms-transform-origin: top;
                transform-origin: top;
    }

    .tchat__message_left .tchat__message__content__wrap {
        /* overflow: hidden; */
        position: relative;
        border-bottom: none;
    }
    .tchat__message_left .tchat__message__mobile-line_left {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        overflow: hidden;
        z-index: -1;
    }
    .tchat__message_left .tchat__message__mobile-line_left:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0px;
        right: 0;
        bottom: 0;
        -webkit-transform: skewX(12deg) translateX(52px);
            -ms-transform: skewX(12deg) translateX(52px);
                transform: skewX(12deg) translateX(52px);
        -webkit-transform-origin: top;
            -ms-transform-origin: top;
                transform-origin: top;
        pointer-events: none;
        z-index: -1;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        -webkit-transition: 0.4s 0.4s;
        -o-transition: 0.4s 0.4s;
        transition: 0.4s 0.4s;
    }
    .tchat__message.is-hidden .tchat__message__mobile-line_left:after {
        -webkit-transform: skewX(12deg) translateX(0px);
            -ms-transform: skewX(12deg) translateX(0px);
                transform: skewX(12deg) translateX(0px);
    }
    .tchat__message_left:before{
        content: '';
        position: absolute;
        bottom: 0;
    }
    .tchat__message_left:before {
        width: 27px;
        height: 1px;
        background: rgba(255,255,255,0.2);
        -webkit-transition: 0.4s 1.2s;
        -o-transition: 0.4s 1.2s;
        transition: 0.4s 1.2s;
    }
    .tchat__message.is-hidden.tchat__message_left:before {
        -webkit-transform: translateX(-100px);
            -ms-transform: translateX(-100px);
                transform: translateX(-100px);
    }
    .tchat__transition-avatar,
    .tchat__default-avatars {
        display: none;
    }
    .tchat__message-avatar {
        display: block;
        position: absolute;
        width: 40px;
        z-index: -1;
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateX(0px);
            -ms-transform: translateX(0px);
                transform: translateX(0px);
        -webkit-transition: 0.4s 0.8s;
        -o-transition: 0.4s 0.8s;
        transition: 0.4s 0.8s;
    }

    .tchat__message-avatar_left {
        bottom: -10px;
        left: 25px;
    }

    .tchat__message-avatar_right {
        bottom: -12px;
        right: 19px;
    }
    .tchat__message.is-hidden .tchat__message-avatar_left {
        -webkit-transform: translateX(-100px);
            -ms-transform: translateX(-100px);
                transform: translateX(-100px);
        -webkit-transition: 0s;
        -o-transition: 0s;
        transition: 0s;
    }
    .tchat__message-avatar .emoji{
        width: 40px;
        height: 40px;
    }
    .tchat-actions {
        gap: 15px;
        padding: 0;
    }
}

@media screen and (max-width: 559px){
    .tchat_started .tchat__messages {
        height: calc(calc(var(--vh, 1vh) * 100) - 340px);
        margin-bottom: 110px;
    }

    .tchat_type .tchat__messages {
        height: calc(calc(var(--vh, 1vh) * 100) - 410px);
        margin-bottom: 180px;
    }

    .tchat__statuses {
        bottom: 2px;
    }

    .tchat-actions {
        flex-wrap: wrap;
        bottom: 35px;
    }
}

@-webkit-keyframes typing-ball {
    0% { 
        -webkit-transform: translateY(0); 
                transform: translateY(0); 
    }
    25% { 
        -webkit-transform: translateY(5px); 
                transform: translateY(5px); 
    }
    50% { 
        -webkit-transform: translateY(0); 
                transform: translateY(0); 
    }
    75% { 
        -webkit-transform: translateY(-5px); 
                transform: translateY(-5px); 
    }
    100% { 
        -webkit-transform: translateY(0); 
                transform: translateY(0); 
    }
}
@keyframes typing-ball {
    0% { 
        -webkit-transform: translateY(0); 
                transform: translateY(0); 
    }
    25% { 
        -webkit-transform: translateY(5px); 
                transform: translateY(5px); 
    }
    50% { 
        -webkit-transform: translateY(0); 
                transform: translateY(0); 
    }
    75% { 
        -webkit-transform: translateY(-5px); 
                transform: translateY(-5px); 
    }
    100% { 
        -webkit-transform: translateY(0); 
                transform: translateY(0); 
    }
}
@-webkit-keyframes show-message {
    0% { 
        -webkit-transform: scale(0.1) translateY(15px); 
                transform: scale(0.1) translateY(15px);
        opacity: 0;
    }
    100% {
        -webkit-transform: scale(1) translateY(0);
                transform: scale(1) translateY(0);
        opacity: 1;
    }
}
@keyframes show-message {
    0% { 
        -webkit-transform: scale(0.1) translateY(15px); 
                transform: scale(0.1) translateY(15px);
        opacity: 0;
    }
    100% {
        -webkit-transform: scale(1) translateY(0);
                transform: scale(1) translateY(0);
        opacity: 1;
    }
}