.chat-content {
    width: 360px;
    box-shadow: 0 0 10px 1px #b5c2c0;
    border: 1px solid #e8ddf5;
    position: fixed;
    bottom: 0px;
    right: 100px;
    background-color: #fff;
    z-index: 10;
    display: none;
    max-height: 90vh;
    overflow-y: auto;
}

#sent_btn_content {
    z-index: 2;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0px;
    width: 360px;
    background-color: #ccc;
    padding: 10px;
    
}






.chat-mask {
    background: rgba(255, 255, 255, 0.44);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
}


.chat-content {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f7f7f7;
}
.chat-content::-webkit-scrollbar {
    width: 8px;
} 
.chat-content::-webkit-scrollbar-track {
    background: #f7f7f7;
}

.chat-content::-webkit-scrollbar-thumb {
    background-color: #ccc;   
}



/*
.chat-content::-webkit-scrollbar { width: 3px; height: 3px;}
.chat-content::-webkit-scrollbar-button {  background-color: #666; }
.chat-content::-webkit-scrollbar-track {  background-color: #999;}
.chat-content::-webkit-scrollbar-track-piece { background-color: #ffffff;}
.chat-content::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px;}
.chat-content::-webkit-scrollbar-corner { background-color: #999;}
.chat-content::-webkit-resizer { background-color: #666;}
*/

.chat-messages-list {
    padding: 95px 20px 140px 20px;;
}

.list-mode #chat_list_users {
    height: 100%;
    overflow-y: auto;
}
.list-mode .chat-messages-list {padding: 0;overflow: hidden;}

.person-mode #chat_list_users {height: auto;}
.chat-messages-list:empty{
    height: 0 !important;
    /*min-height: 400px;*/
}

    .chat-messages-list p {
        color: #000;
        font-size: 14px;
        margin: 0 74px 12px 0;
        border-radius: 10px 10px 10px 0;
        font-family: TTNorms-Regular;
        line-height: 18px;
        padding: 15px 20px;
        background-color: #ececec;
        
    }
    

    
.message-item {
    border-radius: 10px 10px 0 10px !important;
    background-color: #f2eef7 !important;
    word-wrap: break-word;
    margin: 0 0 12px 55px !important;
    
}

.chat-text {
    height: 100px;
    border-radius: 10px;
    border: 1px solid #ececec;
    font-family: TTNorms-Regular;
    color: #000;
    /*margin: 0 20px 20px 20px;*/
    /*width: 320px;*/
    /*text-indent: 25px;*/
    width: 100%;
    margin-right: 15px;
    resize: none;
    padding: 10px;
    font-size: 14px;
}


.chat-panel {
    padding: 18px;
    width: 360px;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    border-bottom: 1px solid #e8ddf5;
    position: fixed;
    background-color: #fff;
}
    .chat-panel .chat-user_avatar {
        width: 40px;
        height: 40px;
        margin-left: 40px;
        flex-shrink: 0;
    }
.chat-panel_line {
    width: 200px;
    margin-left: 15px;
    
}
    .chat-panel_line span:first-child {
        font-family: TTNorms-Medium;
        color: #000;
        font-size: 18px;
        display: block;
        cursor: pointer;
    }
    .chat-panel_line span:last-child {
        display: block;
        margin-top: 5px;
    }

        .chat-panel_line span:last-child a:first-child {
            font-family: TTNorms-Regular;
            font-size: 13px;
            color: #9d92ab;
            cursor: pointer;
        }
        .chat-panel_line span:last-child a:last-child {
            font-family: TTNorms-Regular;
            color: #000;
            font-size: 13px;
            margin-left: 12px;
            cursor: pointer;
        }



.chat-user {
    padding: 20px;
    border-bottom: 1px solid #e8ddf5;
    display: flex;
    display: -webkit-flex;
    position: relative;
    cursor: pointer;

}

