
.o_thread_window {
  direction: ltr;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-flow: column nowrap; flex-flow: column nowrap;
  position: fixed;
  width: 325px;
  max-width: 100%;
  height: 400px;
  max-height: 100%;
  font-size: 12px;
  background-color: #FAFAFA;
  border-radius: 6px 6px 0 0;
  z-index: 1051;
  box-shadow: -5px -5px 10px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767.98px) {
  .o_thread_window {
    width: 100%;
    height: 100% !important;
    box-shadow: none;
  }
  .o_thread_window.o_folded {
    display: none;
  }
}

@media print {
  .o_thread_window {
    display: none;
  }
}

.o_thread_window .o_thread_window_header {
  align-items: center;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto;
  color: white;
  padding: 5px 10px;
  border-radius: 3px 3px 0 0;
  border-bottom: 1px solid #DEE2E6;
  background-color: #7C7BAD;
  padding: 8px;
}

@media (max-width: 767.98px) {
  .o_thread_window .o_thread_window_header {
    align-items: center;
    height: 46px;
    padding: 0;
    border-radius: 0px;
  }
  .o_thread_window .o_thread_window_header .o_thread_window_title {
    font-size: 16px;
    margin-left: 10px;
  }
  .o_thread_window .o_thread_window_header .o_thread_window_close {
    padding: 14.5px;
    font-size: 17px;
    color: white;
  }
}

.o_thread_window .o_thread_window_header .o_thread_window_avatar {
  margin: -6px 6px -6px 0;
  position: relative;
}

.o_thread_window .o_thread_window_header .o_thread_window_avatar img {
  height: 25px;
  width: 25px;
  border-radius: 50%;
}

.o_thread_window .o_thread_window_header .o_thread_window_avatar span {
  bottom: -4px;
  right: -2px;
  position: absolute;
}

.o_thread_window .o_thread_window_header .o_thread_window_avatar span .fa-circle-o {
  display: none;
}

