

.chat{
    position: relative;
    margin-left: -50px;
    margin-right: -50px;
}

.app_messages_content::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    border-radius: 30px;
}

.app_messages_content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 30px;
}

.app_messages_content::-webkit-scrollbar-track {
    background: #c4c4c4;
    border-radius: 30px;
}

.chat::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(rgba(255, 255, 255) , rgba(255, 255, 255, 0.2) );
    border-top: 1px solid #ecf1f7;
    pointer-events: none;
}

.chat::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 1px solid #ecf1f7;
    pointer-events: none;
}

.chat__content{
    padding-top: 20px;
    padding-bottom: 20px;
    height: calc( 100vh - 375px );
    overflow-y: auto;
    padding-left: 50px;
    padding-right: 50px;
}


.chat .clearfix{
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.34px;
    line-height: 20px;
    position: relative;
    text-align: center;
    color: #A2A7AB;
    margin-bottom: 30px;
    margin-top: 30px;
}

.chat .clearfix span{
    position: relative;
    background-color: #fff;
    padding: 8px 16px;
}


.chat .clearfix::before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background-color: #ecf1f7;
}

.chat__msg{
    margin-bottom: 8px;
}

.chat__text{
    display: table;
    margin-bottom: -8px;
}

.chat__msg .text{
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.34px;
    line-height: 20px;
    padding: 10px 16px;
    display: inherit;
    border-radius: 8px;
    margin-bottom: 8px;
}
.chat__msg.left .text{
    background-color: #ecf1f7;
    border-bottom-left-radius: 0px;
    color: #222;
}

.chat__person{
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.chat__person .date{
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.34px;
    line-height: 20px;
}

.chat__msg.right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat__msg.right .chat__text{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat__msg.right .text{
    color: #F8F8F8;
    background-color: #137fc4;
    border-bottom-right-radius: 0px
}

.app_messages_content{
    overflow: unset!important;
}


.app_messages_file{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 50px;
}

.app_messages_file__wrap{
    position: relative;
}

.app_messages_file input{
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    opacity: 0;
}

.isfile{
    position: absolute;
    right: -10px;
    top: -10px;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #137fc4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.chat__file{
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (max-width: 992px){

    .chat {
        margin-left: -20px;
        margin-right: -20px;
    }

    .chat__content {
        padding-left: 20px;
        padding-right: 20px;
    }
}
