/* The parent website's side of the embed (README › Embedding the chat). */

/* Each frame is as tall as its content; embed.js sets the heights. */
#foerdi-embed {
  height: auto;
}

#foerdi-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* The bar sticks to the top of the screen while the chat is in view, above the chat's frame.
   --foerdi-sticky-top is the gap above it: a parent website with a sticky header sets it
   to the header's height plus the gap, e.g. #foerdi-embed { --foerdi-sticky-top: 92px; }. */
#foerdi-progress {
  position: sticky;
  top: var(--foerdi-sticky-top, 12px);
  z-index: 1;
}
