.gap-ai-container {
  position: fixed;
  left: 100%;
  bottom: 6em;
  height: 70vh;
  width: 90vw;
  max-width: 800px;
  background-color: #f2f2f2;
  box-shadow: 0 0 10px #00000082;
  border-radius: .5em;
  transition: left .3s ease-in-out;
}

.gap-ai-container.active {
  left: calc(100% - 800px);
}

.gap-ai {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
}

.gap-ai-toggle {
  position: absolute;
  right: calc(100% - 4em);
  rotate: 270deg;
  width: 11em;
  height: 3em;
  top: calc(50% - 3em);
}

.gap-ai .input {
  height: 4em;
  display: flex;
  padding: 1em;
}

.gap-ai .input button {
  width: 5em;
  font-size: .875em;
  padding: 0;
}

.gap-ai .input input {
  flex: 1;
  padding: .5em;
  border: 1px solid #b9b1b1;
}

.gap-ai .output {
  flex: 1;
  padding: 2em 2em 0 2em;
  overflow: scroll;
  display: flex;
  flex-direction: column;
}

.gap-ai .message {
  width: 800px;
  max-width: 100%;
  background-color: #fff;
  padding: 1em 2em;
  border-radius: 2em;
  box-shadow: 0 0 10px #b1afaf;
  margin-bottom: 2em;
}

.gap-ai .message.user {
  align-self: flex-end;
  background-color: #0b7c84;
  color: #fff;
}

.gap-ai .message.loading {
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: space-between;
}

.gap-ai .message > :last-child {
  margin-bottom: 0;
}

.gap-ai .message.loading .spinner {
  height: 1em;
  overflow: hidden;
  width: 3em;
}

.gap-ai .message.loading .spinner::before {
  content: ' ';
  display: flex;
  background: #4f4040;
  width: 1em;
  height: 1em;
  border-radius: 1em;
  animation: spinner 1s infinite ease-in-out;
}

@keyframes spinner {
  0% {
    margin-left: 0;
  }
  50% {
    margin-left: 2em;
  }
  100% {
    margin-left: 0;
  }
}