.chat-user_avatar {
    width: 55px;
    border-radius: 50%;
    height: 55px;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.chat-user_info {
    width: 225px;
    margin-left: 15px;
}
    .chat-user_info span:first-child {
        font-family: TTNorms-Medium;
        color: #000;
        font-size: 16px;
        display: block;
    }
    .chat-user_info span:last-child {
        font-family: TTNorms-Regular;
        font-size: 14px;
        color: #9d92ab;
        display: block;
        margin-top: 5px;
    }

.chat-user_count {
    width: 25px;
    border-radius: 50%;
    height: 25px;
    color: #fff;
    font-family: TTNorms-Medium;
    font-size: 14px;
    background-color: #71c8f2;
    text-align: center;
    padding-top: 5px;
    position: absolute;
    right: 15px;
    bottom: 20px;
}


.chat-status-online, .chat-status-offline {
    position: absolute;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    right: 0px;
    bottom: 0px;
}

.chat-status-offline {
    background-color: #d4c7e4;
}
.chat-status-online {
    background-color: #41cfd9;
}
.btn_sent {
    height: 32px;
    border-radius: 50%;
    width: 32px;
    background-color: #ff3e49;
    background-image: url(/image/icon_sent.png);
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    /*position: absolute;*/
    /*top: 5px;*/
    /*right: 27px;*/
    cursor: pointer;
    flex-shrink: 0;
}

.chat-pin {
    height: 64px;
    border-radius: 10px;
    width: 64px;
    background-color: #ff3e49;
    background-image: url(/image/icon_chat.png);
    background-position: 20px 22px;
    background-repeat: no-repeat;
    display: inline-block;
    position: fixed;
    top: 25%;
    right: 0px;
    cursor: pointer;
    z-index: 10;
    //animation: chat-pin-animation 2s ease infinite alternate;
}

#sent_btn_content {
    display: none;
}




.chat-no-contact {
    border-bottom: 1px solid #ccc;
    padding: 25px 0;
    text-align: center;
    color: #818181;
    font-size: 18px;
    font-family: TTNorms-Regular;
}

@keyframes chat-pin-animation {   
  0% {     
    background-color: #68ff3e;   
  }   
  50% {     
    background-color: #3effdb;   
  } 
  100% {
    background-color: #3e41ff;
   }
}


.chat-content-fone {
    width: 360px;
    border-radius: 10px;
    box-shadow: 0 0 10px 1px #b5c2c0;
    border: 1px solid #e8ddf5;
    position: fixed;
    bottom: 0px;
    right: 100px;
    background-color: #e2e2e2;
    z-index: 15;
    height: 380px;
    display: none;
    opacity: 0.5;
    background-image: url(/image/6.gif);
    background-repeat: no-repeat;
    background-position: center center;
}
.pay-button-content {

    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #818181;
    font-family: TTNorms-Regular;
    background-color: #ebe5f3;
    
}


.pay-button-content span {
    display: block;
    margin-bottom: 10px;
}
.pay-button-content button {
    border: none;
    background-color: #021a2f;
    color: #fff;
    padding: 10px 15px;
    font-family: TTNorms-Regular;
    cursor: pointer;
    
}


.pay-button-content button:hover {
    background-color: #2c465e;
}



@media screen and (max-width: 768px) {
    .chat-content, .chat-content-fone {
        width: 100%;
        right: 0px;
        bottom: 64px;
        max-height: unset;
        height: calc(100vh - 144px);
    }
    #sent_btn_content {
        width: 100%;
        bottom: 64px;
    }
    .chat-panel {
        width: 100%;
    }

}

.chat-wraper {
    display: flex;
    justify-content: space-between;
    /*height: 100%;*/
    flex-direction: column;
}
.chat-messages {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    /*height: 350px;
    overflow-y: hidden;*/
}
.chat-messages-list {
    height: 100% !important;
}
.chat-messages-list p span {
    display: flex;
    font-size: 10px;
    color: #b2b5c1;
    justify-content: flex-end;
}

.chat-panel_line ~ img {
    margin-left: auto;
}

.no-scroll {
      position: fixed;
      left: 0px;
      width: 100%;
      top: 0px;
      height: 100%;
      overflow-y: scroll;
}



