.ChatWrap{
    overflow: hidden;
    box-shadow: 0px 0px 17px #7070702e;
    margin: auto;
    border: 1px solid #e6e6e6;
    border-radius: 10px;

    

    .in{
        height: 600px;
        background-color: #FFF;
        border: 1px solid #FFF;
        border-radius: 10px;
        overflow: hidden;
        margin: auto;
        


        .list{

            width: 260px;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            border-right: 1px solid #e6e6e6;

            li{
                padding: 15px;
                text-align: left;
                padding-left: 63px;
                cursor: pointer;

                &:hover{
                    background-color: #f9f9f9;
                }

                &.active{
                    background-color: #e2e2e2;
                }


                .thephoto{
                    background-color: #FFF;
                    width: 36px;
                    height: 36px;
                    border-radius: 50px;
                    position: absolute;
                    left: 13px;
                    top: 13px;
                    background-size: cover;
                    background-position: center;

                    &[gender="female"]{
                        border:3px solid #de9d90
                    }
                    &[gender="male"]{
                        border:3px solid #3b9eb3
                    }
                }
                .thename{
                    margin-bottom: 3px;
                    margin-top: 0px;
                }

                .thetext{
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    font-size: 15px;
                    color: #878787;
                }
            }

        }

        .content{
                position: absolute;
                width: calc(100% - 262px);
                height: 100%;
                right: 0;


                .cheader{
                    border-bottom: 4px solid #e6e6e6;
                    height: 65px;

                    .thephoto{
                        background-color: #FFF;
                        width: 39px;
                        height: 39px;
                        border-radius: 50px;
                        position: absolute;
                        left: 15px;
                        top: 9px;
                        background-size: cover;
                        background-position: center;


                        &[gender="female"]{
                            border:3px solid #de9d90
                        }
                        &[gender="male"]{
                            border:3px solid #3b9eb3
                        }
                    }
                    .thename{
                        position: absolute;
                        left: 72px;
                        top: 19px;
                        font-weight: bold;
                    }
                    .btnWrap{
                        position: absolute;
                        right: 15px;
                        top: 11px;
                        

                        .btn{
                            margin: auto;
                            width: auto;
                            height: 41px;
                            display: inline-block;
                            line-height: 40px;
                            padding-left: 20px;
                            padding-right: 20px;
                        }
                    }
                }
        }
        .cmessage{
            position: absolute;
            width: 100%;
            height: calc(100% - 180px);
            right: 0;
            top: 65px;
            overflow-y: auto;
            padding-top: 15px;
            padding-bottom: 15px;

            &::-webkit-scrollbar {
                width: 8px;
            }
            &::-webkit-scrollbar-track {
                background: transparent;
            }
            &::-webkit-scrollbar-thumb {
                background-color: #9c9c9c;
                border-radius: 999px;
            }
            &::-webkit-scrollbar-thumb:hover {
                background-color: rgb(112, 112, 112);
            }

            li{


                .wrap{
                    background-color: #ebebeb;
                    display: inline-block;
                    padding: 10px;
                    margin: 23px;
                    margin-bottom: 5px;
                    margin-top: 5px;
                    border-radius: 8px;

                   
                    .message_content{
                        margin-bottom: 5px;
                    }
                    .message_datetime{
                        font-size: 12px;
                        color: #a2a2a2;
                    }
                    &:before{
                        content: '';
                        background-color: #ebebeb;
                        display: inline-block;
                        width: 10px;
                        height: 10px;
                        position: absolute;
                        transform: rotate(45deg);
                        z-index: 0;
                        top: 16px;

                    }
                }

                &.otherside .wrap{
                    padding-right: 20px;

                    &:before{
                        left: -6px;
                    }
                    
                }
                &.myside .wrap{
                    padding-left: 20px;

                    &:before{
                        right: -6px;
                    }
                    
                }


                &.otherside {
                    text-align: left;
                }
                &.myside {
                    text-align: right;
                }
            }
        }

        .cfooter{
            width: 100%;
            bottom: 0px;
            position: absolute;
            height: 83px;
            border-top: 1px solid #e6e6e6;


            textarea{
                width: calc(100% - 20px);
                font-size: 17px;
                height: 25px;
                overflow-y: hidden;
                line-height: 25px;
                padding: 10px;
            }
            .btn_wrap{
                bottom: 0px;
                position: absolute;

                .newbtn{
                    cursor: pointer;
                    display: inline-block;
                    height: 37px;
                    line-height: 48px;
                    width: 39px;
                    cursor: pointer;
                    user-select: none;

                    &:hover{
                        background-color: #f9f9f9;
                    }
                    &:active{
                        background-color: #e3e3e3;
                    }

                    &.disabled{
                        opacity: 0.6;
                    }
                }
            }
            .sentbtn{
                bottom: 0px;
                position: absolute;
                cursor: pointer;
                height: 37px;
                line-height: 55px;
                width: 55px;
                right: 0;
                color: #818181;
                user-select: none;


                

                span{
                        font-size: 30px;
                }

                &:hover{
                        background-color: #f9f9f9;
                    }
                    &:active{
                        background-color: #e3e3e3;
                    }
            }
        }
    }
}


/* ............................................................ */
@media screen and (max-width: 1240px) {

    .ChatWrap {
        & .in {
            .content {
                position: absolute;
                width: 100%;
                height: 100%;
                right: 0;
            }
        }

    }


    .ChatWrap {
        & .in {
            height: 455px;

            .list {


                            display: none;
            }
        }
    }
}