
.o_chat_window {
  display: -ms-flexbox;
  display: -moz-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -ms-flex-flow: column nowrap;
  -moz-flex-flow: column nowrap;
  -webkit-flex-flow: column nowrap;
  flex-flow: column nowrap;
  position: fixed;
  width: 300px;
  max-width: 100%;
  height: 400px;
  max-height: 100%;
  font-size: 12px;
  background-color: white;
  border: 1px solid gray;
  border-radius: 3px;
  z-index: 3;
}
@media (max-width: 767px) {
  .o_chat_window {
    width: 100%;
    height: 100%!important;
  }
  .o_chat_window.o_folded {
    display: none;
  }
}
@media print {
  .o_chat_window {
    display: none;
  }
}
.o_chat_window .o_chat_header {
  display: -ms-flexbox;
  display: -moz-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -ms-flex: 0 0 auto;
  -moz-flex: 0 0 auto;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  color: white;
  background-color: #79a5d2;
  padding: 5px;
}
@media (max-width: 767px) {
  .o_chat_window .o_chat_header {
    height: 60px;
  }
  .o_chat_window .o_chat_header .o_chat_title,
  .o_chat_window .o_chat_header .o_chat_window_close {
    font-size: 22px;
  }
}
.o_chat_window .o_chat_header .o_chat_title {
  cursor: pointer;
  -ms-flex: 1 1 auto;
  -moz-flex: 1 1 auto;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.o_chat_window .o_chat_header .o_chat_window_close {
  color: white;
  padding: 3px;
  margin-left: 5px;
}
.o_chat_window .o_chat_header .o_chat_window_close:hover {
  background-color: #538bc5;
}
.o_chat_window .o_mail_thread {
  -ms-flex: 1 1 auto;
  -moz-flex: 1 1 auto;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  overflow: auto;
}
.o_chat_window .o_mail_thread .o_thread_date_separator {
  margin-top: 0px;
  margin-bottom: 15px;
  border-color: lightgray;
}
.o_chat_window .o_mail_thread .o_thread_date_separator .o_thread_date {
  background-color: white;
}
.o_chat_window .o_mail_thread .o_thread_message {
  padding: 4px 5px;
}
.o_chat_window .o_mail_thread .o_thread_message .o_thread_message_sidebar {
  margin-right: 5px;
}
.o_chat_window .o_chat_composer {
  -ms-flex: 0 0 auto;
  -moz-flex: 0 0 auto;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}
.o_chat_window .o_chat_composer > input {
  padding: 5px;
  width: 100%;
}
.o_chat_window_dropdown {
  width: auto;
  height: 28px;
  color: white;
  background-color: #79a5d2;
  cursor: pointer;
}
@media (max-width: 767px) {
  .o_chat_window_dropdown {
    display: none;
  }
}
.o_chat_window_dropdown .o_chat_window_dropdown_toggler {
  padding: 5px;
}
.o_chat_window_dropdown .o_chat_window_dropdown_toggler .o_total_unread_counter {
  position: absolute;
  top: -10px;
  left: auto;
  bottom: auto;
  right: 0;
  background-color: #336699;
  padding: 0 2px;
  font-size: smaller;
}
.o_chat_window_dropdown.open .o_chat_window_dropdown_toggler .o_total_unread_counter {
  display: none;
}
.o_chat_window_dropdown > ul {
  max-width: 300px;
  padding: 0;
}
.o_chat_window_dropdown > ul > li.o_chat_header {
  font-size: 12px;
  padding: 3px 5px;
}
.o_chat_window_dropdown > ul > li.o_chat_header ~ li.o_chat_header {
  border-top: 1px solid white;
}
.o_chat_window_dropdown > ul > li.o_chat_header:hover {
  background-color: #538bc5;
  color: white;
}
.o_ui_blocked .o_chat_window {
  z-index: 1101;
}
.o_no_chat_window .o_chat_window {
  display: none;
}
