/* A zero-height anchor lets messages fill the space down to the composer.
   Only the floating button intercepts input; scrolling beside it reaches the chat.
   The sibling selector also covers already deployed chat modules. */
html:root .chat-messages + div.chat-jump-latest,
html:root .chat-messages + div[class~='bg-[#f7f3ed]'],
html.crm-glass.crm-violet:root .chat-messages + div[class~='bg-[#f7f3ed]'] {
  background: transparent !important;
  position: relative;
  z-index: 10;
  flex: 0 0 0;
  height: 0;
  min-height: 0;
  padding: 0 !important;
  overflow: visible;
  pointer-events: none;
}

html:root .chat-messages + div.chat-jump-latest > button,
html:root .chat-messages + div[class~='bg-[#f7f3ed]'] > button {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  pointer-events: auto;
}
