@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 150ms ease-in-out;

} */
.bot-icon-container {
  right: -20px;

}
.bot-icon-container img{
  width: 30px;
  height: 30px;
}

.bot-floating-chat.expand {
  font-family: "Poppins", sans-serif;
  width: 100%;
  /* max-height: 400px; */
  height: 100%;
  /* border-radius: 5px; */
  cursor: auto;
  opacity: 1;
  background: transparent;
  box-shadow: none !important;
  bottom: 0;
}

.bot-floating-chat.enter {
  /* transform: translateY(0); */
  transform: translate(0, 0);
  opacity: 1;
  /* box-shadow: 0px 1px 3px rgb(0 0 0 / 12%), 0px 1px 2px rgb(0 0 0 / 14%); */
  box-shadow: none;
}

.bot-floating-chat {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* color: white; */
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  -webkit-transform: translate(0, -50px);

  transform: translateY(70px);
  transition: all 250ms ease-out;
  border-radius: 50%;
  opacity: 0;
  color: -moz-linear-gradient(-45deg, #183850 0, #183850 25%, #192C46 50%, #22254C 75%, #22254C 100%);
  color: -webkit-linear-gradient(-45deg, #183850 0, #183850 25%, #192C46 50%, #22254C 75%, #22254C 100%);
  /* background-repeat: no-repeat;
  background-attachment: fixed; */
  background: transparent;
}

.bot-floating-chat.enter:hover {
  /* box-shadow: 0 10px 20px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%); */
  box-shadow: none;
  opacity: 1;
}

.bot-floating-chat .fa {
  font-size: 44px;
}

.bot-floating-chat .img {
  width: 44px;
}

.bot-card-title {
  margin-bottom: 15px !important;
}

.bot-card-button {
  width: 100%;
  /* padding: 12px 24px; */
  padding: 12px;
  max-width: 100%;
  color: #00a4bd;
  border-color: #cbd6e2;
  font-size: 12px;
  border-radius: 3px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #fff;
  border: 1px solid #7fd1de;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.bot-private-button {
  border-radius: 3px;
  border-style: solid;
  border-width: 1px;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  font-weight: 400;
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: all .15s ease-out;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  margin: 5px 0;
}

.bot-private-button span {
  display: block;
  overflow: hidden;
}

button {
  border: 0;
  background-color: transparent;
  cursor: pointer;
}

div.bot-minimize {
  height: 40px;
}

div.bot-list--active {
  transform: translateX(0);
}

@media (max-width: 500px) {
  div.bot-list--active {
    transform: translateX(50%);
  }
}

.bot-conversation__name {
  font-size: 16px;
}

.bot-conversation__bubble--left {
  position: relative;
}

.bot-conversation__bubble--left .bot-conversation__text {
  float: left;
  max-width: 85%;
  /* color: #e0f3ff; */
  color: #fff;
  /* background-color: #4867cb; */
  background-color: #1ea8e7;
}

.bot-conversation__bubble--left:before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 8px;
  height: 8px;
  border-bottom-right-radius: 10px;
  /* background-color: #32488f; */
  background-color: #1b9ad4;
}

.bot-conversation__bubble--right {
  position: relative;
}

.bot-conversation__bubble--right .bot-conversation__text {
  float: right;
  max-width: 85%;
  color: #332400;
  background-color: #cbad48;
}

.bot-conversation__bubble--right:before {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 8px;
  height: 8px;
  border-bottom-left-radius: 10px;
  background-color: #8f7a32;
}

.hide {
  display: none;
}

/* body {
  font-family: "Poppins", sans-serif;
  color: #122740;
  overflow-y: hidden;
} */
.bot-list,
.btn--camera {
  display: none !important;
}

.bot-mask {
  /* width: 300px;
  height: 400px; */
  /* width: calc( 100% - 50px); */
  width: calc(50% - 50px);
  /* height: calc(100% - 60px); */
  height: calc(90% - 40px);
  max-height: 460px;
  min-height: 220px;
  overflow: hidden;
  /* position: absolute; */
  position: fixed;
  /* bottom: 0; */
  bottom: 3px;
  /* right: 5rem; */
  /* right: 20px; */
  right: -15px;
  /* border-top-left-radius: 10px;
  border-top-right-radius: 10px; */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  animation: appear 1s ease-in 0s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: height 400ms cubic-bezier(0.65, 0.05, 0.36, 1);

}

@media (max-width: 500px) {
  .bot-floating-chat.expand .bot-mask {
    right: -10px;
    width: calc(90% - 10px);
    height: calc(100% - 20px);
  }
}

.bot-mask-container {
  width: 100%;
  height: 100% !important;
  display: flex;
  flex-direction: row;
  /* transform: translateX(-300px); */
  transition: transform 400ms cubic-bezier(0.65, 0.05, 0.36, 1);
}

@media (max-width: 500px) {
  .bot-mask-container {
    width: 100%;
    height: 100%;
    transform: translateX(0);
  }
}

.bot-list,
.bot-conversation {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f5f7fa;
}

@media (max-width: 500px) {

  .bot-list,
  .bot-conversation {
    width: 100vw;
    /* height: 100vh; */
    height: auto;
  }
}

.bot-list__header,
.bot-conversation__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  min-height: 40px;
  border-bottom: 1px solid #ced4da;
}

