/* *******************************
message-area
******************************** */

.message-area {
  height: calc(100vh - 135px);
  overflow: hidden;
  background: #f5f5f5;
}

.chat-area {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  height: calc(100vh - 135px);
  overflow: hidden;
  min-height: calc(100vh - 135px);
}

.chatlist {
  outline: 0;
  height: 100%;
  overflow: hidden;
  width: 300px;
  float: left;
  padding: 15px;
  background: #f9f9f9;
}

.chat-area .modal-content {
  border: none;
  border-radius: 0;
  outline: 0;
  height: calc(100vh - 135px);
}

.chat-area .modal-dialog-scrollable {
  height: calc(100vh - 135px) !important;
}

.chatbox {
  width: auto;
  overflow: hidden;
  height: calc(100vh - 135px);
}

.chatbox .modal-dialog,
.chatlist .modal-dialog {
  max-width: 100%;
  margin: 0;
}

.chat-area .form-control {
  display: block;
  width: 80%;
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #222;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #eeeeee;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.chat-area .form-control:focus {
  outline: 0;
  box-shadow: inherit;
}

.chat-list h3 {
  color: #222;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: capitalize;
  margin-bottom: 0;
}

.chat-list p {
  color: #343434;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: capitalize;
  margin-bottom: 0;
}

.msg-head h3 {
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

.msg-head p {
  color: #343434;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: capitalize;
  margin-bottom: 0;
}

.msg-head {
  padding: 15px 30px;
  border-bottom: 1px solid #eeeeee;
}

.moreoption {
  display: flex;
  align-items: center;
  justify-content: end;
}

.moreoption .navbar {
  padding: 0;
}

.moreoption li .nav-link {
  color: #222;
  font-size: 16px;
}

.moreoption .dropdown-toggle::after {
  display: none;
}

.moreoption .dropdown-menu[data-bs-popper] {
  top: 100%;
  left: auto;
  right: 0;
  margin-top: 0.125rem;
}

.msg-body ul {
  overflow: hidden;
}

.msg-body ul li {
  list-style: none;
  margin: 15px 0;
}

.msg-body ul li.sender {
  display: block;
  width: 100%;
  position: relative;
}

.msg-body ul li.sender:before {
  display: block;
  clear: both;
  content: '';
  position: absolute;
  top: -6px;
  left: -7px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 12px 15px 12px;
  border-color: transparent transparent #f5f5f5 transparent;
  -webkit-transform: rotate(-37deg);
  -ms-transform: rotate(-37deg);
  transform: rotate(-37deg);
}

.msg-body ul li.sender p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  padding: 15px;
  background: #f5f5f5;
  display: inline-block;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-bottom: 0;
}

.msg-body ul li.sender p b {
  display: block;
  color: #180660;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.msg-body ul li.repaly {
  display: block;
  width: 100%;
  text-align: right;
  position: relative;
}

.msg-body ul li.repaly:before {
  display: block;
  clear: both;
  content: '';
  position: absolute;
  bottom: 15px;
  right: -7px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 12px 15px 12px;
  border-color: transparent transparent #6b7a86 transparent;
  -webkit-transform: rotate(37deg);
  -ms-transform: rotate(37deg);
  transform: rotate(37deg);
}

.msg-body ul li.repaly p {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  padding: 15px;
  background: #6b7a86;
  display: inline-block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  margin-bottom: 0;
}

.msg-body ul li.repaly p b {
  display: block;
  color: #061061;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.msg-body ul li.repaly:after {
  display: block;
  content: '';
  clear: both;
}

