/**
 * ICO Pardot Auto-Height (MTP-884). See README.md in this plugin folder.
 *
 * Keep a popup holding a Pardot form inside the viewport and let its content scroll. The popup's own height already
 * follows its content: every Pardot popup uses Popup Maker's "auto height" (custom_height_auto), so `height: auto`
 * isn't set here.
 *
 * The cap and the scroll sit on .pum-content, not on .pum-container (the ticket's literal suggestion), because (both
 * seen 2026-11-23):
 * - overflow on the container clipped the close button, which Popup Maker themes position outside the container's box
 *   (success2 lightbox theme at 375px);
 * - a flex layout on the container is overridden by the inline `display: block` Popup Maker sets on open.
 * 90vh minus 80px keeps the whole popup within 90vh for any popup theme with up to 40px top and bottom padding
 * (success "Cutting Edge" 1322: 40px; success2 "Lightbox" 98: 18px).
 *
 * The iframe may sit in src, or (until its popup opens) in data-ico-pardot-src / success2's data-tt5c-src.
 */
.pum-container:has(iframe[src^="https://info.irvinecompany.com"], iframe[data-ico-pardot-src^="https://info.irvinecompany.com"], iframe[data-tt5c-src^="https://info.irvinecompany.com"]) > .pum-content {
	max-height: calc(90vh - 80px);
	overflow-y: auto;
}
