#chats_frame{  width : 30%;
    height: 100%;
    position: fixed ;
    top: 60px;
    left: 0;
    overflow: scroll; }

#chatsleft_toolbar{ padding-top: 30px; 
    width: 100%;
    text-align: center;
    margin-bottom : 20px;
}

#chatsleft_toolbar img{     
    cursor: pointer;
    width: 30px;
    height: 30px;    
}

#preview_frame{ width: 70%; height: 100%;
    background: rgb(204,204,204);
    background: radial-gradient(circle, rgb(164, 164, 164) 35%, rgb(204, 204, 204) 100%); 
    position : fixed;
    right: 0;
    top: 60px;
    overflow-y:  scroll;
    overflow-x: hidden; 
}

#status_frame{ position: fixed; 
    bottom: 0; 
    left: 0;
    padding: 5px 10px;
    z-index: 500;
    background: #fff;
    width: 28%;
    height: 25px;
    border-top: 1px solid #ddd;
}

#status_frame small{ position: absolute; left: 40%;}
#status_frame img{ margin-right: 15px;}
#load_img{ position : absolute;
    right: 5px;
    z-index : 300;
}

#bottom_frame{ width: 70%; height: 85px;
    background: rgb(204,204,204);
    display: block; 
    position: fixed;
    bottom: 0;
    padding: 0 10px;
    border-top : 1px solid #ccc;
    z-index : 100;
    overflow: hidden;
}

#previewpanel{
    width: 70%;
    display: block;
    padding: 5px;
    position: fixed;
    bottom: 85px;    
    background-color: #fff;
    z-index : 101;
    border: 1px solid #ccc;
}
#previewpanel div{
    display: inline-grid;
    padding-left: 20px;
}
#previewpanel div:nth-child(1){ width: 10%;}
#previewpanel div:nth-child(2){ width: 75%; }
#previewpanel span{
    display: block;
}

#previewpanel a{ position: absolute; 
    top: 0;
    right: 60px;
    font-size:large;
}

.bottom_preview_type{color: #ceb238; font-weight: bold; text-align: left; text-transform: capitalize; }
.bottom_preview_title{color: #ceb238;}
.bottom_preview_msg{font-style: italic; color: #888;}

#chat_buttons{ position: relative; width: 100%;}
#chat_buttons>div{ display: inline-block;}

#chat_buttons .chat_emoji{ margin-right: 20px; cursor: pointer;}
#chat_buttons #textbox_wrapper{ width : 70%; margin-right : 50px;}
#chat_buttons textarea{ width: 100%; height: 20px; resize: none;}
#chat_buttons .gallery_upload{ margin-right: 10px}
#chat_buttons button{cursor: pointer; background: none;border: 0;}

#chat_buttons img{    
    /*filter: opacity(70%);*/
    filter: grayscale(100%);
}

.emoji{ width : 40px; height : 40px; vertical-align: super;}
.gallery_upload > input{
    display: none;
}

.gallery_upload img{
    width: 48px;
    cursor: pointer;
}

#emoji_images{ width: 480px; height: 220px; 
    background-color: #fff;
    position: fixed; bottom: 100px;
    overflow: hidden;
    z-index : 80;
    padding: 20px;
    font-size: 2em;
    text-align: justify; 
}
#emoji_images span{margin-right: 10px;}
#emoji_images span:hover{ background-color:  #ccc; cursor: pointer; border-radius: 20%; }
#emoji_images::selection{  background : transparent; }
#emoji_images span::selection{  background : transparent; }

#convo_load{ position: fixed; 
    right: 40%; 
    width: 48px; height: auto;
    margin-top: 50px;
    z-index : 100;
}


.forward{ width: 320px; 
    position: fixed; bottom: 100px; 
    background-color: #fff;
    z-index: 100;
    border-top-right-radius: 15px;
    padding-bottom : 10px; 
}

.forward img, .forwarded img{ max-height: 80px; float: left; margin: 0 20px;}