.bot-list__header-actions,
.bot-conversation__header-actions {
  display: flex;
  flex-direction: row;
}

.bot-conversation__header .bot-conversation__btn {
  padding: 0;
}

.bot-list__body,
.bot-conversation__body {
  height: 100%;
  padding: 0.8rem;
  position: relative;
  overflow-y: auto;
  background-color: #eff2f6;
  font-size: 14px;
}

.bot-conversation .btn--list {
  width: 100px !important
}

.bot-conversation .btn .sg-logo {
  width: 75px;
}

.bot-list .btn,
.bot-conversation .btn {
  width: 40px;
  height: 40px;
}

.bot-list .btn svg,
.bot-conversation .btn svg {
  color: #1f4cad;
  fill: #1f4cad;
}

.bot-list .btn:hover,
.list .btn:focus,
.bot-conversation .btn:not(.btn--list):hover,
.bot-conversation .btn:not(.btn--list):focus {
  background-color: #1f4cad;
}

.bot-list .btn:hover svg,
.list .btn:focus svg,
.bot-conversation .btn:hover svg,
.bot-conversation .btn:focus svg {
  color: white;
  fill: white;
}

.bot-list__header {
  padding: 0 0.8rem;
}

.bot-list__chat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f5f7fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
}

.bot-list__chat:hover,
.bot-list__chat:focus {
  border: 1px solid #1f4cad;
  box-shadow: 0 0 3px #4867cb;
}

.bot-list__user {
  margin-bottom: 0.3rem;
}

.bot-list__message {
  display: inline-block;
  color: #484f56;
  width: 215px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 500px) {
  .bot-list__message {
    width: 85%;
  }
}

.bot-list__sent {
  display: inline-block;
  vertical-align: text-bottom;
}

.bot-list__sent svg {
  width: 1rem;
  height: 1rem;
  stroke: #008500;
}

.bot-list__sent svg:last-child {
  margin-left: -0.7rem;
}

.bot-list__preview {
  width: 100%;
}

.bot-conversation__info {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-grow: 1;
  padding-left: 0.8rem;
  color: #243366;
  border-left: 1px solid #ced4da;
}

.bot-conversation__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #63de17;
  margin-right: 0.4rem;
}

.bot-conversation__bubble {
  margin-bottom: 0.8rem;
}

.bot-conversation__bubble:before,
.bot-conversation__bubble:after {
  content: "";
  display: block;
  clear: both;
}

.bot-conversation__text {
  border-radius: 3px;
  padding: 0.6rem;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.bot-conversation__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  z-index: 1;
  padding: 0.8rem;
  border-top: 1px solid #ced4da;
}

.bot-conversation__write {
  width: 100%;
  padding: 0.4rem;
  border: 0;
  border-radius: 5px;
  border: 1px solid #ced4da;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.bot-conversation__write:focus {
  border: 1px solid #4867cb;
  box-shadow: 0 0 3px #4867cb;
}

.bot-conversation .btn--send {
  border-radius: 3px;
}

/*--------------------
Bounce
--------------------*/
@-webkit-keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}

@keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }

  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}

