#chatbot-toggle-button {
  cursor: pointer;
  position: fixed;
  bottom: 10px;
  right: 10px;
}

.prebutton-chat {
  width: auto;
  height: 70px;
  padding: 0 60px 0 0;
  background: white;
  border-radius: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.prebutton-chat.closed {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.prebutton-chat .prebutton-chat__content {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  height: 100%;
}

.prebutton-chat .prebutton-chat__content img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.prebutton-chat .prebutton-chat__content p {
  font-size: 14px;
  line-height: 1;
}

#chatbot-toggle-button button {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 60px;
  height: 60px;
  background: #020627;
  border-radius: 50%;
}

#chatbot-toggle-button svg {
  visibility: visible;
  opacity: 1;
  transition: all 0.5s ease-in-out;
  z-index: 999999;
}

#chatbot-toggle-button svg.disabled {
  visibility: hidden;
  opacity: 0;
  display: none;
  transition: all 0.5s ease-in-out;
}

#chatbot-widget {
  display: none;
  opacity: 0;
  bottom: 40px;
  transition: opacity 0.5s ease, bottom 0.5s ease;
}

#chatbot-widget.active {
  display: block;
  opacity: 1;
  position: fixed;
  bottom: 80px;
  right: 10px;
  width: 380px;
  height: 600px;
  overflow: hidden;
  border: none;
  border-radius: 5px;
  margin: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  z-index: 999999;
}

#chatbot-header {
  height: 45px;
  width: 100%;
  box-shadow: 0px 0px 5px #777;
  -webkit-box-shaddow: 0px 0px 5px var(--color-blue);
  background-color: var(--color-blue);
  color: white;
  display: flex;
  padding: 10px 20px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

#chatbot-title {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  gap: 10px;
}

#chatbot-close-button,
#chatbot-refresh-button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

#chatbot-content {
  padding: 30px 10px 30px 50px;
  max-height: 90%;
  overflow-y: scroll;
}

.chatbot-question {
  position: relative;
  margin-bottom: 10px;
  background-color: #f5f5f5;
  color: var(--color-blue);
  padding: 10px;
  border-radius: 3px;
  width: 90%;
  box-shadow: 0 0px 10px 0 rgba(170, 170, 170, 1);
}

.chatbot-question::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  width: 30px;
  height: 30px;
  background-image: url("./assets/avatar.webp");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  display: inline-block;
  background-repeat: no-repeat;
}

.chatbot-timestamp {
  font-size: 11px;
  color: #aaaaaa;
  margin-bottom: 10px;
}

.chatbot-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  align-items: end;
  margin-bottom: 20px;
}

.chatbot-option {
  margin-bottom: 5px;
  padding: 10px 18px;
}

.chatbot-options button {
  text-align: left;
  padding: 10px 18px;
  border: none;
  border-radius: 3px;
  box-shadow: 0 0px 10px 0 rgba(170, 170, 170, 1);
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(166, 149, 128, 1);
  background: #9d8c80;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  line-height: 20px;
}

/* .chatbot-options button.disabled {
  transition: top 0.5s ease-in-out;
  top: 0px;
  position: relative;
} */

.chatbot-option-button.linky::after {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  background: url("./assets/expand-arrows.svg");
  background-repeat: no-repeat;
  background-size: cover;
  vertical-align: middle;
  margin-left: 10px;
}

.chatbot-option button:hover {
  background-color: #005177;
}

@media (width <= 768px) {
  .prebutton-chat {
    right: 0;
  }

  #chatbot-toggle-button {
    cursor: pointer;
    position: fixed;
    bottom: 50px;
    right: 50px;
  }

  #chatbot-toggle-button button {
    right: 0;
  }

  #chatbot-widget.active {
    width: 90%;
    right: 0;
  }
}
