*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;

}

/* width */
.new-chat-main ::-webkit-scrollbar {
    width: 6px;
  }
  
  /* Track */
  .new-chat-main  ::-webkit-scrollbar-track {
    /* box-shadow: inset 0 0 5px grey;  */
    border-radius: 10px;
  }
   
  /* Handle */
  .new-chat-main  ::-webkit-scrollbar-thumb {
    background: rgb(216, 216, 216); 
    border-radius: 10px;
  }
  
  /* Handle on hover */
  .new-chat-main ::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5; 
  }

.new-chat-main{
    display: flex;
    max-width: 1060px;
    /* justify-content: space-between; */
    margin: 1rem auto;
    border: 2px solid #dfdfdf;
    padding: 0 0 0 0.8rem;
    position: relative;
    z-index: 99;
    scroll-behavior: smooth;
    border-radius: 4px;
    overflow: hidden;
   
}


.new-chat-main-inbox{
    display: flex;
    flex-direction: column;
    width: 325px;
    border-right: 2px solid #dfdfdf;
    padding: 0.8rem 0 0;
    background-color: #fff;
    z-index: 1;
   
}

.new-chat-main-inbox-group1{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:0 0.4rem 0 0.2rem;
}

.new-chat-main-inbox-group1-title{
    font-weight: 600;
    font-size: 24px;
    margin-top:0.5rem ;
}

.new-chat-main-inbox-group1-option{
    /* background-color: #dedede; */
    border-radius: 50%;
    padding: 0.35rem;
}

.new-chat-main-inbox-search{
    background-color: #e9e9e9;
    margin: 1rem 0;
    padding: 0.4rem 0.4rem;
    border-radius: 4px;
    margin:0.8rem 0.8rem 0.8rem 0rem;
}

.new-chat-main-inbox-search input{
    outline: none;
    border: none;
    background-color: transparent;
    width: 90%;
}

.new-chat-main-inbox-search button{
    background: transparent;
    border: none;
    outline: none;
    
}

.new-chat-main-inbox-text-title{
    font-size: 15px;
    margin: 0 0 0.5rem;
    color: #6c6c6c;
    padding-left: 0.2rem;
}


.new-chat-main-inbox-user{
    display: flex;
    flex-direction: column;
    height: 59.8vh;
    overflow-y: scroll;
    
}

.new-chat-main-inbox-user-box{
    margin: 0.5rem 0;
    display: flex;
    gap: 10px;
    padding: 0.2rem 0.2rem;
    
}

.new-chat-main-inbox-user-box:hover{
    background-color: #ececec;
    border-radius: 4px;
    cursor: pointer;
}

.user-focus-class:focus {
    background-color: #ececec;
    border-radius: 4px;
    cursor: pointer;
  }

.new-chat-main-inbox-user-box-image img{
    width: 60px;
    border-radius: 50%;
    height: 60px;
}


.new-chat-main-inbox-user-box-detail{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    
}
.new-chat-main-inbox-user-box-detail-username{
    font-weight: 600;
    color: #000;
    text-transform: capitalize;
}

