.threed-sm-contact-chat {
  margin: 0 0 1.5rem;
  padding: clamp(.75rem, 2vw, 1.25rem);
  border: 1px solid #c7d4ca;
  border-radius: .5rem;
  background: #f8faf7;
  color: #25352e;
}
.threed-sm-contact-chat .help-chat-panel { display: grid; gap: .75rem; }
.threed-sm-contact-chat [hidden] { display: none; }
.threed-sm-contact-chat h2 { margin: 0; font-size: 1.3rem; }
.threed-sm-contact-chat form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .5rem;
  margin: 0;
}
.threed-sm-contact-chat .help-chat-input { flex: 1 1 10rem; min-width: 0; margin: 0; }
.threed-sm-contact-chat .help-chat-input span { display: block; margin-bottom: .25rem; }
.threed-sm-contact-chat input {
  display: block;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  padding: .35rem .5rem;
  margin: 0;
  font-size: max(16px, 1rem);
}
.threed-sm-contact-chat button { flex: 0 0 auto; min-height: 40px; padding: .35rem .75rem; }
.threed-sm-contact-chat .help-chat-log { max-height: min(40vh, 22rem); overflow: auto; overscroll-behavior: contain; }
.threed-sm-contact-chat .help-chat-turn { margin: .35rem 0; padding: .6rem; border-radius: .3rem; background: #edf3ee; overflow-wrap: anywhere; }
.threed-sm-contact-chat .help-chat-turn[data-role='user'] { background: #fff; }
.threed-sm-contact-chat .help-chat-turn p { margin: .25rem 0; white-space: pre-wrap; }
.threed-sm-contact-chat .help-chat-turn :is(a, button) { display: inline-block; margin: .25rem .5rem 0 0; }
.threed-sm-contact-chat :is([data-contact-question], [data-support-policy]) { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
.threed-sm-contact-chat .help-chat-note, .threed-sm-contact-chat [data-chat-status] { margin: 0; font-size: .875rem; }
.threed-sm-contact-chat [data-chat-status]:empty { display: none; }
