/* Standalone support uses the visible page; the embedded chat uses its panel. */
.visit-chat-conversation {
  height: min(800px, calc(100vh - 2rem));
  height: min(800px, calc(100dvh - 2rem));
  min-height: 0;
  overflow: hidden;
  overflow: clip;
}

#chat-widget-panel .visit-chat-conversation {
  height: 100%;
}

/* Only the history scrolls, keeping its latest message and the composer in view. */
.visit-chat-conversation #chat-messages {
  min-height: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
}
