/*
 * KitGreen compatibility guard, only on the plugin's selected landing page.
 * These are the actual legacy wrappers on the Hallam site, not blanket popup
 * selectors. The new navigation, WP toolbar and cookie banners are untouched.
 * PHP also suppresses active-theme footer hooks before wp_footer() is called.
 */
body.hgr-landing > #search-modal.search-modal,
body.hgr-landing > .mobile_menu,
body.hgr-landing > .woomapper-atc-popup-after {
    display: none !important;
}

/* WooMapper's other cart notification uses only the generic class "popup".
 * Match its specific cart child, not all popups (which could be consent UI).
 * This is a separate rule so older browsers still apply the guards above.
 */
body.hgr-landing > .popup:has(> .popup-cart) {
    display: none !important;
}
