#chatbot-window {
  display: none;
  bottom: 85px;
  right: 10px;
  height: max(450px, 80vh);
  width: max(325px, 30vw);
  background: white;
  border-radius: 2vh;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0.48px 2.41px -0.38px,
    rgba(0, 0, 0, 0.17) 0px 4px 20px -0.75px;
  z-index: 1000;
  padding: 8px;
  flex-direction: column;
}
#chatbot-window > #chat {
  flex-grow: 1;
  overflow-y: auto;
}
#chatbot-window > #chat > .bot {
  padding: 4px;
  margin: 4px;
}
#chatbot-window > #chat > .user {
  text-align: right;
  background-color: #b00020;
  color: white;
  border-radius: 4px;
  padding: 4px;
}
#chatbot-window > #chat > .error {
  color: red;
  padding: 4px;
  margin: 4px;
}
#chatbot-window.visible {
  display: flex;
  position: fixed;
}

#chat-form {
  display: flex;
}
#chat-form > input {
  flex-grow: 1;
  margin-right: 2px;
}
#chat-form > input:focus {
  border: 2px cornflowerblue solid;
  border-radius: 4px;
  outline: none;
}
#chat-form > button {
  color: white;
  background: black;
  border: 1px black solid;
  border-radius: 4px;
}
#chat-form > button:disabled {
  color: lightgrey;
  background: darkgrey;
}

#chatbot-toggle {
  z-index: 1000;
  position: fixed;
  display: flex;
  /*width: 70px;*/
  background: white;
  -webkit-box-shadow: 0 3px 5px rgba(113, 113, 113, 0.5);
  border-radius: max(2vh, 20px);
  cursor: pointer;
}
#chatbot-toggle > img {
  margin: auto;
}
#chatbot-toggle > span > .hidden {
  display: none;
}

#chatbot-toggle.hidden {
  display: none;
}

#chatbot-toggle.opened-position {
  bottom: 10px !important;
  right: 10px !important;
  left: auto !important;
  top: auto !important;
}

#chatbot-open-toggle {
  color: #ea5e09;
  white-space: pre-wrap;
  margin-top: calc((70px - 35px) / 2) !important;
  margin-bottom: calc((70px - 35px) / 2) !important;
  font-size: max(1.6vh, 16px);
}

#chatbot-close-toggle {
  margin: calc((70px - 35px) / 2) !important;
}
