/* chatbot-btn */
.chatbot-btn {
  position: fixed;
  color: #fff;
  bottom: 32px;
  right: 32px;
  background-color: #a355f6;
  padding: 14px;
  cursor: pointer;
  text-align: center;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
}

.chatbot-btn:hover {
  background-color: #8925f3;
}

.chatbot-btn_hidden {
  display: none;
}

.chatbot-toggle-tooltip {
  position: absolute;
  right: 55px;
  white-space: nowrap;
  color: #fff;
  background: rgba(46, 48, 51, 0.9);
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 200ms ease-in-out;
  display: none;
}

.chatbot-btn:hover .chatbot-toggle-tooltip {
  display: block;
}

.chatbot-toggle-tooltip_show {
  display: block;
}

.chatbot-toggle-tooltip::after {
  position: absolute;
  content: '';
  top: 50%;
  border: 5px solid transparent;
  border-left-color: rgba(46, 48, 51, 0.9);
  margin-top: -5px;
  right: -10px;
}

/* chatbot */
.chatbot {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #d7b6fb;
  border: 1px solid #bd86f8;
  line-height: 1.2;
  color: #212529;
  position: fixed;
  bottom: 0;
  right: 0;
  height: 100%;
  transform: scale(1);
  transform-origin: right bottom;
  transition: transform 0.3s ease;
}

.chatbot_hidden {
  overflow: hidden;
  transform: scale(0);
  transform-origin: right bottom;
  transition: transform 0.3s ease;
}

@media (min-width: 576px) and (min-height: 600px) {
  .chatbot {
    width: 400px;
    height: 480px;
    bottom: 32px;
    right: 32px;
    border-radius: 0.25rem;
  }
}
.chatbot__title {
  background-color: #bd86f8;
  text-align: center;
  display: flex;
  padding: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.875rem;
  height: 32px;
}

.chatbot__close {
  position: absolute;
  top: 2px;
  right: 10px;
  padding: 0;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #212529;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.6;
  appearance: button;
  margin: 0;
  font-family: inherit;
  border-radius: 0;
}

.chatbot__wrapper {
  display: flex;
  -ms-flex: 1 0 auto;
  flex: 1 0 0%;
  flex-direction: column;
  overflow-y: auto;
}

.chatbot__items {
  padding: 0.75rem;
  border-radius: 0.25rem;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

.chatbot__item {
  width: 100%;
  display: flex;
  flex-shrink: 0;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

@keyframes animationOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.chatbot__content {
  max-width: 60%;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  animation-name: animationOpacity;
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
}

/* bot */
.chatbot__content_bot {
  color: #f9feff;
  background: #8925f3;
  border: solid 1px #8925f3;
  border-radius: 1rem;
}

/* human */
.chatbot__item_human {
  justify-content: flex-end;
}

.chatbot__content_human {
  text-align: right;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.chatbot__content_human-disabled {
  color: #212529;
  background: #f9feff;
  border: solid 1px #f9feff;
  border-radius: 1rem;
  text-align: left;
}

/* btn */
.btn {
  width: 100%;
  display: inline-block;
  cursor: pointer;
  font-weight: 400;
  color: #212529;
  text-align: left;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #f9feff;
  border: 1px solid #f9feff;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 0.25rem;
  box-shadow: 2px 3px 4px 0 rgba(0, 0, 0, 0.25);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
  background-color: #fcebae;
  border: 1px solid #fcebae;
}

.btn:focus,
.btn.focus {
  outline: 0;
}

.chatbot__content .btn {
  margin-bottom: 0.4rem;
}

.chatbot__footer {
  padding: 7px;
  position: relative;
}

/* ie11 */
.chatbot__input::-ms-clear {
  display: none;
}

.chatbot__input {
  display: block;
  width: 100%;
  height: 32px;
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: #212529;
  background-color: #f9feff;
  background-clip: padding-box;
  border: 1px solid #bd86f8;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.chatbot__input:focus {
  color: #212529;
  background-color: #f9feff;
  border-color: #8925f3;
  outline: 0;
}

.chatbot__submit {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 7px 5px;
  line-height: 1;
  background-color: transparent;
  position: absolute;
  top: 6px;
  right: 12px;
  color: #bd86f8;
}

.chatbot__submit:focus:not(:disabled),
.chatbot__submit:hover:not(:disabled) {
  outline: 0;
  box-shadow: none;
  color: #8925f3;
  cursor: pointer;
}

.chatbot a {
  text-decoration: none;
  color: #fcebae;
}

.chatbot a:hover {
  color: #fadf7d;
}

/* scrollbar */
.chatbot__items::-webkit-scrollbar {
  width: 16px;
}

.chatbot__items::-webkit-scrollbar-track {
  background-color: #d7b6fb;
}

.chatbot__items::-webkit-scrollbar-thumb {
  background-color: #bd86f8;
  border-radius: 7px;
  border: 4px solid #d7b6fb;
}

.chatbot__items::-webkit-scrollbar-button {
  display: none;
}
