/* BondedWorks single-source header integration. The main app stylesheet
   provides the original Tailwind utilities, navbar, button and mobile-menu styles. */
bw-site-header{display:none}
bw-site-header.is-ready{display:block}
[data-bw-shared-header]{display:block}
[data-bw-shared-header] .bw-navbar{position:sticky!important;top:0!important;z-index:50!important;background:#0f1f45!important}
/* Put the mobile backdrop above the sticky navbar so the underlying brand/header dims correctly. */
[data-bw-shared-header] [data-bw-mobile-overlay]{z-index:100!important;}
[data-bw-shared-header] .mobile-menu{z-index:200!important;}

/* After the shared header has loaded on the React homepage, hide only the
   old React-rendered navigation. Its hidden CTA remains available as a bridge
   to the existing homepage EnquiryContext/modal. */
html.bw-shared-header-active #root>div[class~="py-2"][class~="md:block"]{display:none!important}
html.bw-shared-header-active #root>nav[data-testid="navbar"]{display:none!important}
html.bw-shared-header-active #root>[data-testid="mobile-menu"]{display:none!important}
html.bw-shared-header-active #root>div[class*="bg-black/50"][class*="z-40"]{display:none!important}

/* PHP pages use the same responsive header fragment. Override only the legacy
   admin page's old navbar rule; other page-specific styles remain untouched. */
[data-bw-shared-header] .bw-navbar{box-shadow:0 2px 8px rgba(7,18,56,.14)}

/* The PHP enquiry modal uses the same Tailwind layout and measurements as the
   homepage EnquiryModal component. */
#bwEnquiryOverlay,#bwEnquirySuccess{display:none!important}
#bwEnquiryOverlay.is-open,#bwEnquirySuccess.is-open{display:flex!important}
.bw-enquiry-status{display:none;padding:10px 12px;border-radius:7px;line-height:1.45}
.bw-enquiry-status.is-visible{display:block}
.bw-enquiry-status.is-error{background:#fff0ef;color:#a3261c;border:1px solid #f7ceca}
.bw-shared-modal-panel,.bw-shared-success-panel{animation:bwSharedModalIn .24s ease-out both}
@keyframes bwSharedModalIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:767.98px){.bw-shared-modal-panel{max-height:96vh}.bw-shared-success-panel>div.flex{padding:30px 22px 25px}}
