/* .............. Global Mobile styles  ..............*/

@media screen and (min-width: 1px) and (max-width:999px) {

  body {
    overflow-y: scroll;
  }

  #chats_frame,
  #preview_frame {
    width: 100%;
    clear: both;
  }

  #chats_frame {
    top: 0px;
    z-index: 100;
    background: #fff;
  }

  #chats_left {
    margin-top: 0px;
  }

  #preview_frame {
    z-index: 600;
    position: absolute;
    top: 60px;
    right: 0px;
    display: flex;
    flex-flow: column;
    height: 100%;
  }

  #top_bar {
    top: 0px;
    height: 60px;
    background: #fff;
    cursor: default;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  #top_bar > div{
    vertical-align: bottom;
  }

  #topbar_back {
    width: 15%;
    height: 100%;
    padding: 0px;
    visibility: visible;
  }

  #topbar_title {
    width: 65%;
    font-size: small;
    padding: 5px;
  }

  #topbar_back img,
  #topbar_opts img {
    width: 30px;
    height: 30px;
  }

  #previewpanel {
    bottom : 80px;
  }

  #previewpanel.usertyping {
    display: none;
  }

  .friend_pic_holder {
    margin-right: 5px;
  }

  .friend_pic_holder img {
    width: 50px;
    height: 50px;
  }

  .retail_checkmark.previewframe,
  .verified_checkmark.previewframe {
    left: -30px;
    bottom: 0px;
  }

  #topbar_opts:focus,
  #topbar_back:focus {
    outline: none !important;
  }

  #topbar_opts:active,
  #topbar_back:active {
    background-color: #eee;
  }

  #bottom_frame {
    width: 100%;
    height: 60px;
    background: #fff;
    flex: 1 0 160px;
  }

  #conversation {
    width: 100%;
    display: inherit;
    position: relative;
    flex: 1 1 auto;
    padding-bottom: unset;
    min-height: unset;
    margin-bottom: 100px;
  }

  #conversation ul {
    margin: 0;
    padding: 10px;
  }

  #conversation li {
    max-width: 65%;
  }

  #conversation img {
    width: 100%;
    object-fit: scale-down
  }

  #convo_load {
    max-width: 40px;
  }

  .msg_inview img {
    max-width: 100%;
  }

  ::-webkit-scrollbar {
    display: none;
  }

  #chats_frame h2 {
    margin: 10px 0;
  }

  #status_frame {
    width: 100%;
    font-size: small;
  }

  #load_img {
    right: 25px;
  }

  .emoji {
    display: none;
  }

  .gallery_upload {
    position: absolute;
    left: 10px;
    bottom: 10px;
  }

  .chat_send {
    vertical-align: top;
    padding-right: 10px;
  }

  #chat_buttons #textbox_wrapper {
    width: 68%;
    margin: 0 10px;
  }

  #chat_buttons textarea {
    border: none;
    resize: none;
    margin-top: 0px;
  }

  #img_upload {
    width: 100%;
    height: 80%;
    position: fixed;
    bottom: 0%;
    right: 0%;
    background-color: #eee;
  }

  #img_upload img {
    max-height: 200px;
    margin-right: 10px;
  }

  #img_upload button {
    display: block;
    clear: both;
    width: 80%;
    margin: 20px 40px;
  }

  #img_upload a {
    font-size: 2em;
  }

  .chat_active {
    background-color: unset;
  }

  #chats_toolbar_menu {
    top: 50px;
    right: 10px;
  }

  #chatsleft_toolbar {
    padding-top: 15px;
  }

  #chats_toolbar_menu li:active {
    background-color: #eee;
  }

  .gallery_upload img,
  .chat_send img {
    width: 40px;
    height: 40px;
  }

  #image_frame .close_image {
    top: 10px;
    cursor: unset;
  }

  #image_frame .image_full {
    margin-top: 100px;
  }

  .bubble_button {
    width: 24px !important;
  }

  .system {
    max-width: unset !important;
  }

  .deleted img {
    width: 24px !important;
  }


  .fixed_position{ 
    position: fixed !important;
  }

  .sticky_position{ 
    position: sticky !important;  
    bottom: 0; 
  }

  .actual_msg {
    max-width: 95%;
  }
}

/* end of global styles */