.chatbot {

  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Offset by half its width */
  width: 100%; /* Full width */
  box-shadow: 0 -6px 99px -17px rgba(236, 236, 236, 0.68);
  z-index: -1100; 
}







.chatbot__header {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #292460;
  height: 54px;
  padding: 0 20px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 1100;
}
.chatbot__header:hover {
  background-color: #393285;
}
.chatbot__header p {
  margin-right: 20px;
}

.chatbot__close-button {
  fill: #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% - (54px + 60px)); */
  /* height: auto; */
  /* max-height: 300px; */
  padding: 40px 5px 20px;
  background-color: #fff;
  overflow-x: none;
  overflow-y: auto;
  z-index: 50000;


}



.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;
}
.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: 6px;
  letter-spacing: -0.01em;
  line-height: 1.45;
  overflow: hidden;
  z-index: 50;
}
.is-ai .chatbot__message {
  /* background-color: #f0f0f0; */
  margin-right: 30px;
}
.is-user .chatbot__message {
  background-color: #7ee0d2;
  margin-left: 30px;
}
.chatbot__message a {
  color: #EE9F9F;
  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 #EE9F9F;
  border-radius: 50px;
  padding: 8px 20px;
  margin: -8px 10px 18px 0;
  transition: background-color 0.2s ease;
  cursor: pointer;
  z-index: 50;
}
.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;
  z-index: 50;
}
.chatbot__message .card .card-content {
  padding: 20px;
}
.chatbot__message .card .card-title {
  margin-top: 0;
}
.chatbot__message .card .card-button {
  color: #EE9F9F;
  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: 60px;
  padding: 0 20px;
  border: 2px solid #e6eaee;
  border-radius: 50px;
  background-color: #fff;
}
.chatbot--closed .chatbot__entry {
  display: none;
}

.chatbot__input {
  height: 100%;
  width: 80%;
  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 {
  fill: #EE9F9F;
  height: 22px;
  width: 22px;
  transition: fill 0.2s ease;
  cursor: pointer;
}
.chatbot__submit:hover {
  fill: #45148c;
}

.u-text-highlight {
  color: #7ee0d2;
}

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

.loader__dot {
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  background: black;
  border-radius: 50px;
  -webkit-animation: loader 0.45s infinite alternate;
          animation: loader 0.45s infinite alternate;
}
.loader__dot:nth-of-type(2) {
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
}
.loader__dot:nth-of-type(3) {
  -webkit-animation-delay: 0.35s;
          animation-delay: 0.35s;
}

@-webkit-keyframes loader {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

@keyframes 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;
  }
}
* {
  box-sizing: border-box;
}

/* body {
  background: url("https://images.unsplash.com/photo-1464823063530-08f10ed1a2dd?dpr=1&auto=compress,format&fit=crop&w=1199&h=799&q=80&cs=tinysrgb&crop=&bg=") no-repeat center center;
  background-size: cover;
  height: 1000px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
} */

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

strong {
  font-weight: 600;
}

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











.arrow-container {
  min-height: 1px; /* Keeps space for the arrow */
  height: 2px;
  display: flex;
  justify-content: center; /* Center the arrow */
  align-items: center; /* Center vertically */
  /* background: transparent; */
  /* color: #292460; */
}

.arrow {
  /* padding-top: 5px;
  font-size: 20px; */
  cursor: pointer;
  /* transition: opacity 0.3s; */
  display: none; /* Start hidden */
  /* background: white; */
  /* border-radius: 1000px; */
  /* color: black; */

  width: 20px; 
  /* height: 10px;  */

  /* padding: 10px; */


  /* border: 2px solid #e6eaee; */
  /* border-radius: 100%; */

  z-index: 500;



}

.arrow.visible {
  display: block; /* Show when visible */
}


.example-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center; /* Centers text horizontally */
  padding: 10px;
  white-space: nowrap; /* Prevents text from wrapping to the next line */
}






/* .example p {
  border: outset 2px;
  border-radius: 100px;
  padding: 10px;
} */

.example p:hover {
  background-color: rgb(201, 201, 201);
}

@media screen and (min-width: 1024px) {

  .arrow:hover {
    color: rgb(105, 105, 105);
  }

  .example {
    display: flex;          
    justify-content: center; 
  }

}

/* desktop */
@media screen and (min-width: 640px) {

  .chatbot__message-window {
    padding-top: 200px;
    height: 100vh;
    max-height: 100vh;
  }

  .chatbot {
    max-width: 700px;
    top: auto;
  }

  .example-container {
    bottom: 80px;
  }
  
}

/* mobile */
@media screen and (max-width: 640px) {

  .chatbot {
    max-width: 700px;
    top: auto;
  }

  .chatbot__message-window {
    padding-top: 230px;
    height: 100vh;
    max-height: 100vh;
  }

  .example-container {
    bottom: 100px;
  }

  .example {
    display:inline;          
    justify-content: center; 
  }

}


@media only screen and (min-width: 640px) and (max-width: 1024px) { 

  .chatbot__message-window {
    padding-top: 200px;
    height: 100vh;
    max-height: 100vh;
  }
  
}












