/* style sheets */
.ui-chatbox {
  border: 1px solid #33cc99;
  border-radius: 5px;
  position: fixed;
  z-index: 998;
  bottom: 0;
  background-color: #f1f0f0;
  max-width: 308px;
}

.ui-chatbox-titlebar {
  padding: 0 10px 0 0 !important;
  height: 40px;
  cursor: pointer;
  background-color: #33cc99;
  color: #fff;
}

.ui-widget-header>span {
  margin-left: 11px;
}

.ui-chatbox-content {
  padding: 0px;
  margin: 0px;
  border: 0px;
}

.ui-chatbox-log {
  padding: 10px;
  height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
}

.ui-chatbox-input {
  padding: 3px;
  overflow: hidden;
}

.ui-chatbox-input-box {
  margin: 5px 0px 5px 5px;
  border: 1px solid #c5d1da;
  padding: 2px;
  border-radius: 5px;
  height: 39px;
  resize: none;
  vertical-align: middle;
  width: 90%;
}

.ui-chatbox-icon {
  float: right;
  padding-left: 5px;
  margin-top: -1px;
}

.ui-chatbox-input-focus {
  border-color: #6699FF;
}

.ui-chatbox-msg {
  margin-top: 10px;
  float: left;
  clear: both;
  /* Source  : http://snipplr.com/view/10979/css-cross-browser-word-wrap */
  white-space: pre-wrap;
  /* CSS3 */
  white-space: -moz-pre-wrap;
  /* Firefox */
  white-space: -pre-wrap;
  /* Opera <7 */
  white-space: -o-pre-wrap;
  /* Opera 7 */
  word-wrap: break-word;
  /* IE */
}

.ui-widget-header span {
  line-height: 38px;
}

.ui-widget-header img {
  width: 20px;
}

/* .ui-widget-header > span::before {
    content       : url(../../assets/images/chat/menu_icon3_white.png);
    vertical-align: inherit;
    margin-right  : 6px;
    top           : 5px;
    position      : absolute;
    margin-left   : -31px;
    width         : 28px;
} */

.ui-chatbox-up-image {
  cursor: pointer;
  width: 13px;
  height: 17px;
  /* background-color: #338dff; */
  position: absolute;
  bottom: 18px;
  right: 18px;
}

/***************CHAT*****************/
.chat-msg-box {
  width: 50px;
  display: inline-block;
  padding-right: 5px;
}

.ui-chatbox-msg .media-content {
  background-color: #dde5f2;
  border-color: #dde5f2;
  position: relative;
  padding: 10px 12px;
  width: 100%;
  border-radius: 3px;
  display: inline-block;
  text-align: left;
}

.ui-chatbox-msg .media-annotation {
  color: #cbcbcb;
  font-size: 12px;
  line-height: 1.6666667;
  font-weight: 400;
}

.ui-chatbox-msg .media-content:before {
  border-top: 5px solid transparent;
  border-right: 5px solid;
  border-right-color: inherit;
  border-bottom: 5px solid transparent;
  content: '';
  left: -5px;
  top: 15px;
  position: absolute;
  margin-left: 0;
}

.chat-msg-box .img-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.ui-chatbox-msg {
  padding: 0px;
}

.media-body,
.media-left,
.media-right {
  position: relative;
  overflow: visible !important;
}

.media-body {
  text-align: right;
}

/* .me.ui-chatbox-msg {
    font-size       : 11px;
    float           : left;
    width           : 83%;
    background-color: #e1e1e1;
    display         : flex !important;
    margin-left     : 10px;
}

.me.ui-chatbox-msg::before {
    width      : 0;
    height     : 0;
    content    : url('../../assets/images/chat/chat_left.png');
    margin-left: -7px;
} */

/* .support.ui-chatbox-msg {
  font-size: 11px;
  float: right;
  width: 83%;
  background-color: #fff;
  text-align: left;
  margin-right: 10px;
} */

.support.ui-chatbox-msg .media-content {
  background-color: #f0f2f5;
  border-color: #f0f2f5;
}

.support.ui-chatbox-msg .media-content:before {
  left: auto;
  right: -5px;
  border-right: 0;
  border-top: 5px solid transparent;
  border-left: 5px solid;
  border-left-color: inherit;
  border-bottom: 5px solid transparent;
}

.support .media-body {
  text-align: left;
}

.support .media-left {
  padding-left: 10px;
  padding-right: 0px;
}

/* .support.ui-chatbox-msg::before {
  width: 0;
  height: 0;
  content: url('../../assets/images/chat/chat_right.png');
  margin-left: 232px !important;
}

.support.ui-chatbox-msg.offline::before {
  width: 0;
  height: 0;
  content: url('../../assets/images/chat/chat_right_blue.png');
  margin-left: 232px;
} */

/* .support.ui-chatbox-msg>div {
  display: inline-block;
  padding-left: 5px;
  padding-right: 0px;
  margin-top: -12px;
  margin-bottom: 6px;
} */

.support.ui-chatbox-msg .chat-msg-box img {
  vertical-align: middle;
  width: 45px;
  height: 45px;
  border-radius: 50px;
}

.support.ui-chatbox-msg.offline {
  background-color: #b5ddf5;
}

.support.ui-chatbox-msg.offline p {
  text-align: justify;
}

.support.ui-chatbox-msg.offline .chat-msg-box {
  display: none;
}

.support.ui-chatbox-msg.offline::after {
  border-color: #b5ddf5 transparent transparent transparent;
}

.me.ui-chatbox-msg small,
.support.ui-chatbox-msg small {
  font-size: 8px;
  color: #232222;
}

/* .me.ui-chatbox-msg span {
    margin-left: 7px;
}

.support.ui-chatbox-msg span {
    margin-right: 7px;
} */

.support.ui-chatbox-msg p,
.me.ui-chatbox-msg p {
  word-break: break-word;
  margin-bottom: 0px;
}

.ant-avatar.avatar-flag {
  width: 22px;
  height: 17px;
  border-radius: 0px;
  margin: -3px 7px 0px 0px;
}