@-webkit-keyframes blink {
  0%, 100% {
    opacity: 0.2;
  }

  20% {
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 0.2;
  }

  20% {
    opacity: 1;
  }
}

html,
body {
  font-family: Lato, sans-serif;
  background-color: #f1f1f1;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.desktop-closed-message-avatar,
.mobile-closed-message-avatar {
  visibility: hidden !important;
  background: #A0028D !important;
}

.desktop-closed-message-avatar svg,
.mobile-closed-message-avatar svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#botmanWidgetRoot > div:first-child > div:first-child {
  background: #1c2a4e !important;
}

#botmanWidgetRoot > div:first-child > div:first-child > div {
  color: #FFFFFF !important;
}

#chatBotManFrame {
  background-color: #f1f1f1 !important;
}

#messageArea {
  background-color: #f1f1f1;
  overflow-y: scroll;
}

@media only screen and (min-width: 371px) {
  #messageArea {
    height: calc(100vh - 130px);
    padding-bottom: 55px !important;
  }
}

.chat {
  list-style: none;
  background: none;
  padding: 0;
  margin: 0;
}

.chat li {
  padding: 15px;
  padding-bottom: 3px;
  padding-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  color: #000000;
}

@media only screen and (min-width: 375px) {
  .chat li {
    font-size: 16px;
  }
}

.chat li .msg {
  word-wrap: break-word;
  min-width: 50px;
  max-width: 80%;
  padding: 13px;
  border-radius: 10px;
  background: #dae1e7;
  position: relative;
}

.chat li .msg p {
  margin: 0 0 0.2rem 0;
}

.chat li .time {
  font-size: 10px;
  color: #7d7b7b;
  margin-top: 3px;
  float: right;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: absolute;
  top: calc(100% + 3px);
  right: 8px;
}

.chat li .btn {
  display: block;
  padding: 8px;
  padding-right: 20px;
  border-radius: 5px;
  margin: 10px 0 5px 0;
  min-width: 100px;
  cursor: pointer;
  color: white;
}

.chat li.visitor {
  justify-content: flex-end;
  align-items: flex-end;
}

.chat li.visitor .msg {
  order: 1;
  border-top-right-radius: 2px;
  background-color: #A0028D;
  color: #FFFFFF;
}

.chat li.visitor .msg a {
  color: #FFFFFF;
  text-decoration: underline;
}

.chat li.visitor .msg a:hover {
  text-decoration: none;
}

.chat li.visitor .msg .btn {
  background-color: #6e0161;
}

.chat li.visitor .msg .time {
  color: #FFFFFF;
}

.chat li.chatbot .msg {
  order: 1;
  border-top-left-radius: 2px;
  background-color: #FFFFFF;
  color: #555555;
}

.chat li.chatbot .msg a {
  color: #555555;
  text-decoration: underline;
}

.chat li.chatbot .msg a:hover {
  text-decoration: none;
}

.chat li.chatbot .msg .btn {
  box-shadow: 0px 0px 8px 0px #e8e8e8;
  background-color: #dedede;
  color: #555555;
}

.chat li.chatbot .msg .time {
  color: #555555;
}

.textarea {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  width: 95%;
  height: 55px;
  z-index: 99;
  border: none;
  outline: none;
  padding-left: 15px;
  padding-right: 15px;
  color: #555555;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  background: rgba(250, 250, 250, 0.8);
  font-family: Lato, sans-serif;
}

@media only screen and (min-width: 371px) {
  .textarea {
    font-size: 16px;
  }
}

.textarea:focus {
  background: white;
  box-shadow: 0 -6px 12px 0px rgba(235, 235, 235, 0.95);
  transition: 0.4s;
}

.textarea.static {
  position: static;
}

div.loading-dots {
  position: relative;
  word-wrap: break-word;
  padding: 10px;
  border-radius: 10px;
  border-top-left-radius: 2px;
  background-color: #FFFFFF;
}

div.loading-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 3px;
  border-radius: 50%;
  background: #005D7E;
  -webkit-animation: blink 1.4s ease-out infinite;
          animation: blink 1.4s ease-out infinite;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

div.loading-dots .dot:nth-child(2) {
  -webkit-animation-delay: -1.1s;
          animation-delay: -1.1s;
}

div.loading-dots .dot:nth-child(3) {
  -webkit-animation-delay: -0.9s;
          animation-delay: -0.9s;
}