@-webkit-keyframes ball {
  from {
    transform: translateY(0) scaleY(0.8);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes ball {
  from {
    transform: translateY(0) scaleY(0.8);
  }

  to {
    transform: translateY(-10px);
  }
}

/*--------------------
Messages
--------------------*/
.bot-messages-content {
  flex: 1 1 auto;
  /*  color: rgba(255, 255, 255, .5);
  color: #fff;*/
  overflow: hidden;
  position: relative;
  width: 100%;
}

.bot-messages .bot-messages-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 101%;
  width: 100%;
}

.bot-messages-content .bot-message {
  /* clear: both;
  float: left;
  padding: 6px 10px 7px;
  border-radius: 20px 20px 20px 0;
  background: #eee; */
  /*rgba(0, 0, 0, 0.1);*/
  /* margin: 8px 0;
  font-size: 14px;
  line-height: 1.4; */
  margin-left: 35px;
  margin-top: 15px;
  position: relative;
  /* border: 1px solid #ccc; */
  /*text-shadow: 0 1px 1px rgba(0, 0, 0, .2);*/
}

.bot-card-title {
  font-size: 14px;
  color: #e0f3ff;
  font-weight: 700;
}

.bot-messages-content .bot-message.loading {
  clear: both;
  float: left;
  padding: 6px 10px 7px;
  border-radius: 20px 20px 20px 0;
  /* background: #4867cb; */
  background-color: #1fa5e2;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  margin-left: 35px;
  position: relative;
  border: 1px solid #ccc;
  /* text-shadow: 0 1px 1px rgb(0 0 0 / 20%);*/
}

.bot-messages-content .bot-message .timestamp {
  position: absolute;
  bottom: -15px;
  font-size: 10px;
  color: #555;
  right: 30px;
  /* color: rgba(255, 255, 255, .7);*/
}

.bot-messages-content .bot-message .bot-checkmark-sent-delivered {
  position: absolute;
  bottom: -15px;
  right: 10px;
  font-size: 12px;
  color: #999;
}

.bot-messages-content .bot-message .bot-checkmark-read {
  color: blue;
  position: absolute;
  bottom: -15px;
  right: 16px;
  font-size: 12px;
}

.bot-messages-content .bot-message::before {
  /*  content: '';
    position: absolute;
    bottom: -6px;
    border-top: 6px solid rgba(0, 0, 0, 0.1);
    left: 0;
    border-right: 7px solid transparent;*/
}

.bot-messages-content .bot-message .bot-avatar {
  position: absolute;
  z-index: 1;
  bottom: -10px;
  left: -35px;
  border-radius: 30px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.bot-messages-content .bot-message .bot-avatar img {
  width: 100%;
  height: auto;
}

.bot-messages-content .bot-message.bot-message-personal {
  /* float: right; */
  text-align: right;
  /*      background: linear-gradient(120deg, #ddd, #eee);*/
  /* background: #fff;
  border: 1px solid #ccc; */
  border-radius: 20px 20px 0 20px;
}

.bot-messages-content .bot-message.message-personal::before {
  /*
      content:"";
  border-color:#4A90E2 transparent;
    width:0;
    border-style:solid;*/
  /*
   left: auto;
   right: 0;
   border-right: none;
  border-left: 8px solid transparent;
   border-top: 9px solid #fff;

   bottom: -8px;*/
}

.bot-messages-content .bot-message.new {
  transform: scale(0);
  transform-origin: 0 0;
  -webkit-animation: bounce 500ms linear both;
  animation: bounce 500ms linear both;
}

.bot-messages-content .bot-message:last-child {
  margin-bottom: 50px;
}

.bot-profile-card {
  /* width: 60%; */
  width: auto;
  display: block;
  background: #4867cb;
  border-radius: 8px;
  border: 1px solid #E6EBF2;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: 0 2px 20px rgb(0 0 0 / 10%);
  box-shadow: 0 2px 20px rgb(0 0 0 / 10%);
  float: none !important;
  margin: 0 0 0.5rem !important;
  overflow: hidden;
}

.bot-profile-card-header {
  display: block;
  width: 100%;
  border-bottom: 1px solid #d7d7d7;
  padding: 1rem;
}

.bot-profile-card .bot-profile-card-header .bot-header-image {
  border: 2px solid transparent;
  border-radius: 50%;
  overflow: hidden;
  width: 64px;
  height: 64px;
  display: inline-block;
  vertical-align: middle;
}

.bot-profile-card .bot-profile-card-header .bot-header-image img {
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.bot-profile-card .bot-profile-card-header .bot-header-text {
  display: inline-block;
  width: calc(100% - 120px);
  font-size: 1rem;
  vertical-align: middle;
  margin-left: 15px;

}

.bot-profile-card .bot-profile-card-header .bot-header-text .bot-header-text-name {
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #e0f3ff;
  text-decoration: none;
}

.bot-profile-card .bot-profile-card-header .bot-header-text .bot-userdetails {
  font-size: 1rem;
  font-weight: 400;
  line-height: 24px;
  color: #e0f3ff;
  padding: 0 0 10px;
}

.bot-profile-card .bot-profile-card-content {
  padding: 1rem;
}

.bot-profile-card .bot-profile-card-content .bot-forumContent,
.bot-profile-card .bot-profile-card-content p,
.bot-profile-card .bot-profile-card-content>span {
  font-size: 1rem !important;
  font-weight: 400 !important;
  white-space: initial !important;
  line-height: 1.5rem;
  color: #e0f3ff;
}

.bot-forumContent {
  width: 100% !important;
  padding-bottom: 0 !important;
}

.bot-messages-content .bot-message.new {
  transform: scale(0);
  transform-origin: 0 0;
  -webkit-animation: bounce 500ms linear both;
  animation: bounce 500ms linear both;
}

.bot-messages-content .bot-message.loading::before {
  position: relative;
  /*  top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  /*  background: rgba(255, 255, 255, .5);*/
  /* background: #888; */
  background-color: #f5f7f5;
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  border: none;
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
  margin-left: 5px;
}

.bot-messages-content .bot-message.loading span {
  display: block;
  font-size: 0;
  width: 20px;
  height: 10px;
  position: relative;
}

.bot-messages-content .bot-message.loading span::before {
  position: relative;
  /*  top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  /*  background: rgba(255, 255, 255, .5);*/
  /* background: #888; */
  background-color: #f5f7f5;
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  margin-left: -2px;
}

.bot-messages-content .bot-message.loading span::after {
  position: relative;
  /*  top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  /*  background: rgba(255, 255, 255, .5);*/
  /* background: #888; */
  background-color: #f5f7f5;
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  margin-left: 12px;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

@keyframes appear {
  1% {
    transform: translateY(30px);
    opacity: 0;
  }

  25% {
    transform: translateY(-15px);
  }

  65% {
    transform: translateY(10px);
    opacity: 1;
  }

  80% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}