@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Floating chat toggle button */
#chat-toggle-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 28px;
  border: none;
  cursor: pointer;
}

/* Chat container */
#chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  font-family: "Montserrat", sans-serif;
}

/* Header */
#chat-header {
  background: #2563eb;
  color: #fff;
  padding: 10px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  background: #fff;
  border-radius: 50px;
  height: 35px;
  width: 35px;
  font-size: 11px;
}

/* Messages area */
#chat-messages {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
}

/* Input area */
#chat-input-area {
  display: flex;
  padding: 9px;
  border-top: 1px solid #cccccc59;
  font-family: "Montserrat", sans-serif;
}

#chat-input-area input {
  flex: 1;
  padding: 10px;
  border-radius: 40px;
  font-family: "Montserrat", sans-serif;
  border: 1px solid #00000029;
}

#chat-input-area button {
  margin-left: 4px;
  background: #2563eb;
  border: 0;
  border-radius: 100px;
  color: #fff;
  padding: 10px 32px;
  font-family: "Montserrat", sans-serif;
}

/* Messages */
.message.user {
  background: #eee;
  padding: 6px;
  border-radius: 6px;
  text-align: right;
  white-space: pre-wrap;
  width: fit-content;
}

.message.assistant {
  background: #dbeafe;
  padding: 6px;
  border-radius: 6px;
  text-align: left;
  white-space: pre-wrap;
  line-height: 16px;
  font-family: "Montserrat";
  font-size: 13px;
  font-weight: 400;
  width: fit-content;
  margin-bottom: 10px;
}

#chat-input-area input:focus-visible {
  outline: 0;
}

.message.user {
  font-size: 13px;
  line-height: 16px;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 10px;
}

.predefined-btn {
  background: #2563eb;
  border: 0;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 6px 15px;
  font-family: "Montserrat";
  text-align: left;
  font-size: 13px;
  color: #fff;
}

div#predefined-questions {
  padding: 10px;
}
