/* Shared visitor popup controls: the heading stays still while the text scrolls. */
#content-dialog[open],.cookie-dialog[open],#legal-popup[open]{display:flex;flex-direction:column;overflow:hidden}
#content-dialog .dialog-heading,#legal-popup .dialog-heading,.cookie-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-shrink:0;margin:0 0 16px}
#content-dialog .dialog-heading h2,#legal-popup .dialog-heading h2,.cookie-dialog-heading h2{flex:1;min-width:0;margin:0;padding:0;overflow-wrap:anywhere}
#content-text,.legal-content,.cookie-dialog-body,.cookie-policy-text{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1 1 auto;scrollbar-gutter:stable}
:root .cookie-dialog>.cookie-actions{position:static;flex-shrink:0;margin-top:14px;padding-bottom:0}
:root :is(#content-close,#legal-popup .legal-close,#cookie-consent-root .cookie-close,.home-popup-card .popup-close){position:static;display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #ded8ca;border-radius:50%;background:#fffaf4;color:#3c4722;font-size:0;line-height:1;cursor:pointer;box-sizing:border-box}
:root :is(#content-close,#legal-popup .legal-close,#cookie-consent-root .cookie-close,.home-popup-card .popup-close)::after{content:"";display:block;width:20px;height:20px;background:url('/icons/xmark.svg') center/contain no-repeat}
:root :is(#content-close,#legal-popup .legal-close,#cookie-consent-root .cookie-close,.home-popup-card .popup-close)>img{display:none}
:root :is(#content-close,#legal-popup .legal-close,#cookie-consent-root .cookie-close,.home-popup-card .popup-close):focus-visible{outline:3px solid #e74612;outline-offset:3px}
/* Marketing cards use the same separate header and scrolling body. */
#homepage-popups .home-popup-card{display:flex;flex-direction:column;max-height:80dvh;overflow:hidden}
#homepage-popups .popup-card-heading{display:flex;align-items:flex-start;gap:16px;flex-shrink:0;margin-bottom:12px}
#homepage-popups .popup-card-heading>div{flex:1;min-width:0;overflow-wrap:anywhere}
#homepage-popups .home-popup-card .popup-close{position:static;margin:0}
#homepage-popups .home-popup-card .eyebrow,#homepage-popups .home-popup-card h2{padding-right:0}
#homepage-popups .home-popup-card h2{margin-bottom:0}
#homepage-popups .popup-card-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1 1 auto}
#legal-popup{max-height:85dvh}
@media(max-width:800px){
 /* Explicit height avoids mobile browsers letting long text enlarge the dialog. */
 #content-dialog[open],.cookie-dialog[open],#legal-popup[open]{height:85dvh;max-height:calc(100dvh - 32px)}
 #content-dialog .dialog-heading,#legal-popup .dialog-heading,.cookie-dialog-heading{position:relative;z-index:2;flex:0 0 auto}
 #content-text,.legal-content,.cookie-dialog-body,.cookie-policy-text{flex:1 1 0;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
 #homepage-popups .home-popup-card{height:80dvh;max-height:calc(100dvh - 60px)}
}