#top_bar{ 
    width: 100%; 
    height: 60px;
    display: block; 
    position: fixed;
    top: 60px;
    background: rgb(204,204,204);
    border-bottom : 1px solid #ccc;
    z-index : 100;
    overflow: hidden; 
}

#top_bar>div, #chatsleft_toolbar>div{ display: inline-block; height : 100%; }
#top_bar img{ cursor: pointer; }


#topbar_back{  width: 10%;
    padding: 10px;
    visibility : hidden;
}
#topbar_back img, #topbar_opts img{    
    width: 30px;
    height: 30px;
    filter: opacity(70%);
}

#topbar_title{ width: 45%;
    overflow: hidden;
    vertical-align: top; 
    text-align: left;
    padding: 0px;
}

#topbar_title div {
    display: inline-block;
    vertical-align: top;    
}

.friend_pic_holder {    
    margin-right : 30px; 
}

.friend_pic_holder img{     
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.friend_details_holder {
    text-align: left;
    min-width: 50%;
    height: 100%;
    padding: 5px 0px;
}

.friend_topinfo{ 
    display: inline-block;
    vertical-align: top;
}

#topbar_opts{  width: 10%; text-align: right;}

#chats_toolbar_menu, #chatsbar_menu{ list-style-type: none; 
    padding : 15px;
    min-width: 200px;
    background: white;    
    position : fixed; 
    top: 90px; right: 50px;
    z-index: 800;
    
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: -1px 1px 5px #bbb;
}

#chatsbar_menu{
    position : absolute; 
    top: 50px; right: 20px;
}

#chats_toolbar_menu li, #chatsbar_menu li{ 
    margin-bottom : 5px;     
    padding:7px;
    user-select: none;
}
#chats_toolbar_menu li:focus {
    outline: none !important;
}

#chats_toolbar_menu li:hover, #chatsbar_menu li:hover{
  background-color: #eeeeee9e;
}

#chats_toolbar_menu a, #chatsbar_menu a{ color:#111; text-decoration:none;}
#chats_toolbar_menu img, #chatsbar_menu img{ margin-right: 20px; vertical-align: middle;}

#conversation{width: 90%;
    display: block;
    position: absolute;
    top: 70px;
    min-height: 720px;
    z-index: 20;
    padding-bottom: 200px; 
}

#conversation li{ max-width: 50%; min-width : 20%;
    list-style-type : none;
    padding : 20px;
    border-radius : 18px;
    margin : 5px 0;
    clear: right;
}

.preview, .report{ height : 120px; overflow : hidden}
.preview img{ height: 100px; margin-right: 10px;}

.msg_in,.forwarded{ background-color : #a8e483a1; 
    float : right; 
    border-top-right-radius : 0px !important;;
}
.msg_out{ background-color: #fff; 
    border-top-left-radius : 0px !important;;
}
.actual_msg{
    white-space: pre-wrap;
}

