#chat_main{margin-bottom: 0}
.webview #chat_main{margin-top: 0}
#modal_upload_8 , .loading_upload {display: none;}
.chat_header {display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-pack: justify;-webkit-justify-content: space-between;-ms-flex-pack: justify;justify-content: space-between;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;padding: 4px 5px;height: 40px}
.chat_header .title {font-size: 16px;}
.chat_header .chat_connecting {-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;font-size: 12px;}
.chat_header .chat_connecting img {width: 12px;margin-left:7px;}
#chat {display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;padding: 0 5px;}
#chat .chat_right {padding-left: 0;width: 29%;border-right: 1px #F1F1F1 solid;border-left: 1px #F1F1F1 solid;}
#chat .chat_right .user-list {background: #ffffff;padding: 0 0 15px 0;width: 100%;position: relative;height: calc(100vh - 160px)}
.webview #chat .chat_right .user-list {position: relative;height: calc(100vh - 41px)}
#chat .chat_right .user-list .simplebar-wrapper {height: -webkit-calc(100vh - 105px);height: calc(100vh - 105px);}
#chat .chat_right .user-list .users .user {overflow: hidden;padding: 15px 7px;border-bottom: 1px #f8f8f8 solid;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;cursor: pointer;}
#chat .chat_right .user-list .users .user.current_user {background: gainsboro;}
#chat .chat_right .user-list .users .user:hover {background: gainsboro;}
#chat .chat_right .user-list .users .user img {float: right;width: 45px;margin-left: 8px;border: 1px #999999 solid;-webkit-border-radius: 50%;border-radius: 50%;}
#chat .chat_right .user-list .users .iranzayeat img {border: none;}
#chat .chat_right .user-list .users .whatsapp {text-decoration:none;color: var(--black-color);overflow: hidden;padding: 15px 7px;border-bottom: 1px #f8f8f8 solid;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;cursor: pointer;}
#chat .chat_right .user-list .users .whatsapp img {background: #59CE72;float: right;width: 45px;margin-left: 8px;-webkit-border-radius: 50%;border-radius: 50%;padding: 5px;}
#chat .chat_right .user-list .users .user .user-about {width: 100%}
#chat .chat_right .user-list .users .user .user-about p, span {display: inline-block;}
#chat .chat_right .user-list .users .user .user-about .notif-message-count {width: 25px;height: 25px;background-color: red;color: white;-webkit-border-radius: 33px;border-radius: 33px;text-align: center;line-height: 25px;float: left;margin-left: 10px;}
#chat .chat_right .user-list .users .user .user-about p, #chat .chat .chat-header .user .user-about p {margin: 0;}

