.newchatonline_icon{
    position: fixed;
    right: 30px;
    width: 60px;
    height: 60px;
    bottom: 40px;
    z-index: 9999999999;
    cursor: pointer;
}
.newchatonline_icon img{
    width:100%;
    height:100%;
}
.newchatonline_body{
    display:none;
    height:0;
    
    transition: all 1s;
    position: fixed;
    max-height: 660px;
    /*border: 1px solid red;*/
    right: 0;
    background: rgb(248, 248, 248);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0.48px 2.41px -0.38px, rgba(0, 0, 0, 0.17) 0px 4px 20px -0.75px;
    bottom: 0;
    margin: 10px;
    padding: 10px;
    width: 360px;
    border-radius: 10px;
    z-index: 9999999999;
}
.newchatbodyshow{
    display: flex;
    height: calc(100% - 30px);
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.newchatonline_body .chat1{
    background: rgb(255, 255, 255);
    width: 100%;
    height: 90px;
    border-radius: 10px 10px 0px 0px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}
.newchatonline_body .chat1 #closenewchatonline{
    cursor:pointer;
    margin-left: 10px;
}
.newchatonline_body .chat1 #titrchat1{
    margin-left:10px;
    margin-right:10px;
    width:100%;
    text-align: center;
    direction:rtl;
}
.newchatonline_body .chat1 #backnewchatonline{
    cursor:pointer;
    margin-right: 10px;
}
.newchatonline_body .chat1 .backnewchatonline_hide{
    height: 0;
    overflow: hidden;
}
.newchatonline_body .chat2{
    background: white;
    /*background: rgb(248, 248, 248);*/
    width: 100%;
    overflow:auto;
    scrollbar-width: thin; /* عرض نوار اسکرول را باریک کنید */
    scrollbar-color: #b7b7b7 #ffffff; /* رنگ دسته و پس زمینه نوار اسکرول */
    height: 100%;
    margin-top: 1px;
    margin-bottom: 1px;
    padding-top: 10px;
    padding-bottom: 10px;
}
/* استایل نوار اسکرول */
.newchatonline_body .chat2::-webkit-scrollbar {
    width: 5px; /* عرض نوار اسکرول */
}

/* استایل پس زمینه نوار اسکرول */
.newchatonline_body .chat2::-webkit-scrollbar-track {
    background: #ffffff; 
}

/* استایل دسته نوار اسکرول */
.newchatonline_body .chat2::-webkit-scrollbar-thumb {
    background: #b7b7b7; 
}

/* استایل دسته نوار اسکرول در حالت هاور */
.newchatonline_body .chat2::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

.newchatonline_body .chat2 .titrchat2{
    height: fit-content;
    direction: rtl;
    min-height:50px;
}

.newchatonline_body .chat2>div{
    background: #f7f7f7;
    width: calc(100% - 10px);
    margin: 0 auto;
    border-radius: 10px;
    height: 50px;
    overflow: hidden;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}
.newchatonline_body .chat2>div:hover:not(.titrchat2){background:#eaeaea;}
.newchatonline_body .chat2>div>div:first-child{
    margin-right: 10px;
    margin-left: 10px;
    direction: rtl;
}
.newchatonline_body .chat2>div>div:last-child{
    margin-left: 10px;
}
.newchatonline_body .chat3{
    /*background: wheat;*/
    width: 100%;
    height: 110px;
    border-radius: 0 0 10px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.newchatonline_body .chat3>a{
    cursor: pointer;
    display: table;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 6px;
    color: white;
    margin: 7px 10px 7px 10px;
    background: #ffb03b;/*livechat = #ffca00*/
    /*box-shadow: 0px 0px 2px 0px black;*/
}
.newchatonline_body .chat3>div:first-child{
    font-size: 12px;
    color: gray;
    direction: rtl;
}
.newchatonline_body .chat2 .titrchat2{
    background: no-repeat;
    cursor: auto;
}
.titrchat2 a{color:#006f99;}
/*حالت موبایل*/
@media screen and (max-width: 480px){
    .newchatonline_icon{
        right: 16px;
        bottom: 58px;
    }
    .newchatonline_body{
        /*max-height: -webkit-fill-available;*/
        max-height: calc(100% - 30px);
        width: -webkit-fill-available;
        margin-right: 0;
        margin-left: 0;
        padding-right: 10px;
        padding-left: 10px;
        border-radius: 0;
    }
}