#chat.chat-draft-first:has(#messages:empty) {
  height: auto;
  overflow-y: auto;
}

#chat.chat-draft-first #messages:empty,
#chat.chat-draft-first .chat-inline-error:empty {
  display: none;
}

#chat.chat-draft-first #chatform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  flex-shrink: 0;
  align-items: end;
  padding: 16px 18px 12px;
  border-top: 0;
}

#chat.chat-draft-first .chat-question-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

#chat.chat-draft-first #chat-input {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 11px 13px;
  border: 1px solid #dcd9cd;
  border-radius: 17px;
  background: #fffdf7;
  color: #24271e;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
}

#chat.chat-draft-first #chat-input:focus-visible {
  outline: 2px solid #8d7954;
  outline-offset: 2px;
}

#chat.chat-draft-first #chat-consent {
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
}

#chat.chat-draft-first #chat-consent label {
  padding: 4px 0 2px 24px;
  font-size: inherit;
  line-height: inherit;
}

#chat.chat-draft-first #chat-consent label input {
  top: 5px;
  width: 16px;
  height: 16px;
}

#chat.chat-draft-first #chat-consent > a {
  margin-left: 24px;
  color: #6b5736;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#chat.chat-draft-first #chatform button:disabled {
  cursor: default;
}

#chat.chat-draft-first #chat-start-status {
  margin: 0 18px 10px !important;
}

#chat.chat-draft-first #chatform:has(#chat-consent[hidden]) #chat-input {
  grid-column: 1;
}