.time {
  display: block;
  color: #000;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

li.repaly .time {
  margin-right: 20px;
}

.divider {
  position: relative;
  z-index: 1;
  text-align: center;
}

.msg-body h6 {
  text-align: center;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  background: #fff;
  display: inline-block;
  padding: 0 5px;
  margin-bottom: 0;
}

.divider:after {
  display: block;
  content: '';
  clear: both;
  position: absolute;
  top: 12px;
  left: 0;
  border-top: 1px solid #ebebeb;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.send-box {
  padding: 15px;
  border-top: 1px solid #eeeeee;
  position: relative;
}

.send-box form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.send-box .form-control {
  display: block;
  width: 85%;
  padding: 10px 20px 10px 70px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #0d0d14;
  background-color: #eeeeee;
  background-clip: padding-box;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 10px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  height: 52px;
}

.send-box button {
  border: none;
  background: #fb7800;
  padding: 0.375rem 5px;
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  width: 15%;
  margin-left: 1%;
  height: 52px;
}

.send-box button i {
  margin-right: 5px;
}

.button-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  text-align: center;
  margin: 0 auto;
}

button:focus {
  outline: 0;
}

.btn-main {
  color: var(--color-light);
  font-size: 12px;
  min-width: 107px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--grey-color);
  border: none;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  height: 44px;
  line-height: 24px;
  display: inline-block;
}

.btn-main:hover,
.btn-main:focus {
  color: var(--color-light);
  background: var(--color-primary);
}

.chat-header {
  display: flex;
  justify-content: center;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  padding: 20px 30px;
}

.chatbot-page .content_wrapper {
  padding-left: 0;
  padding-right: 0;
  padding-top: 85px;
  padding-bottom: 0;
}

.send-btns .button-wrapper {
  position: absolute;
  width: 52px;
  background: #eeeeee;
  border-radius: 10px;
  padding: 5px 5px;
  margin-bottom: 0;
  overflow: hidden;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 15px;
}

#upload {
  display: inline-block;
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.send-btns .button-wrapper span.label img {
  width: 12px;
  transform: rotate(-45deg);
}

.send-btns .attach .form-control {
  display: inline-block;
  width: 120px;
  height: auto;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #343945;
  background-color: #f6f7fa;
  background-clip: padding-box;
  border: 1px solid #f6f7fa;
  border-radius: 3px;
  margin-bottom: 5px;
}

.button-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  text-align: center;
  margin: 0 auto;
}

button:focus {
  outline: 0;
}

.add-apoint {
  display: inline-block;
  margin-left: 5px;
}

.add-apoint a {
  text-decoration: none;
  background: #f6f7fa;
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  color: #343945;
}

.add-apoint a svg {
  margin-right: 5px;
}

.chat-icon {
  display: none;
}

.closess i {
  display: none;
}

/* .main_btn {
  border-radius: 10px;
} */

.main_btn i.fas.fa-trash-alt {
  font-size: 18px;
}

@media (max-width: 767px) {
  .chatlist {
    display: none;
  }

  .chatbot-page .content_wrapper {
    padding-top: 70px;
  }

  .msg-head {
    padding: 15px 15px;
  }

  .modal-dialog-scrollable .modal-body {
    padding: 20px 15px;
  }

  .send-box button {
    font-size: 0;
  }

  .send-box button i {
    font-size: 20px;
  }
}

.send-btns {
  position: absolute;
  top: 19px;
  left: 19px;
}

.send-box button.voice_button {
  width: 44px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  height: 44px;
  position: relative;
}

.send-box button.voice_button > i {
  margin: 0;
  z-index: 1;
  position: relative;
}

.voice_button i {
  font-size: 23px;
  transition: 0.9s;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #b2b2b2;
  color: #fff;
  border-radius: 10px;
  z-index: 1;
}

button.voice_button.active i {
  background: #fb7800;
}

.voice_button:before {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: 10px;
  opacity: 0.35;
  z-index: 0;
  position: absolute;
  left: 0;
  top: 0;
}
.voice_button.active:before {
  background: #fb7800;
  animation: bounce 0.8s ease-in-out infinite 0.5s;
}
.voice_button i {
  color: #ffffff;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  75% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.3);
  }
}
