
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




body {
    color: #58585E;
}

.chat-block {
    display: flex;
    min-height:calc(100vh - 160px);
}
    .chat-block .users-block {
        flex: 0 0 auto;
        overflow-x: hidden;
        transition: width 0.25s ease-in-out 0s;
        width: 280px;
        background-color: #c0cceb;
        border-radius: 20px;
        padding: 25px;
    }
        .chat-block .users-block .tittle {
            font-size: 18px;
            margin-bottom: 1rem;
        }

.users-list::-webkit-scrollbar {
    width: 5px;
    margin-left: 50px
}

.users-list::-webkit-scrollbar-track {
    background-color: #c0cceb;
    border-radius: 25px;
}
.users-list::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 25px
}

        .chat-block .users-block .users-list {
            list-style-type: none;
            margin: 0;
            padding: 0;
            padding-right: 15px;
            height: calc(100vh - 245px);
            overflow-y: auto;
            overflow-x: hidden;
        }

            .chat-block .users-block .users-list li {
                display: flex;
               margin-bottom:10px;
               cursor:pointer;              
            padding: 2px 2px 2px 2px;

            }

                .chat-block .users-block .users-list li:not(:last-of-type) {
                    border-bottom: 1px solid #e5e2e2;
                }

       /* .chat-block .users-block .chat-block .users-block .users-list li.hide {
            display: none;
        }*/

        .chat-block .users-block .users-list li img {
            border-radius: 50%;
            object-fit: cover;
            height: 25px;
            width: 25px;
        }

        .chat-block .users-block .user-info {
            margin-left: 10px;
        }

            .chat-block .users-block .user-info h4 {
                margin: 4px 0 0;
                font-size:13px;
            }

            .chat-block .users-block .user-info p {
                font-size: 12px;
                margin-bottom:.55rem
            }

    .chat-block .chatting-frame {
        -webkit-box-flex: 1;
        flex-grow: 1;
        min-width: 0px;
        display: flex;
/*        min-height: 70vh;
*/        flex-direction: column;
        background-color: #F7F7F9;
        margin-left: 25px;
        padding: 25px;
        border-radius: 20px
    }
        .chat-block .chatting-frame .chat-box {
            border: 1px solid #e5e2e2;
            background-color: #fff;
            padding: 25px;
            border-radius: 20px;
            margin-bottom: 1.5rem;
           
        }
#chatMessages {
    list-style-type: disc;
    padding-right: 15px;
    height: calc(100vh - 500px);
    overflow-y: auto;
    overflow-x: hidden;
    min-height:200px;
        
}
#chatMessages li{
   padding-bottom:5px;
}
    #chatMessages li::before {
        color: red;
        display: inline-block;
        width: 1em;
        margin-left: -1em
    }

    #chatMessages::-webkit-scrollbar {
        width: 5px;
        margin-left: 50px
    }

    #chatMessages::-webkit-scrollbar-track {
        background-color: #c0cceb;
        border-radius: 25px;
    }

    #chatMessages::-webkit-scrollbar-thumb {
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        border-radius: 25px
    }


.chat-box {
    scrollbar-width: thin;
}
.incoming_msg_img {
    display: inline-block;
    width: 4%;
}
.incoming_msg_img img{
    width: 60%;
}
.received_msg {
    display: inline-block;
    padding: 0 0 0 10px;
    vertical-align: top;
    width: 92%;
}
.received_withd_msg {
    width: 57%;
}
    .received_withd_msg p {
        background: #ebebeb none repeat scroll 0 0;
        border-radius: 3px;
        color: #646464;
        font-size: 14px;
        margin: 2px;
        padding: 5px 10px 5px 12px;
        width: 100%;
    }
.time_date {
    color: #747474;
    display: block;
    font-size: 12px;
    margin: 8px 0 0;
}
.outgoing_msg {
    overflow: hidden;
    margin: 26px 0 26px;
}
.sent_msg {
    float: right;
    width: 46%;
}
    .sent_msg p {
        background: #05728f none repeat scroll 0 0;
        border-radius: 3px;
        font-size: 14px;
        margin: 0;
        color: #fff;
        padding: 5px 10px 5px 12px;
        width: 100%;
    }

        .chat-block .chatting-frame .tittle {
            font-size: 18px;
            margin-bottom: 1rem;
        }

        .chat-block .chatting-frame .form-control {
            border-radius: 20px;
            border:1px solid #e5e2e2;
        }
        .chat-block .chatting-frame .form-control:focus {
            outline:none;
            box-shadow:none;
        }
    .chat-block .chatting-frame .btn{
        border-radius:10px;
        width:fit-content;
    }
@media only screen and (max-width: 768px) {
    .chat-block {
        flex-direction: column;
    }

        .chat-block .users-block {
            width: 100%;
            margin-bottom:1.5rem;
        }

        .chat-block .chatting-frame {
            margin-left:0;
        }

        .chat-block .users-block .users-list {
            padding-right: 0;
            height: auto;
            overflow-y: inherit;
            overflow-x: inherit;
        }


    #chatMessages {
        padding-right: 0;
        height: auto;
        overflow-y: inherit;
        overflow-x: inherit;
    }

    .received_withd_msg {
        width: 80%;
    }
    .sent_msg {
        float: right;
        width: 80%;
    }
}