/* /////////////////////////////////////// */
/* /////////  Full Screen Mode /////////// */
/* /////////////////////////////////////// */

.miniChatBox.fullscreen {
  background: #eee;
  margin-top: 0px !important;
}

.miniChatBox.fullscreen .chat_box {
  background: #fff;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0px !important;
}

.miniChatBox.fullscreen,
.miniChatBox.fullscreen .chat_box {
  width: 100% !important;
  max-width: 650px !important;
  height: auto;
}

.miniChatBox.fullscreen .chat_box .close_box {
  display: none;
}

/* /////////////////////////////////////// */
/* /////////  Full Screen + Mobile /////////// */
/* /////////////////////////////////////// */

.miniChatBox.fullscreen.mobile {
  padding-top: 0px !important;
  border: none !important;
}

.miniChatBox.fullscreen.mobile .chat_box {
  border: none !important;
  border-radius: 0px !important;
}

/* /////////////////////////////////////// */
/* /////////  Small Box tweaks /////////// */
/* /////////////////////////////////////// */

#messages_box {
  position: relative !important;
  min-height: 700px;
}

.miniChatBox {
  position: absolute;
  left: 0px;
  top: 0px;
  margin: 0px;
  z-index: 999;
  display: none;
}

.miniChatBox,
.miniChatBox .chat_box {
  width: 350px;
  /* height: 510px; */
}

.miniChatBox .chat_box {
  min-width: 300px;
  margin: auto;
  -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  border: 4px solid #eee;
}

.miniChatBox .chat_heading {
  padding: 10px !important;
  height: 50px !important;
  cursor: move;
}
.miniChatBox .chat_heading .title {
  font-size: 14px;
  margin-top: 3px !important;
}
.miniChatBox .chat_heading .date {
  display: none;
}

/* /////////////////////////////////////// */
/* /////////  Messages Box Start /////////// */
/* /////////////////////////////////////// */

.chat_box {
  padding: 0px;
  position: relative;
  border: 0px;
  border-radius: 10px;
  margin: 0px;
}

.chat_box.embed {
  -webkit-box-shadow: 0px 0px 30px -5px rgba(0, 0, 0, 0.21);
  -moz-box-shadow: 0px 0px 30px -5px rgba(0, 0, 0, 0.21);
  box-shadow: 0px 0px 30px -5px rgba(0, 0, 0, 0.21);
}

.chat_box .chat_heading {
  padding: 25px 15px 15px 15px;
  border-bottom: 1px solid #eee;
  height: 100px;
  overflow: hidden;
}

.chat_box .chat_heading .title {
  margin-top: 0px;
  height: 25px;
  overflow: hidden;
  line-height: 24px;
}

