input {
  font-family: "Open Sans", sans-serif;
}

strong {
  font-weight: 600;
}

.intro {
  display: block;
  margin-bottom: 20px;
}

.chatbot {
  position: fixed;
  top: 60px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 99998;
  background: transparent;
}

@media screen and (min-width: 540px) {
  .chatbot {
    max-width: 360px;
    justify-self: right;
    max-height: calc( 100% - 70px );
  }
}

.chatbot.chatbot--closed {
  top: auto;
}

.chatbot__header {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(73 97 166 / 90%);
  height: 45px;
  padding: 0 20px;
  border-radius: 1.5rem;
  width: 100%;
  cursor: pointer;
  box-shadow: 0px 0px 8px rgb(56 50 109 / 30%), inset 0px 0px 10px rgb(37 37 83 / 30%);
  transition: background-color 0.2s ease;
  transition: transform 0.3s ease-in-out;
}

.chatbot__header:hover {
  background-color: rgb(66 60 137 / 90%);
}

.chatbot__header p {
  margin-right: 20px;
}

.truncate-text{
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}

.chatbot__close-button {
  font-size: 20px;
  cursor: pointer;
}

.chatbot__close-button i {
  color: #fff;
}

.chatbot__close-button.icon-speech {
  width: 20px;
  display: none;
}

.chatbot--closed .chatbot__close-button.icon-speech {
  display: block;
}

.chatbot__close-button.icon-close {
  width: 14px;
}

.chatbot--closed .chatbot__close-button.icon-close {
  display: none;
}

.chatbot__message-window {
  height: calc(100% - (106px));
  padding: 25px 15px 15px;
  background-color: rgb(178 194 243 / 90%);
  border-radius: 1.5rem  1.5rem 0 0;
  box-shadow: 0px 0px 10px rgb(47 42 98 / 30%), inset 0px 0px 10px rgb(73 60 137 / 30%);
  margin-top: 10px;
  overflow-x: none;
  overflow-y: auto;
}

.chatbot__message-window::-webkit-scrollbar {
  display: none;
}

.chatbot--closed .chatbot__message-window {
  display: none;
}

.chatbot__messages {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  width: auto;
}

.chatbot__messages li {
  margin-bottom: 20px;
}

.chatbot__messages li.is-ai {
  display: inline-flex;
  align-items: flex-start;
}

.chatbot__messages li.is-user {
  text-align: right;
  display: inline-flex;
  align-self: flex-end;
}

.chatbot__messages li .is-ai__profile-picture {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  background-color: #7226e0;
  border-radius: 50%;
}

.chatbot__messages li .is-ai__profile-picture i {
  color: #fff;
  font-size: 12px;
  padding: 6px;
}

.chatbot__messages li .is-ai__profile-picture .icon-avatar {
  width: 40px;
  height: 40px;
  padding-top: 6px;
}

.chatbot__message {
  display: inline-block;
  padding: 12px 20px;
  word-break: break-word;
  margin: 0;
  border-radius: 15px;
  letter-spacing: -0.01em;
  line-height: 1.45;
  overflow: hidden;
}

.is-ai .chatbot__message {
  background-color: rgb(240 240 240 / 75%);
  margin-right: 30px;
}

.is-user .chatbot__message {
  background-color: rgb(190 240 249 / 75%);
  margin-left: 30px;
}

.chatbot__message a {
  color: #7226e0;
  word-break: break-all;
  display: inline-block;
}

.chatbot__message p:first-child {
  margin-top: 0;
}

.chatbot__message p:last-child {
  margin-bottom: 0;
}

.chatbot__message button {
  background-color: #fff;
  font-weight: 300;
  border: 2px solid #7226e0;
  border-radius: 50px;
  padding: 8px 20px;
  margin: -8px 10px 18px 0;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.chatbot__message button:hover {
  background-color: #f2f2f2;
}

.chatbot__message button:focus {
  outline: none;
}

.chatbot__message img {
  max-width: 100%;
}

.chatbot__message .card {
  background-color: #fff;
  text-decoration: none;
  overflow: hidden;
  border-radius: 6px;
  color: black;
  word-break: normal;
}

.chatbot__message .card .card-content {
  padding: 20px;
}

.chatbot__message .card .card-title {
  margin-top: 0;
}

.chatbot__message .card .card-button {
  color: #7226e0;
  text-decoration: underline;
}

.animation:last-child {
  -webkit-animation: fadein 0.25s;
  animation: fadein 0.25s;
  -webkit-animation-timing-function: all 200ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
  animation-timing-function: all 200ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.chatbot__arrow {
  width: 0;
  height: 0;
  margin-top: 18px;
}

.chatbot__arrow--right {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #7ee0d2;
}

.chatbot__arrow--left {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #f0f0f0;
}

.chatbot__entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 20px;
  border-radius: 0rem 0rem 1.5rem 1.5rem;
  background-color: rgb(234 239 255 / 90%);
  box-shadow: 0px 4px 8px rgb(56 50 109 / 30%), inset 0px 0px 10px rgb(38 38 85 / 30%);
}

.chatbot--closed .chatbot__entry {
  display: none;
}

.chatbot__input {
  background: transparent;
  padding: 10px 15px;
  height: 100%;
  width: 90%;
  border: 0;
}

.chatbot__input:focus {
  outline: none;
}

.chatbot__input::-webkit-input-placeholder {
  color: #7f7f7f;
}

.chatbot__input::-moz-placeholder {
  color: #7f7f7f;
}

.chatbot__input::-ms-input-placeholder {
  color: #7f7f7f;
}

.chatbot__input::-moz-placeholder {
  color: #7f7f7f;
}

.chatbot__submit {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chatbot__submit i {
  color: #7226e0;
}

.chatbot__submit:hover i {
  color: #45148c;
  transform: scale(1.2);
}

.u-text-highlight {
  letter-spacing: 0.5px;
  color: #99ece0;
}

.chat-loader {
  margin-bottom: -2px;
  text-align: center;
  opacity: 0.3;
}

.chat-loader__dot {
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  background: black;
  border-radius: 50px;
  -webkit-animation: chat-loader 0.45s infinite alternate;
  animation: chat-loader 0.45s infinite alternate;
}

.chat-loader__dot:nth-of-type(2) {
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}

.chat-loader__dot:nth-of-type(3) {
  -webkit-animation-delay: 0.35s;
  animation-delay: 0.35s;
}

@-webkit-keyframes chat-loader {
  0% {
    transform: translateY(0);
  }

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

@keyframes chat-loader {
  0% {
    transform: translateY(0);
  }

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

@-webkit-keyframes fadein {
  from {
    opacity: 0;
    margin-top: 10px;
    margin-bottom: 0;
  }

  to {
    opacity: 1;
    margin-top: 0;
    margin-bottom: 10px;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    margin-top: 10px;
    margin-bottom: 0;
  }

  to {
    opacity: 1;
    margin-top: 0;
    margin-bottom: 10px;
  }
}