/**
 * Keeps third-party overlays from driving the iframe height.
 *
 * Iframe-embedded pages are sized by iframe-resizer in `lowestElement` mode
 * (set in the frontend: ContactFormButton, ModalLink, ParagraphWebform,
 * Footer). That mode walks every element in this document and reports the
 * largest `rect.bottom + margin-bottom` back to the parent as the iframe's
 * height, so any node in the document can drive it — including one that
 * belongs to a third party and is measured against this document's viewport.
 *
 * HubSpot's web-interactives script, loaded here by GTM, injects
 * `#hs-interactives-modal-overlay` at 101% of the viewport plus a set of
 * `#hs-web-interactives-*` anchors pinned to the viewport edges. The overlay
 * closes a feedback loop:
 *
 *   height H  ->  overlay measures 1.01 x H  ->  parent applies 1.01 x H  ->  ...
 *
 * Gain > 1, so every form interaction re-triggers iframe-resizer's
 * MutationObserver and the frame grows by another 1% without bound. Measured in
 * Chrome on stage: 820px to 936px over 15 interactions, while the form's own
 * content height stayed at 786px throughout. The viewport-pinned anchors are a
 * milder version of the same problem — they report exactly the current height,
 * which stops the frame from ever shrinking back after conditional fields
 * collapse.
 *
 * Firefox and Safari do not show it: the overlay is never created there, most
 * likely because web-interactives needs storage that is unavailable or
 * partitioned in a framed context, so it loads and then declines to render.
 *
 * `display: none` removes the boxes entirely, so they contribute nothing to the
 * measurement. HubSpot tracking is untouched — only the popup surfaces are
 * suppressed, and they were never meant to render inside a form iframe; the
 * parent page renders interactives normally. `!important` is required because
 * HubSpot sets these dimensions as inline styles.
 *
 * Covered by tests/e2e-basic/specs/iframe-third-party-overlays.spec.ts.
 */
[id^='hs-interactives'],
[id^='hs-web-interactives'] {
  display: none !important;
}
