/* Webform embed page.
 *
 * The base theme uses a full-viewport layout (html/body/wrapper stretched to
 * 100% / 100vh for the sticky footer). Inside an iframe that makes the document
 * height track the iframe's own height instead of the form, so the reported
 * height gets stuck and the form scrolls inside the iframe (a double scroll).
 * Let the embed document size naturally to its content so the parent can match
 * the iframe height exactly and show a single scrollbar. */
html,
body {
  height: auto !important;
  min-height: 0 !important;
}

/* The parent sizes the iframe to this document's height, so it never needs to
 * scroll. Hide the root overflow to suppress the iframe's own scrollbar (the
 * modern replacement for the deprecated scrolling="no" attribute). */
html {
  overflow: hidden !important;
}

.webform-embed,
.webform-embed main,
.webform-embed .page__content {
  height: auto !important;
  min-height: 0 !important;
}