#chat .chat_right .user-list .users .user .user-about .user-status i {vertical-align: initial;margin-left: 3px;}
#chat .chat_right .user-list .users .user .user-about .user-status span {font-size: 12px;font-weight: 400;}
#chat .chat_right .user-list .users .channel .channel-about{width: 100%}
#chat .chat_right .user-list .users .channel .channel-about p, span {display: inline-block;}
#chat .chat_right .user-list .users .channel .channel-about .notif-message-count {width: 22px;height: 22px;background-color: red;color: white;-webkit-border-radius: 10px;border-radius: 10px;text-align: center;line-height: 23px;float: left;}
#chat .chat_right .user-list .users .channel .channel-about p{margin: 0;}
#chat .chat_right .user-list .users .channel img {float: right;width: 45px;margin-left: 8px;border: 1px #999999 solid;-webkit-border-radius: 50%;border-radius: 50%;}
#chat .chat_left {padding-right: 0;width: 71%;}
#chat .chat_left .chat {width: 100%;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-webkit-flex-direction: column;-ms-flex-direction: column;flex-direction: column;-webkit-box-pack: justify;-webkit-justify-content: space-between;-ms-flex-pack: justify;justify-content: space-between;height: -webkit-calc(100vh - 105px);height: calc(100vh - 105px);background: var(--white);}
#chat .chat_left .chat .chat-header .user {display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;}
#chat .chat_left .chat .chat-header .user .user-about {margin-right: 10px;}
#chat .chat_left .chat .chat-header {overflow: hidden;background: #ece8ea;padding: 7px 6px;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: justify;-webkit-justify-content: space-between;-ms-flex-pack: justify;justify-content: space-between;min-height: 59px;}
#chat .chat_left .chat .chat-header .chat_back{font-size: 27px;padding: 18px 11px;}
#chat .chat_left .chat .chat-header .user img {width: 50px;border: 1px #999999 solid;-webkit-border-radius: 50%;border-radius: 50%;}
#chat .chat_left .chat .chat-header span {font: 14px NIRANSans, IRANSans;}
#chat .chat_left .chat .chat-header i {display: block;}
#chat .chat_left .chat .chat-header i.fa-exclamation-triangle {float: right;}
#chat .chat_left .chat .chat-header .chat_option {position: unset;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-pack: end;-webkit-justify-content: flex-end;-ms-flex-pack: end;justify-content: flex-end;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;}
#chat .chat_left .chat .chat-header .chat_option .dropdown_menu {font-size: 31px;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-webkit-justify-content: center;-ms-flex-pack: center;justify-content: center;position: relative;cursor: pointer;}
#chat .chat_left .chat .chat-header .chat_option .dropdown_menu i {padding: 7px 22px;}
#chat .chat_left .chat .chat-message-history {padding: 10px 0 20px 0;background: #ffffff;overflow-y: auto;/*overflow-y: scroll;   height: 100%;*/height: 100%;position: relative;}
#chat .chat_left .chat .chat-message-history .chat-message-recipient {overflow: hidden;clear: both;float: left;margin-bottom: 10px;max-width: 90%;word-wrap: break-word;margin-right: 8px;}
#chat .chat_left .chat .chat-message-history .chat-message-sender {float: right;clear: both;margin-bottom: 10px;max-width: 90%;word-wrap: break-word;margin-right: 8px;}
#chat .chat_left .chat .chat-message-history .chat-message-content {word-wrap: break-word;margin-bottom: 12px;line-height: 24px;position:relative;padding:10px 20px;-webkit-border-radius:25px;border-radius:25px;}
#chat .chat_left .chat .chat-message-history .chat-message-content:before, #chat .chat .chat-message-history .chat-message-content:after {content:"";position:absolute;bottom:-2px;height:20px;}
#chat .chat_left .chat .chat-message-history .chat-message-sender .chat-message-content {color:white;background: #6ab258;-webkit-align-self: flex-end;-ms-flex-item-align: end;align-self: flex-end;}
#chat .chat_left .chat .chat-message-history .chat-message-sender .chat-message-content:before {right:-7px;border-right: 20px solid #6ab258;-webkit-transform:translate(0, -2px);-ms-transform:translate(0, -3px);transform:translate(0, -3px);-webkit-border-radius: 0 0 20px 20px;border-radius: 0 0 20px 20px;}
#chat .chat_left .chat .chat-message-history .chat-message-sender .chat-message-content:after {right:-56px;width:26px;background:white;-webkit-transform:translate(-30px, -2px);-ms-transform:translate(-30px, -3px);transform:translate(-30px, -3px);-webkit-border-radius: 0 0 68px 35px;border-radius: 0 0 68px 35px;}
#chat .chat_left .chat .chat-message-history .chat-message-sender .chat-message-content > p {white-space: pre-line;}
#chat .chat_left .chat .chat-message-history .chat-message-recipient .chat-message-content {background:#E5E5EA;color:black;float: left;margin-left: 11px;}
#chat .chat_left .chat .chat-message-history .chat-message-recipient .chat-message-content:before {left:-7px;border-left:20px solid #E5E5EA;-webkit-transform:translate(0, -2px);-ms-transform:translate(0, -3px);transform:translate(0, -3px);-webkit-border-bottom-right-radius: 20px;border-bottom-right-radius: 20px;-webkit-border-bottom-left-radius: 20px;border-bottom-left-radius: 20px;}
#chat .chat_left .chat .chat-message-history .chat-message-recipient .chat-message-content:after {left:4px;width: 26px;background:white;-webkit-border-bottom-right-radius: 10px;border-bottom-right-radius: 10px;-webkit-transform:translate(-30px, -3px);-ms-transform:translate(-30px, -2px);transform:translate(-30px, -2px);}
#chat .chat_left .chat .chat-message-history .date-between-message {float: right;text-align: center;margin-top: 25px;margin-bottom: 25px;height: 20px;width: 100%;}
#chat .chat_left .chat .chat-message-history .date-between-message span {background-color: #c5e1ff;padding: 0 6px;-webkit-border-radius: 4px;border-radius: 4px;}
#chat .chat_left .chat .chat-message-history .chat-message-status i {font-size: smaller;margin: 0 0 0 -4px;vertical-align: initial;}
#chat .chat_left .chat .chat-message-history .chat-message-status span {margin-right: 10px;}
#chat .chat_left .chat .chat-message-history .chat-message-block .chat-message-content {color: red;border: 1px solid red;}
#chat .chat .chat-message-box {position: relative;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-orient: horizontal;-webkit-box-direction: normal;-webkit-flex-direction: row;-ms-flex-direction: row;flex-direction: row;-webkit-box-pack: center;-webkit-justify-content: center;-ms-flex-pack: center;justify-content: center;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;background: var(--white);border-top: 1px #e7e7e7 solid;padding: 4px 0px 4px 0;}
#chat .chat .chat-message-box .send_message {width: 42px;padding: 0 5px;position: absolute;right: 5px;}
#chat .chat .chat-message-box .send_message img {width: 100%;}
#chat .chat .chat-message-box .send_message img[disable="true"] {opacity: 0.5;}
#chat .chat .chat-message-box textarea {width: 99%;min-height: 50px;border: none;background: #f4f4f4;outline: 0;padding: 6px 48px 6px 42px;}
#chat .chat .chat-message-box button {background: #39a956;color: #ffffff;font-size: 15px;height: 49px;margin: 3px 0;border: none;outline: 0;position: absolute;right: 0;}
#chat .chat .chat-message-box .chat_upload_image {display: block;}
#chat .chat .chat-message-box .attach_button {display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-pack: center;-webkit-justify-content: center;-ms-flex-pack: center;justify-content: center;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;width: 42px;padding: 0 5px;position: absolute;left: 5px;}
#chat .chat .chat-message-box .attach_button i {font-size: 24px;}
i.green {color: #099400;}
i.red {color: #ea0021;}

.simplebar-content {padding: 0 !important;background: var(--white);}
#message-scroll{width: 100%;height: 300px;padding: 0}
#popup_chat_exit {position: fixed;left: 0;right: 0;top: 0;bottom: 0;background-color: rgba(0,0,0,0.7);display: none;-o-transition: all .1s;transition: all .1s;-webkit-transition: all .1s;z-index: 99999;}
#popup_chat_exit #modal_chat_deactive{position: fixed;left: 0;right: 0;top: 10%;width: 85%;max-width: 725px;background-color: #fff;overflow-y: auto;max-height: 85%;margin: 0 auto;font-size: 14px;padding: 14px 10px;}
#modal_chat_deactive {text-align: center;}
#modal_chat_deactive button {width: 200px;padding: 5px;display: block;margin: 11px auto 0 auto;}

@media (min-width: 900px) {
    #chat .chat_left .chat .chat-header .chat_back{display: none;}
    #chat .chat_right .user-list .users_higher_900{display: block;}
    #chat .chat_right .user-list .users_lesser_900{display: none;}
}
@media (max-width: 899.98px) {
    #chat {-webkit-box-orient: vertical;-webkit-box-direction: normal;-webkit-flex-direction: column;-ms-flex-direction: column;flex-direction: column;}
    #chat .chat .chat-message-box {position: fixed;left: 0;right: 0;bottom: 0}
    #chat .chat_right .user-list .users_higher_900{display: none;}
    #chat .chat_right .user-list .users_lesser_900{display: block;}
    #chat .chat_right {width: 100%;display: block;}
    #chat .chat_left {width: 100%;display: none;height: -webkit-calc(100vh - 90px);height: calc(100vh - 90px);}
    #chat .chat_left .chat {height: -webkit-calc(100vh - 95px);height: calc(100vh - 95px);}
    #chat .no_chat_selected {display: none !important;}
}
@media (max-width: 766.98px) {
    #chat .chat_right .user-list {padding-bottom: 0;}
    #chat {padding: 0}
}
@media (min-width: 576px) {
    #chat .chat,#chat_main #chat .chat_left {height: -webkit-calc(100vh - 105px);height: calc(100vh - 105px);}
}