.chat_box .chat_heading .date {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

.chat_box .chat_heading .btn.as_admin {
  padding: 0px;
  height: 30px;
  width: 32px;
  font-size: 16px;
  line-height: 28px;
}
.chat_box .chat_heading .btn.as_admin.active {
  border-color: #0bb335 !important;
  background-color: #10bb3a !important;
  color: #d6fdd8 !important;
}

.chat_box .chat_msgs {
  padding: 0px 5px 0px 0px;
  border-bottom: 1px solid #eee;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #fef8e8;
  overflow-y: auto;
  transition: all 0.5s ease 0s;
  -webkit-box-shadow: inset 0px 0px 30px -5px rgba(0, 0, 0, 0.21);
  -moz-box-shadow: inset 0px 0px 30px -5px rgba(0, 0, 0, 0.21);
  box-shadow: inset 0px 0px 30px -5px rgba(0, 0, 0, 0.21);
  direction: rtl !important;
  height: 350px;
}

.chat_box .chat_msgs .load_more {
  width: 100%;
  text-align: center;
  height: 30px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.chat_box .chat_msgs .load_more .load_more_comments {
  margin: auto;
  text-align: center;
}

.chat_box .chat_msgs .msg {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0 10px;
  max-width: 90% !important;
}

.chat_box .chat_msgs .media-body {
  width: auto;
  min-width: 220px;
}

.chat_box .chat_msgs .msg .media,
.chat_box .chat_msgs .msg .media-right,
.chat_box .chat_msgs .msg .media-object,
.chat_box .chat_msgs .msg .media-body {
  overflow: visible !important;
}

.chat_box .chat_msgs .userphoto {
  padding: 0px 0 0 0;
}
.chat_box .chat_msgs .userphoto img {
  height: 38px;
  width: 38px;
  border-radius: 24px;
  object-fit: cover;
  -webkit-box-shadow: 0 1px 20px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 0px 20px 1px rgba(0, 0, 0, 0.05);
}

.chat_box .chat_msgs .content {
  background: #fffefe;
  display: block;
  width: 100%;
  margin-right: 10px;
  padding: 0 10px;
  border-radius: 8px;
  position: relative;
  -webkit-box-shadow: 0 1px 20px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 0px 20px 1px rgba(0, 0, 0, 0.05);
}

/* admin comment style */
.chat_box .chat_msgs .msg.admin_comment .content {
  background-color: #ffd6cf !important;
}
.chat_box .chat_msgs .msg.admin_comment .content .date {
  color: #7b7b7b !important;
}
/* admin comment style end */

/* pending comment style */
.chat_box .chat_msgs .msg.pending .content {
  background-color: #4c76c6 !important;
}
.chat_box .chat_msgs .msg.pending .content .text {
  color: #f1f1f1 !important;
  padding: 8px 5px 8px 5px;
  font-size: 11px;
}
.chat_box .chat_msgs .msg.pending .content .date {
  color: #f1f1f1 !important;
}
.chat_box .chat_msgs .msg.pending .content .head .username {
  color: #f1f1f1 !important;
}
/* rejected comment style end */

/* rejected comment style */
.chat_box .chat_msgs .msg.rejected .content {
  background-color: #5e6162 !important;
}
.chat_box .chat_msgs .msg.rejected .content .text {
  color: #f1f1f1 !important;
  padding: 8px 5px 8px 5px;
  font-size: 11px;
}
.chat_box .chat_msgs .msg.rejected .content .date {
  color: #f1f1f1 !important;
}
.chat_box .chat_msgs .msg.rejected .content .head .username {
  color: #f1f1f1 !important;
}
/* rejected comment style end */

.chat_box .chat_msgs .content .head {
  padding: 5px 0 0 0;
}

.chat_box .chat_msgs .content .head .username {
  font-weight: bold;
  font-size: 12px;
}
.chat_box .chat_msgs .content .date {
  font-size: 10px;
  color: #ccc;
  position: absolute;
  left: 10px;
  top: 10px;
}

.chat_box .chat_msgs .content .text {
  line-height: 24px;
  font-size: 12px;
  padding: 5px 5px 10px 5px;
  word-break: break-word;
}

.chat_box .chat_msgs .content .attach.audio {
  padding-top: 10px;
  padding-bottom: 10px;
}

.chat_box .chat_msgs .content .attach.video {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  margin: auto;
  max-width: 250px;
  width: 100%;
}
.chat_box .chat_msgs .content .attach.video video {
  margin: 0px auto 5px auto;
  border-radius: 2px;
  width: 100%;
}

.chat_box .chat_msgs .content .attach.doc {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.chat_box .chat_msgs .content .attach.doc a {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: bold;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
  color: #fe7231;
  outline: 0 !important;
}

.chat_box .chat_msgs .content .attach.doc a span.extension {
  float: left;
  margin-top: -2px;
  vertical-align: top;
}

.chat_box .chat_msgs .content .attach.image {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.chat_box .chat_msgs .content .attach.image img {
  max-width: 250px;
  width: 100%;
  margin: 0px auto 5px auto;
}
.chat_box .chat_msgs .content .attach.image a {
  display: block;
  outline: 0 !important;
}

/* ########################### */
/* ########## Chat Input */
/* ########################### */

.chat_box .chat_input {
  padding: 15px;
  height: 110px !important;
}

.chat_box .chat_input .textInputContainer {
  position: relative;
  height: 42px;
}

.chat_box .chat_input .textInputContainer .btn.as_admin {
  position: absolute;
  bottom: 7px;
  left: 5px;
  z-index: 1000;
  padding: 1px 0px 0px 0px;
  height: 24px;
  width: 24px;
  line-height: 24px !important;
  border-radius: 12px;
}

.chat_box .chat_input .textInputContainer .btn.as_admin.active {
  background-color: #10bb3a !important;
  color: #d6fdd8;
}

.chat_box .chat_input .textInputContainer .textInput {
  line-height: 24px !important;
  font-size: 12px !important;
  height: 40px;
  position: absolute;
  bottom: 0;
  width: 100%;
  max-height: 200px;
  border-radius: 10px;
}

.chat_box .chat_input .controls {
  margin-top: 10px;
}
.chat_box .chat_input .controls .btn.submit_comment {
  margin-right: 10px;
  border-radius: 10px;
  padding: 5px 15px;
}
.chat_box .chat_recorder .btn.show_chat_input,
.chat_box .chat_uploader .btn.show_chat_input,
.chat_box .chat_input .controls .btn.show_recorder,
.chat_box .chat_input .controls .btn.show_uploader {
  font-size: 17px !important;
  padding: 0px 10px !important;
}

.chat_box .chat_recorder .btn.show_chat_input,
.chat_box .chat_uploader .btn.show_chat_input {
  margin-top: 15px;
  text-decoration: none !important;
}

.chat_box .chat_input .controls .live_status {
  font-size: 10px;
  color: #aaa;
  display: none;
}
.chat_box .chat_input .controls .live_status .loading-icon {
  font-size: 4px;
}
.chat_box .chat_input .controls .live_status .loading-icon i {
  margin-left: 2px;
}

/* ########################### */
/* ########## Chat Recorder */
/* ########################### */

.chat_box .chat_recorder {
  padding: 25px 25px;
  height: 110px !important;
  display: none;
}

.chat_box .chat_recorder .btn-controls {
  height: 30px !important;
  width: 30px !important;
  border-radius: 15px !important;
  text-align: center !important;
  padding: 0px !important;
  display: inline-block;
  line-height: 30px !important;
}
.chat_box .chat_recorder .btn-controls i {
  line-height: 30px !important;
}

.chat_box .chat_recorder .recordingViewer {
  display: inline-block;
  vertical-align: top;
}
.chat_box .chat_recorder .recordingTimer {
  font-size: 22px;
  color: #4e6180;
}

/* ########################### */
/* ########## Chat Uploader */
/* ########################### */

.chat_box .chat_uploader {
  padding: 25px 25px;
  height: 110px !important;
  display: none;
}

/* ########################### */
/* ########## Chat No Access */
/* ########################### */

.chat_box .no_access {
  padding: 10px 25px;
  height: 110px !important;
  text-align: center;
}

.chat_box .no_access h4 {
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}
.chat_box .no_access h5 {
  font-size: 12px;
}

/* ///////////////////////////////////////// */
/* ///////// Background Styles ////// */
/* ///////////////////////////////////////// */
.backgroundChange .modal-body {
  max-height: 400px;
  overflow: auto;
}

.backgroundChange .selector {
  height: 80px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
  border: 2px solid #fff;
}
.backgroundChange .selector.active {
  border-color: #01aa2c;
}
.backgroundChange .selector input {
  display: none;
}
.backgroundChange .selector .selected {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 20px;
  text-align: center;
  border-radius: 15px;
  background-color: #fff;
  display: none;
}
.backgroundChange .selector .selected i {
  line-height: 30px !important;
}
.backgroundChange .selector.active .selected {
  display: inline-block;
}

.bg_style_1 {
  background-image: url("../images/chat/1.jpg");
}
.bg_style_2 {
  background-image: url("../images/chat/2.jpg");
}
.bg_style_3 {
  background-image: url("../images/chat/3.jpg");
}
.bg_style_4 {
  background-image: url("../images/chat/4.jpg");
}
.bg_style_5 {
  background-image: url("../images/chat/5.jpg");
}
.bg_style_6 {
  background-image: url("../images/chat/6.jpg");
}
.bg_style_7 {
  background-image: url("../images/chat/7.jpg");
}
.bg_style_8 {
  background-image: url("../images/chat/8.jpg");
}
.bg_style_9 {
  background-image: url("../images/chat/9.jpg");
}
.bg_style_10 {
  background-image: url("../images/chat/10.jpg");
}
.bg_style_11 {
  background-image: url("../images/chat/11.jpg");
}
.bg_style_12 {
  background-image: url("../images/chat/12.jpg");
}
.bg_style_13 {
  background-image: url("../images/chat/13.jpg");
}
.bg_style_14 {
  background-image: url("../images/chat/14.jpg");
}
.bg_style_15 {
  background-image: url("../images/chat/15.jpg");
}
.bg_style_16 {
  background-image: url("../images/chat/16.jpg");
}
.bg_style_17 {
  background-image: url("../images/chat/17.jpg");
}
.bg_style_18 {
  background-image: url("../images/chat/18.jpg");
}
.bg_style_19 {
  background-image: url("../images/chat/19.jpg");
}
.bg_style_20 {
  background-image: url("../images/chat/20.jpg");
}
.bg_style_21 {
  background-image: url("../images/chat/21.jpg");
}
.bg_style_22 {
  background-image: url("../images/chat/22.jpg");
}
.bg_style_23 {
  background-image: url("../images/chat/23.jpg");
}
.bg_style_24 {
  background-image: url("../images/chat/24.jpg");
}
.bg_style_25 {
  background-image: url("../images/chat/25.jpg");
}
.bg_style_26 {
  background-image: url("../images/chat/26.jpg");
}
.bg_style_27 {
  background-image: url("../images/chat/27.jpg");
}
.bg_style_28 {
  background-image: url("../images/chat/28.jpg");
}
.bg_style_29 {
  background-image: url("../images/chat/29.jpg");
}
.bg_style_30 {
  background-image: url("../images/chat/30.jpg");
}

@media (max-width: 767px) {
  .chat_box.standalone {
    margin: 0px -10px;
    border-radius: 0px !important;
  }
}

@media (max-width: 500px) {
  :root {
    --mobile_native_controls_height: 20px;
  }
  .chat_box {
    border: 0px !important;
    border-radius: 0px !important;
  }
  .chat_box .chat_input {
    padding-bottom: calc(
      15px + var(--mobile_native_controls_height)
    ) !important;
    height: calc(110px + var(--mobile_native_controls_height)) !important;
  }

  .chat_box .no_access {
    padding-bottom: calc(
      15px + var(--mobile_native_controls_height)
    ) !important;
    height: calc(110px + var(--mobile_native_controls_height)) !important;
  }

  .chat_box .chat_uploader {
    padding-bottom: calc(
      15px + var(--mobile_native_controls_height)
    ) !important;
    height: calc(110px + var(--mobile_native_controls_height)) !important;
  }
  .chat_box .chat_recorder {
    padding-bottom: calc(
      15px + var(--mobile_native_controls_height)
    ) !important;
    height: calc(110px + var(--mobile_native_controls_height)) !important;
  }

  .chat_box .chat_msgs .media-body {
    min-width: 100% !important;
    width: 100% !important;
  }
}
