/* Preserve authored line breaks; visual design belongs to the site style. */
.gmformText { white-space: pre-wrap; }

/* Only the document inside the BBCode iframe: the host CMS supplies its box. */
html:has(.gmformEmbedded),
body:has(.gmformEmbedded) {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}
body:has(.gmformEmbedded) .pageHeaderContainer,
body:has(.gmformEmbedded) .pageHeaderPanel,
body:has(.gmformEmbedded) #pageHeader,
body:has(.gmformEmbedded) .pageFooterContainer,
body:has(.gmformEmbedded) #pageFooter,
body:has(.gmformEmbedded) .pageNavigation,
body:has(.gmformEmbedded) .breadcrumbs,
body:has(.gmformEmbedded) .boxesSidebarLeft,
body:has(.gmformEmbedded) .boxesSidebarRight,
body:has(.gmformEmbedded) .boxesHero,
body:has(.gmformEmbedded) .boxesTop,
body:has(.gmformEmbedded) .boxesBottom {
    display: none !important;
}
body:has(.gmformEmbedded) .pageContainer,
body:has(.gmformEmbedded) .main,
body:has(.gmformEmbedded) .layoutBoundary,
body:has(.gmformEmbedded) .content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    width: 100% !important;
}
.gmformEmbedded .gmformFields {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

/* The outer page scrolls; keep embedded content accessible if resizing is delayed. */
html:has(.gmformEmbedded),
body:has(.gmformEmbedded) {
    overflow-y: auto !important;
    scrollbar-width: none !important;
    scrollbar-gutter: auto !important;
}
html:has(.gmformEmbedded)::-webkit-scrollbar,
body:has(.gmformEmbedded)::-webkit-scrollbar {
    display: none !important;
}