.new-chat-main-inbox-user-box-detail-product{
    font-size: 13.5px;
    color: #6f6f6f;
    text-transform: capitalize;
  
    font-weight: 600;
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-chat-main-inbox-user-box-detail-messages{
    font-size: 13.5px;
    color: #6f6f6f;
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
}


/* Next part */
.new-chat-main-messages{
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0 0;
    width: 100%;
    position: relative;
}

.new-chat-main-messages-user-heading{
    display: flex;
    justify-content: space-between;
    padding-right: 0.4rem;
    /* padding-bottom: 0.4rem; */
    margin-top: 0.4rem;
    
  
}

hr{
    border-top: 2px solid #dfdfdf !important;
}

.new-chat-main-messages-user-heading-userDetails{
    display: flex;
    gap: 10px;
    padding-left: 0.8rem;

}

.new-chat-main-messages-user-heading-userDetails-image{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.new-chat-main-messages-user-heading-userDetails-image img{
    width: 50px;
    border-radius: 50%;
    height: 50px;

}

.new-chat-main-messages-user-heading-userDetails-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.new-chat-main-messages-user-heading-userDetails-info-username{
    font-weight: 600;
    text-transform: capitalize;
    font-size: 16px;
    

}

.new-chat-main-messages-user-heading-userDetails-info-productName{
    font-size: 14.5px;
    color: #6f6f6f;
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-chat-main-messages-user-heading-options{
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}

.new-chat-main-messages-user-heading-options-profile {
    color: #000;
}

.new-chat-main-messages-user-heading-options-product button{
    background-color: #3da411;
    border: none;
    outline: none;
    color: #fff;
    padding: 0.4rem;
    border-radius: 4px;
    font-size: 16px;
}

.new-chat-main-messages-user-heading-options-product button:hover{
    opacity: 0.8;
    cursor: pointer;
}


.new-chat-main-messages-user-heading-options-close{
    margin: 0 0.4rem;
    color: #383838;
}

.new-chat-main-messages-user-heading-options-close .fa-close:hover{
    scale: 1.1;
    cursor: pointer;
    opacity: 0.8;
}

.new-chat-main-messages-chatting{
    display: flex;
    flex-direction: column;
    padding-left: 0.8rem;
    height: 58.2vh;
    overflow-y: auto;
    padding-right: 0.8rem;
    margin-bottom: 1.9rem;

}

.new-chat-main-messages-chatting-me{
    display: flex;
    justify-content: flex-end;
    margin: 0.8rem 0;
    gap: 5px;
}

.new-chat-main-messages-chatting-me-text{
    display: flex;
    flex-direction: column;
    background-color: #0083da;
    min-width:320px;
    padding: 0.5rem;
    justify-content: center;
    max-width: 600px;
    /* margin: 0.8rem 0; */
    
}


.new-chat-main-messages-chatting-me-text-username{
    font-weight: 750;
    padding-bottom: 0.2rem;
    text-transform: capitalize;
    color: #fff;
}

.new-chat-main-messages-chatting-me-text-message{
    color: #fff;
}

.new-chat-main-messages-chatting-me-image img{
    width: 50px;
    border-radius: 50%;
}

.message-image-time-you,
.message-image-time-other{
    font-size: 12px;
    text-align: center;
    color: #6f6f6f;
}



.new-chat-main-messages-chatting-other{
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin: 0.8rem 0;
}

.new-chat-main-messages-chatting-other-image img{
    width: 50px;
    border-radius: 50%;

}

.new-chat-main-messages-chatting-other-text{
    display: flex;
    flex-direction: column;
    background-color:  #e2e2e2;
    min-width: 320px;
    padding: 0.5rem;
    justify-content: center;
    max-width: 600px;
    border-radius: 4px;
  
    max-width: 600px;
}

.new-chat-main-messages-chatting-other-text-username{
    font-weight: 750;
    padding-bottom: 0.2rem;
    text-transform: capitalize;

}

.new-chat-main-messages-chatting-other-text-message{

}

.new-chat-main-messages-submit{
background-color: #ededed;
 bottom: 0;
 padding: 0.3rem 0.4rem;
left: 0;
/* position: absolute; */
    width: 100%; 
}
.new-chat-main-messages-submit input{
    padding: 0.3rem 0.4rem;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    width: 90%;
}

.new-chat-main-messages-submit button{
    background-color: #1e59c5;
    outline: none;
    border: none;
    color: #fff;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    font-size: 16px;
    float: right;
    /* margin-right: 0.1rem; */
}





@media only screen and (min-width:750px){

    .new-chat-main-messages-user-heading-userDetails-arrow{
        display: none;
        flex-direction: column;
        justify-content: center;
    }

    .new-chat-main-inbox-group1-option{
        display: none;
    }
}

@media only screen and (max-width:750px){
    .new-chat-main {
    
        padding: 0 0 0 0rem;
        margin:1rem ;
    }


.new-chat-main-inbox{
    padding: 0.25rem 0.4rem 0;
    width: 260px;
    display: none;

}



 
    .new-chat-main-messages-user-heading-userDetails {
        gap: 8px;
        padding-left: 0.4rem;
    }

    .new-chat-main-messages-user-heading-userDetails-arrow{
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: 20px;
    }


    .new-chat-main-messages-user-heading-options-product button{
        font-size: 14px;
    }

    .new-chat-main-messages-chatting {
        padding-left: 0.4rem;
        padding-right: 0.35rem;
        margin-bottom: 0.5rem;
      
    }

    .new-chat-main-messages-chatting-me-text,
    .new-chat-main-messages-chatting-other-text{
    

        max-width: 350px;
    min-width: 180px;
    padding: 0.25rem 0.5rem;
    }

    .new-chat-main-messages-user-heading-userDetails-image img{
        width: 40px;
        height: 40px;
    }
}


@media only screen and (max-width:550px){
    .new-chat-main-messages-user-heading-userDetails-info-username{
       font-size: 14px;
       width: 100px;
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis;
    
    }
    
    .new-chat-main-messages-user-heading-userDetails-info-productName{
        font-size: 11.5px;
     
     }

    .new-chat-main-messages-chatting-me-text,
    .new-chat-main-messages-chatting-other-text{
        font-size: 14px;

        
    }

    .new-chat-main-messages-chatting-me-image img,
    .new-chat-main-messages-chatting-other-image img {
        width: 40px;
       
    }
    .new-chat-main-messages-chatting-me-text-username,
    .new-chat-main-messages-chatting-other-text-username {
        padding-bottom: 0.29rem;
    }

    .new-chat-main-messages-user-heading-options-product button{
        padding: 0.4rem;
        font-size: 12px;
    }
    .new-chat-main-messages-user-heading-userDetails-info-productName{
        font-size: 13.5px;
        color: #6f6f6f;
        width: 100px;
    }
}

@media only screen and (max-width:350px){
    .new-chat-main-messages-user-heading-userDetails-info-username,
    .new-chat-main-messages-user-heading-userDetails-info-productName{
        width: 80px;
    }
}