.cdt-chat,
.cdt-chat * {
  box-sizing: border-box;
}

.cdt-chat {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  color: #10283a;
  font: 15px/1.45 Arial, sans-serif;
}

.cdt-chat button,
.cdt-chat textarea {
  font: inherit;
}

.cdt-chat-toggle,
.cdt-chat-form button {
  border: 0;
  border-radius: 7px;
  background: #08745f;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.cdt-chat-toggle {
  padding: 13px 19px;
  box-shadow: 0 5px 20px #10283a33;
}

.cdt-chat-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  height: min(500px, calc(100vh - 110px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e8e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 36px #10283a2e;
}

.cdt-chat-panel[hidden] {
  display: none;
}

.cdt-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #eaf5f2;
}

.cdt-chat-header strong,
.cdt-chat-header span {
  display: block;
}

.cdt-chat-header span,
.cdt-chat-disclaimer {
  color: #587080;
  font-size: 12px;
}

.cdt-chat-close {
  border: 0;
  background: transparent;
  color: #10283a;
  cursor: pointer;
  font-size: 25px;
}

.cdt-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.cdt-chat-bubble {
  max-width: 90%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 9px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.cdt-chat-assistant {
  background: #f0f4f8;
}

.cdt-chat-assistant a {
  color: #08745f;
}

.cdt-chat-user {
  margin-left: auto;
  background: #d8f7ef;
}

.cdt-chat-status {
  min-height: 18px;
  margin: 0;
  padding: 0 14px;
  color: #8b321f;
  font-size: 12px;
}

.cdt-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
}

.cdt-chat-form textarea {
  min-width: 0;
  flex: 1;
  resize: vertical;
  border: 1px solid #bdcfcc;
  border-radius: 6px;
  padding: 9px;
}

.cdt-chat-form button {
  align-self: flex-end;
  padding: 10px 13px;
}

.cdt-chat button:disabled {
  cursor: wait;
  opacity: .65;
}

.cdt-chat-disclaimer {
  margin: 0;
  padding: 0 14px 12px;
}

.cdt-chat-disclaimer a {
  color: #08745f;
}

.cdt-chat-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 480px) {
  .cdt-chat {
    right: 12px;
    bottom: 12px;
  }
}