.forwarded{ height : 85px; padding: 0; overflow: hidden; }
.forwarded h5 , .preview h5{margin: 0; }
.time_sent, .status, .platform{ display: block; text-align: right; font-size: 0.7em; color: #555;}
.status img{width: 13px; height: auto; vertical-align: middle; display: inline; margin-right: 5px;}
.msg_out img, .msg_in img{ max-width: 360px;}
.platform{ font-style: italic; color : #777;}
.report{ background-color: #fff; float: right; border-radius: 0 !important; padding-top: 0 !important; text-align: center;}
.report img{ height: 80px;}
.deleted{
    max-width: unset !important;
    padding : 0 !important;
    font-style: italic;
    color : #444;
}

.deleted img{
    width: 24px; 
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.del_in, .del_out{
    border-radius: 10px;
    padding: 10px 20px;
    margin: 0;
}

.del_in{ float: right;
    background-color : #a8e483a1;
}
.del_out{ float: left;
    background-color: #fff; 
}

.system{
    padding : 0 !important;
    font-style: italic;
    color : #444;
    text-align: center;
    
    border-radius: 0 !important;;
}
.system .time_sent{display: none;}

#conversation .time_sent{margin-top: 20px;}
.phone_detect{
    font-size: small;
    color: #222;
    margin-right: 5px;
}
.phone_detect a{
    color: blue;
    text-decoration: underline;
    float: right;
}

.unread_msg{ display: inline; float: right;
    margin-right: 10px; 
    background-color: #63f65fbf;
    border-radius : 50%;
    padding : 3px 10px;
}

.bubble_button{
    width: 24px; height: auto;
    float: right;
    cursor: pointer;
    margin-left: 10px;    
    visibility: hidden;
}

.bubble_on{
    visibility: visible;
}

#chats_left{ padding-left: 10px; padding-bottom: 30%;}
#chats_left img{ 
    height: 60px; 
    width: 60px;
    float: left; 
    vertical-align : top; 
    margin: 5px 10px 5px 0; 
    border-radius: 50%;
    object-fit:  cover;
}
#chats_left li{display : block; height : 80px; 
    border-bottom : 1px solid #ddd;
    text-align : center;
    overflow : hidden;
    position: relative;
    padding-right: 5px;
}
#chats_left h5{  margin: 0; text-align : left; }
#chats_left blockquote{font-size: small; 
    text-align: left;
}

#chats_left .status{float: unset;position: absolute; bottom: 10px;right: 10px;font-size: 0.65em;}
#chats_left .chatSeen{ display: none;}
.chat_active{ background-color: #ddd; }
.user_ls, .usr_tgt{ display: none;}
.deletedChat{ filter: sepia(100%);}

.retail_checkmark.chatpage, .verified_checkmark.chatpage{
  position: absolute;
  bottom: 10px;
  left: 35px;
  z-index: 600;
  font-size: 10px;
  padding: 2px 3px;
  border: 2px solid #8fea8f; 
}

.retail_checkmark.previewframe, .verified_checkmark.previewframe{  
  display: inline !important;
  position: relative;  
  left: -55px;
  bottom: 5px;
  z-index: 600;
  font-size: 10px;
  padding: 2px 3px;
  border: 2px solid #8fea8f; 
}

.unset{background-color: unset; float: unset}

#img_upload{ width: 360px; 
    position: fixed; bottom: 100px; 
    right: 100px;
    background-color: #eee;
    z-index: 110;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding : 10px;
    text-align: center;
}
#img_upload img{max-height: 100px;}
#img_upload a{ font-size: 1.5em; color: red; vertical-align: top; }
#img_upload button{ background-color: #d7c36e;
    padding : 10px;
    cursor: pointer;
}

#image_frame{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 610;
    background : #000;
    text-align: center;
}

#image_frame .image_full{
    max-height: 100%;
    margin-top: 60px;
}

#image_frame .close_image{
    position: fixed;
    top: 65px;
    right: 20px;
    cursor: pointer;
}

.close_image img{
    width: 48px;
    height: 48px;
}

.bubblemenu{
    position: absolute;
    background: #fff;
    border : 1px solid #CCC;
}

.bubblemenu ul{
  list-style-type: none;
  margin: 0;
  padding: 5px 0;
}

#conversation .bubblemenu li{
    max-width: unset;
    min-width: unset;
    padding: 6px 25px;
    margin: unset;
    clear: unset;
    border-radius: unset;
    cursor:pointer;
}

.bubblemenu li:hover{
    background: #EEE;
}

.bubblemenu a{
    display: block;
}

.my_options{
    right: 10px;
}

.replied_bubble{
    font-style: italic;
    padding : 2px 10px;
    color : #444;    
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.msg_in .replied_bubble{
    background-color: #cdeeb7a1;
}

#installAppDIV{
    width: 100%;
    height: auto;     
    position: fixed;
    bottom: 40px;
    left: 0;
    z-index: 600;
    background: #cbffcb;
}

#installAppDIV p{
    padding: 10px;
    text-align: center;
    margin: 0;
}

#installAppDIV img{
    float: right;
    margin: 5px;
}

#deletedChat{
    position: absolute;
    left: 10%;
    width: 80%;
    background: #fff;
    padding: 20px;
}

