.ctiv-chatbot {
  position: fixed;
  z-index: 999;
  right: 80px;
  bottom: 84px;
  font-family: inherit;
}

.ctiv-chatbot__toggle,
.ctiv-chatbot__form button {
  border: 0;
  border-radius: 6px;
  background: #123b68;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.ctiv-chatbot__toggle {
  min-height: 48px;
  padding: 0 20px;
  box-shadow: 0 3px 14px rgb(0 0 0 / 22%);
}

.ctiv-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  height: min(500px, calc(100vh - 200px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d5dce5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 24px rgb(0 0 0 / 20%);
  color: #202a35;
}

.ctiv-chatbot__panel[hidden] {
  display: none;
}

.ctiv-chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #123b68;
  color: #fff;
}

.ctiv-chatbot__close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
}

.ctiv-chatbot__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.ctiv-chatbot__message {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ctiv-chatbot__message--assistant {
  align-self: flex-start;
  background: #f0f3f7;
}

.ctiv-chatbot__message--user {
  align-self: flex-end;
  background: #e4effa;
}

.ctiv-chatbot__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e4e8ed;
}

.ctiv-chatbot__form textarea {
  min-width: 0;
  flex: 1;
  resize: vertical;
  font: inherit;
}

.ctiv-chatbot__form button {
  padding: 0 14px;
}

.ctiv-chatbot__form button:disabled {
  cursor: wait;
  opacity: .65;
}

.ctiv-chatbot__disclaimer {
  margin: 0;
  padding: 0 12px 10px;
  color: #5b6570;
  font-size: 12px;
}

@media (max-width: 480px) {
  .ctiv-chatbot {
    right: 68px;
    bottom: 80px;
  }

  .ctiv-chatbot__panel {
    width: min(340px, calc(100vw - 88px));
  }
}
