.hsa-support-desk {
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.hsa-support-header {
  margin-bottom: 1rem;
}

.hsa-support-title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  color: #c0392b;
  text-align: center;
  letter-spacing: 0.02em;
}

.hsa-support-intro {
  margin: 0;
  color: #555;
  line-height: 1.5;
  text-align: center;
}

.hsa-support-panel {
  padding: 1.25rem;
  border-radius: 10px;
  background: #fdf2f4;
  border: 1px solid #f0d0d6;
}

.hsa-support-panel--human {
  background: #fff8f5;
}

.hsa-chat-widget {
  margin-top: 1rem;
}

.hsa-chat-widget__log {
  min-height: 8rem;
  max-height: 28rem;
  overflow-y: auto;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e8d0d4;
  border-radius: 8px;
}

.hsa-chat-widget__msg {
  margin: 0.55rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.hsa-chat-widget__msg--user {
  background: #f0f3f6;
}

.hsa-chat-widget__msg--assistant {
  background: #eef8f3;
  border-left: 3px solid #1a7a5c;
}

.hsa-chat-widget__msg--escalate {
  border-left-color: #b85c38;
  background: #fbf6f3;
}

.hsa-chat-widget__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #d8c0c4;
  border-radius: 6px;
  min-height: 6rem;
  font: inherit;
}

.hsa-chat-widget__actions {
  margin-top: 0.65rem;
}

.hsa-chat-widget__submit,
.hsa-support-escalate-btn,
.hsa-support-back-btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 4px;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.hsa-support-back-btn {
  background: #6c7a89;
  text-transform: none;
  font-weight: 600;
}

.hsa-chat-widget__submit:disabled,
.hsa-support-escalate-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hsa-chat-widget__status {
  min-height: 1.25rem;
  margin: 0.4rem 0 0;
  color: #6c7a89;
  font-size: 0.92rem;
}

.hsa-support-escalate-bar {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ebc8ce;
  text-align: center;
}

.hsa-support-escalate-hint,
.hsa-support-low-confidence {
  margin: 0.5rem 0 0;
  color: #6c7a89;
  font-size: 0.88rem;
}

.hsa-chat-msg-actions {
  margin: 0.25rem 0 0.75rem;
}

.hsa-chat-feedback {
  font-size: 0.92rem;
}

.hsa-chat-feedback__btn {
  margin-right: 0.3rem;
  cursor: pointer;
}

.hsa-chat-answer {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #1a7a5c;
  background: #f4faf7;
}

.hsa-chat-answer--escalate,
.hsa-chat-answer--error {
  border-left-color: #b85c38;
  background: #fbf6f3;
}

.hsa-human-form {
  margin-top: 0.75rem;
}

.hsa-chat-widget__error {
  color: #a94442;
}