.o_thread_window .o_thread_window_header .o_thread_window_title {
  cursor: pointer;
  -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_thread_window .o_thread_window_header .o_thread_window_title .o_mail_thread_typing_icon {
  padding-left: 2px;
}

.o_thread_window .o_thread_window_header .o_thread_window_title .o_mail_thread_typing_icon .o_mail_thread_typing_icon_dot {
  background: #DEE2E6;
}

.o_thread_window .o_thread_window_header .o_thread_window_buttons {
  -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto;
}

.o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_close, .o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_expand {
  color: white;
  padding: 0px 3px;
  margin-left: 5px;
  opacity: 0.7;
}

.o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_close:hover, .o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_close:focus, .o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_close.focus, .o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_expand:hover, .o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_expand:focus, .o_thread_window .o_thread_window_header .o_thread_window_buttons .o_thread_window_expand.focus {
  opacity: 1;
}

.o_thread_window .o_mail_thread {
  flex: 1 1 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.o_thread_window .o_mail_thread .o_thread_date_separator {
  margin: 0px 0px 15px 0px;
}

.o_thread_window .o_mail_thread .o_thread_date_separator .o_thread_date {
  background-color: #FAFAFA;
}

.o_thread_window .o_mail_thread .o_thread_message {
  padding: 4px 5px;
}

.o_thread_window .o_mail_thread .o_thread_message .o_thread_message_sidebar {
  margin-right: 5px;
}

@media (min-width: 768px) {
  .o_thread_window .o_mail_thread .o_thread_message .o_attachment {
    width: 33.33333333%;
  }
}

.o_thread_window .o_thread_composer input {
  width: 100%;
}

.o_thread_window_dropdown {
  width: auto;
  height: 28px;
  color: white;
  background-color: #212529;
  cursor: pointer;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .o_thread_window_dropdown {
    display: none;
  }
}

.o_thread_window_dropdown .o_thread_window_header {
  border-radius: 0;
}

.o_thread_window_dropdown .o_thread_window_dropdown_toggler {
  padding: 5px;
}

.o_thread_window_dropdown .o_thread_window_dropdown_toggler .o_total_unread_counter {
  position: absolute;
  top: -10px;
  left: auto;
  bottom: auto;
  right: 0;
  background-color: #7C7BAD;
  padding: 0 2px;
  font-size: smaller;
}

.o_thread_window_dropdown.show .o_thread_window_dropdown_toggler .o_total_unread_counter, .o_thread_window_dropdown .o_thread_window_expand {
  display: none;
}

.o_thread_window_dropdown > ul {
  max-width: 325px;
  padding: 0;
}

.o_thread_window_dropdown > ul > li.o_thread_window_header {
  font-size: 12px;
  padding: 3px 5px;
}

.o_thread_window_dropdown > ul > li.o_thread_window_header ~ li.o_thread_window_header {
  border-top: 1px solid white;
}

.o_thread_window_dropdown > ul > li.o_thread_window_header:hover {
  background-color: #5f5e97;
}

.o_ui_blocked .o_thread_window {
  z-index: 1101;
}

.o_no_thread_window .o_thread_window {
  display: none;
}

.o_mail_thread_loading {
  display: -webkit-box; display: -webkit-flex; display: flex;
  align-items: center;
  justify-content: center;
}

.o_mail_thread_loading_icon {
  margin-right: 5px;
}

.o_mail_thread .o_thread_show_more, .o_mail_activity .o_thread_show_more {
  text-align: center;
}

.o_mail_thread .o_mail_thread_content, .o_mail_activity .o_mail_thread_content {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column;
  min-height: 100%;
}

.o_mail_thread .o_thread_bottom_free_space, .o_mail_activity .o_thread_bottom_free_space {
  height: 15px;
}

.o_mail_thread .o_thread_tooltip_container, .o_mail_activity .o_thread_tooltip_container {
  display: inline;
  position: relative;
}

.o_mail_thread .o_thread_date_separator, .o_mail_activity .o_thread_date_separator {
  margin-top: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid #CED4DA;
  text-align: center;
}

@media (max-width: 767.98px) {
  .o_mail_thread .o_thread_date_separator, .o_mail_activity .o_thread_date_separator {
    margin-top: 0px;
    margin-bottom: 15px;
  }
}

.o_mail_thread .o_thread_date_separator .o_thread_date, .o_mail_activity .o_thread_date_separator .o_thread_date {
  position: relative;
  top: 10px;
  margin: 0 auto;
  padding: 0 10px;
  font-weight: bold;
  background: white;
}

.o_mail_thread .o_thread_new_messages_separator, .o_mail_activity .o_thread_new_messages_separator {
  margin-bottom: 15px;
  border-bottom: solid #abaaca 1px;
  text-align: right;
}

.o_mail_thread .o_thread_new_messages_separator .o_thread_separator_label, .o_mail_activity .o_thread_new_messages_separator .o_thread_separator_label {
  position: relative;
  top: 8px;
  padding: 0 10px;
  background: white;
  color: #abaaca;
  font-size: smaller;
}

.o_mail_thread .o_thread_message, .o_mail_activity .o_thread_message {
  display: -webkit-box; display: -webkit-flex; display: flex;
  padding: 4px 16px;
  margin-bottom: 0px;
}

.o_mail_thread .o_thread_message.o_mail_not_discussion, .o_mail_activity .o_thread_message.o_mail_not_discussion {
  background-color: rgba(222, 226, 230, 0.5);
  border-bottom: 1px solid #CED4DA;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar, .o_mail_activity .o_thread_message .o_thread_message_sidebar {
  flex: 0 0 36px;
  margin-right: 10px;
  margin-top: 2px;
  text-align: center;
  font-size: smaller;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image {
  position: relative;
  height: 36px;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image .o_updatable_im_status, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image .o_updatable_im_status {
  width: 36px;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image .o_mail_user_status, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image .o_mail_user_status {
  position: absolute;
  bottom: 0;
  right: 0;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image .o_mail_user_status.fa-circle-o, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_sidebar_image .o_mail_user_status.fa-circle-o {
  display: none;
}

@media (max-width: 767.98px) {
  .o_mail_thread .o_thread_message .o_thread_message_sidebar, .o_mail_activity .o_thread_message .o_thread_message_sidebar {
    margin-top: 4px;
    font-size: x-small;
  }
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_avatar, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_side_date, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_side_date {
  display: none;
  margin-left: -5px;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_star, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_star {
  display: none;
  margin-right: -5px;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_thread_message_side_date, .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_thread_message_side_date {
  opacity: 0;
}

.o_mail_thread .o_thread_message .o_thread_message_sidebar .o_mail_thread_message_seen_icon:not(.o_all_seen), .o_mail_activity .o_thread_message .o_thread_message_sidebar .o_mail_thread_message_seen_icon:not(.o_all_seen) {
  opacity: 0.3;
}

.o_mail_thread .o_thread_message .o_thread_icon, .o_mail_activity .o_thread_message .o_thread_icon {
  cursor: pointer;
  opacity: 0;
}

.o_mail_thread .o_thread_message .o_thread_icon.fa-star, .o_mail_activity .o_thread_message .o_thread_icon.fa-star {
  opacity: 0.6;
  color: gold;
}

.o_mail_thread .o_thread_message:hover .o_thread_message_side_date, .o_mail_thread .o_thread_message.o_thread_selected_message .o_thread_message_side_date, .o_mail_activity .o_thread_message:hover .o_thread_message_side_date, .o_mail_activity .o_thread_message.o_thread_selected_message .o_thread_message_side_date {
  display: inline-block;
  opacity: 0.6;
}

.o_mail_thread .o_thread_message:hover .o_thread_icon, .o_mail_thread .o_thread_message.o_thread_selected_message .o_thread_icon, .o_mail_activity .o_thread_message:hover .o_thread_icon, .o_mail_activity .o_thread_message.o_thread_selected_message .o_thread_icon {
  display: inline-block;
  opacity: 0.6;
}

.o_mail_thread .o_thread_message:hover .o_thread_icon:hover, .o_mail_thread .o_thread_message.o_thread_selected_message .o_thread_icon:hover, .o_mail_activity .o_thread_message:hover .o_thread_icon:hover, .o_mail_activity .o_thread_message.o_thread_selected_message .o_thread_icon:hover {
  opacity: 1;
}

.o_mail_thread .o_thread_message:hover .o_thread_message_sidebar .o_mail_thread_message_seen_icon, .o_mail_thread .o_thread_message.o_thread_selected_message .o_thread_message_sidebar .o_mail_thread_message_seen_icon, .o_mail_activity .o_thread_message:hover .o_thread_message_sidebar .o_mail_thread_message_seen_icon, .o_mail_activity .o_thread_message.o_thread_selected_message .o_thread_message_sidebar .o_mail_thread_message_seen_icon {
  display: none;
}

.o_mail_thread .o_thread_message .o_mail_redirect, .o_mail_activity .o_thread_message .o_mail_redirect {
  cursor: pointer;
}

.o_mail_thread .o_thread_message .o_thread_message_core, .o_mail_activity .o_thread_message .o_thread_message_core {
  -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  word-wrap: break-word;
}

.o_mail_thread .o_thread_message .o_thread_message_core > pre, .o_mail_activity .o_thread_message .o_thread_message_core > pre {
  white-space: pre-wrap;
  word-break: break-word;
  text-align: justify;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_mail_note_title, .o_mail_activity .o_thread_message .o_thread_message_core .o_mail_note_title {
  margin-top: 9px;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_mail_subject, .o_mail_activity .o_thread_message .o_thread_message_core .o_mail_subject {
  font-style: italic;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_mail_notification, .o_mail_activity .o_thread_message .o_thread_message_core .o_mail_notification {
  font-style: italic;
  color: gray;
}

.o_mail_thread .o_thread_message .o_thread_message_core [summary~=o_mail_notification], .o_mail_activity .o_thread_message .o_thread_message_core [summary~=o_mail_notification] {
  display: none;
}

.o_mail_thread .o_thread_message .o_thread_message_core p, .o_mail_activity .o_thread_message .o_thread_message_core p {
  margin: 0 0 9px;
}

.o_mail_thread .o_thread_message .o_thread_message_core p:last-child, .o_mail_activity .o_thread_message .o_thread_message_core p:last-child {
  margin-bottom: 0;
}

.o_mail_thread .o_thread_message .o_thread_message_core a, .o_mail_activity .o_thread_message .o_thread_message_core a {
  display: inline-block;
  word-break: break-all;
}

.o_mail_thread .o_thread_message .o_thread_message_core :not(.o_image_box) > img, .o_mail_activity .o_thread_message .o_thread_message_core :not(.o_image_box) > img {
  max-width: 100%;
  height: auto;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_mail_body_long, .o_mail_activity .o_thread_message .o_thread_message_core .o_mail_body_long {
  display: none;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_mail_info, .o_mail_activity .o_thread_message .o_thread_message_core .o_mail_info {
  margin-bottom: 2px;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_thread_message_star, .o_mail_thread .o_thread_message .o_thread_message_core .o_thread_message_needaction, .o_mail_thread .o_thread_message .o_thread_message_core .o_thread_message_reply, .o_mail_thread .o_thread_message .o_thread_message_core .o_thread_message_notification, .o_mail_activity .o_thread_message .o_thread_message_core .o_thread_message_star, .o_mail_activity .o_thread_message .o_thread_message_core .o_thread_message_needaction, .o_mail_activity .o_thread_message .o_thread_message_core .o_thread_message_reply, .o_mail_activity .o_thread_message .o_thread_message_core .o_thread_message_notification {
  padding: 4px;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_thread_message_notification, .o_mail_activity .o_thread_message .o_thread_message_core .o_thread_message_notification {
  color: grey;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_thread_message_notification.o_thread_message_notification_error, .o_mail_activity .o_thread_message .o_thread_message_core .o_thread_message_notification.o_thread_message_notification_error {
  color: red;
  opacity: 1;
  cursor: pointer;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_attachments_list:last-child, .o_mail_thread .o_thread_message .o_thread_message_core .o_attachments_previews:last-child, .o_mail_activity .o_thread_message .o_thread_message_core .o_attachments_list:last-child, .o_mail_activity .o_thread_message .o_thread_message_core .o_attachments_previews:last-child {
  margin-bottom: 30px;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_thread_tooltip_container, .o_mail_activity .o_thread_message .o_thread_message_core .o_thread_tooltip_container {
  display: inline;
  position: relative;
}

.o_mail_thread .o_thread_title, .o_mail_activity .o_thread_title {
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 125%;
}

.o_mail_thread .o_thread_title.o_neutral_face_icon:before, .o_mail_activity .o_thread_title.o_neutral_face_icon:before {
  width: 120px;
  height: 140px;
  background: transparent url(/web/static/src/img/neutral_face.svg) no-repeat center;
}

.o_mail_thread .o_mail_no_content, .o_mail_activity .o_mail_no_content {
  position: absolute;
  top: 30%;
  left: 0;
  bottom: 0;
  right: 0;
  text-align: center;
  font-size: 115%;
}

.o_mail_thread .o_thread_message .o_thread_message_core .o_mail_read_more, .o_mail_activity .o_thread_message .o_thread_message_core .o_mail_read_more {
  display: block;
}

.o_web_client .popover .o_thread_tooltip_icon {
  min-width: 1rem;
}

.o_web_client.o_touch_device .o_mail_thread .o_thread_icon {
  opacity: 0.6;
}

.o_mail_thread_typing_icon {
  position: relative;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.o_mail_thread_typing_icon .o_mail_thread_typing_icon_dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #343A40;
  animation: o_mail_thread_typing_icon_dot 1.5s linear infinite;
}

.o_mail_thread_typing_icon .o_mail_thread_typing_icon_dot:nth-child(2) {
  animation-delay: -1.35s;
}

.o_mail_thread_typing_icon .o_mail_thread_typing_icon_dot:nth-child(3) {
  animation-delay: -1.2s;
}

@keyframes o_mail_thread_typing_icon_dot {
  0%, 40%, 100% {
    transform: initial;
  }
  20% {
    transform: translateY(-5px);
  }
}

.o_mail_thread_message_seen_icon {
  position: relative;
  opacity: 0.6;
}

.o_mail_thread_message_seen_icon.o_all_seen {
  color: #875A7B;
}

.o_mail_thread_message_seen_icon:hover {
  cursor: pointer;
  opacity: 0.8;
}

.o_mail_thread_message_seen_icon .fa-check:nth-child(1) {
  padding-left: 3px;
}

.o_mail_thread_message_seen_icon .fa-check:nth-child(2) {
  position: absolute;
  top: -1px;
  left: 0px;
}

.o_livechat_button {
  position: fixed;
  right: 0;
  bottom: 0;
  margin-right: 12px;
  min-width: 100px;
  cursor: pointer;
  white-space: nowrap;
  background-color: rgba(60, 60, 60, 0.6);
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 10px;
  color: white;
  text-shadow: #3b4c58 1px 1px 0px;
  border: 1px solid #505050;
  border-bottom: 0px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  z-index: 5;
}

.o_thread_window {
  z-index: 1041;
}

.o_thread_window .o_thread_date_separator {
  display: none;
}

.o_thread_window .btn {
  color: #FFFFFF;
  background-color: #30908e;
  border-color: #2d8685;
  border: 1px solid transparent;
}

.o_thread_window .btn-sm, .o_thread_window .btn-group-sm > .btn {
  padding: 0.0625rem 0.3125rem;
  font-size: 0.75rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.o_thread_window .o_livechat_rating {
  /* Livechat Rating : feedback smiley */
  -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto;
  overflow: auto;
  padding: 15px;
  font-size: 14px;
  /* feedback reason */
}

.o_thread_window .o_livechat_rating .o_livechat_email {
  font-size: 12px;
}

.o_thread_window .o_livechat_rating .o_livechat_email > div {
  display: -webkit-box; display: -webkit-flex; display: flex;
  padding: 5px 0;
}

.o_thread_window .o_livechat_rating .o_livechat_email > div input {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #FFFFFF;
  background-clip: padding-box;
  border: 1px solid #CED4DA;
}

.o_thread_window .o_livechat_rating .o_livechat_email > div button {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.o_thread_window .o_livechat_rating .o_livechat_no_feedback {
  text-decoration: underline;
  cursor: pointer;
  margin: 20px 0;
}

.o_thread_window .o_livechat_rating .o_livechat_rating_box {
  margin: 40px 0 30px 0;
}

.o_thread_window .o_livechat_rating .o_livechat_rating_choices {
  margin: 10px 0;
}

.o_thread_window .o_livechat_rating .o_livechat_rating_choices > img {
  width: 65px;
  opacity: 0.60;
  cursor: pointer;
  margin: 10px;
}

.o_thread_window .o_livechat_rating .o_livechat_rating_choices > img:hover, .o_thread_window .o_livechat_rating .o_livechat_rating_choices > img.selected {
  opacity: 1;
}

.o_thread_window .o_livechat_rating .o_livechat_rating_reason {
  margin: 10px 0px 25px 0px;
  display: none;
  /* hidden by default */
}

.o_thread_window .o_livechat_rating .o_livechat_rating_reason > textarea {
  width: 100%;
  height: 70px;
  resize: none;
}

.o_thread_window .o_livechat_rating .o_livechat_rating_reason_button > input {
  float: right;
}

.o_thread_window .o_composer_text_field {
  line-height: 1.3em;
}

.o_livechat_operator_avatar {
  padding-right: 8px;
}

.o_livechat_no_rating {
  opacity: 0.5;
}

