/* WaterPurity v1.2.3 — shared header/footer. The native internal header remains in place.
   New internal footer replaces visual display only AFTER JS confirms insertion.
   Checkout/cart/account are excluded by wpah_is_interior_style(). */
/* One horizontal Divi header row, matching the homepage proportions. */
@media (min-width:1361px) {
 body.wpah-internal-active #main-header {background:#041935!important;}
 body.wpah-internal-active #main-header>.container {width:min(1560px,calc(100% - 48px))!important;max-width:1560px!important;min-height:112px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:clamp(30px,3.5vw,80px)!important;padding:0!important;}
 body.wpah-internal-active #main-header .logo_container {position:relative!important;display:flex!important;align-items:center!important;flex:0 0 240px!important;width:240px!important;min-width:0!important;max-width:240px!important;height:auto!important;padding:0!important;margin:0!important;}
 body.wpah-internal-active #main-header #logo {position:static!important;display:block!important;width:auto!important;max-width:235px!important;max-height:66px!important;height:auto!important;margin:0!important;object-fit:contain!important;transform:none!important;}
 body.wpah-internal-active #main-header #et-top-navigation {position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;flex:1 1 auto!important;gap:20px!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;}
 body.wpah-internal-active #main-header #top-menu-nav {flex:1 1 auto!important;min-width:0!important;float:none!important;}
 body.wpah-internal-active #main-header #top-menu {display:flex!important;align-items:center!important;justify-content:space-between!important;flex-flow:row nowrap!important;gap:clamp(7px,.75vw,14px)!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;}
 body.wpah-internal-active #main-header #top-menu>li {float:none!important;flex:0 0 auto!important;position:relative!important;margin:0!important;padding:0!important;}
 body.wpah-internal-active #main-header #top-menu>li>a {font-size:clamp(10px,.66vw,12px)!important;line-height:1.35!important;font-weight:800!important;color:#fff!important;letter-spacing:0!important;white-space:nowrap!important;text-transform:uppercase!important;opacity:1!important;padding:14px 0!important;}
 body.wpah-internal-active #main-header #top-menu>li>a:hover,body.wpah-internal-active #main-header #top-menu>li.current-menu-ancestor>a,body.wpah-internal-active #main-header #top-menu>li.current-menu-item>a {color:#68d9ff!important;}
 body.wpah-internal-active #main-header #top-menu li ul.sub-menu {background:#061b39!important;border-color:#294c65!important;z-index:99999!important;}
 body.wpah-internal-active #main-header #top-menu li ul.sub-menu a {font-size:12px!important;color:#fff!important;}
 body.wpah-internal-active #main-header .wpah-interior-social {position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;order:5!important;display:flex!important;align-items:center!important;gap:14px!important;flex:0 0 auto!important;margin:0 0 0 3px!important;transform:none!important;}
 body.wpah-internal-active #main-header .wpah-interior-social a {width:25px!important;height:29px!important;color:#fff!important;}
 body.wpah-internal-active #main-header .wpah-interior-social svg {width:18px!important;height:18px!important;}
}
/* Between 981px and 1360px, display Divi's existing hamburger rather than squeezing 7 labels. */
@media (min-width:981px) and (max-width:1360px) {
 body.wpah-internal-active #main-header>.container {width:calc(100% - 38px)!important;max-width:calc(100% - 38px)!important;min-height:85px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;}
 body.wpah-internal-active #main-header .logo_container {flex:0 0 200px!important;position:relative!important;width:200px!important;min-width:0!important;height:auto!important;display:flex!important;align-items:center!important;}
 body.wpah-internal-active #main-header #logo {position:static!important;max-height:60px!important;max-width:195px!important;width:auto!important;height:auto!important;}
 body.wpah-internal-active #main-header #et-top-navigation {display:flex!important;flex:1 1 auto!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;}
 body.wpah-internal-active #main-header #top-menu-nav {display:none!important;}
 body.wpah-internal-active #main-header #et_mobile_nav_menu {display:block!important;float:none!important;order:3;}
 body.wpah-internal-active #main-header #et_mobile_nav_menu .mobile_menu_bar {display:block!important;}
 body.wpah-internal-active #main-header .wpah-interior-social {position:static!important;left:auto!important;top:auto!important;order:2!important;margin:0!important;}
 body.wpah-internal-active #main-header .et_mobile_menu {top:100%!important;left:auto!important;right:0!important;width:min(400px,calc(100vw - 32px))!important;max-height:72vh!important;overflow-y:auto!important;}
}
/* Native Divi mobile navigation remains operational; socials stay inside header flow. */
@media (max-width:980px) {
 body.wpah-internal-active #main-header .wpah-interior-social {right:58px!important;top:50%!important;transform:translateY(-50%)!important;}
}
/* One universal footer for the enabled Aqua design, with four columns at desktop. */
.wpah-unified-footer {box-sizing:border-box;display:block!important;background:#041935!important;color:#c9d9ea!important;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.65;padding:65px 0 26px!important;width:100%;margin:0!important;clear:both;}
.wpah-unified-footer *, .wpah-unified-footer *::before,.wpah-unified-footer *::after {box-sizing:border-box;}
.wpah-unified-footer__wrap {width:min(1190px,calc(100% - 48px));margin:0 auto;}
.wpah-unified-footer__grid {display:grid;grid-template-columns:minmax(230px,1.45fr) repeat(3,minmax(0,1fr));gap:clamp(25px,3.1vw,55px);align-items:start;padding-bottom:50px;}
.wpah-unified-footer__logo {display:inline-block;max-width:225px;margin:0 0 18px!important;text-decoration:none!important;}
.wpah-unified-footer__logo img {display:block;width:auto!important;height:auto!important;max-width:205px!important;max-height:76px!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;filter:none!important;}
.wpah-unified-footer__brand p {font-size:14px!important;line-height:1.75!important;margin:0!important;max-width:300px;color:#c2d4e8!important;}
.wpah-unified-footer__group h2 {color:#fff!important;font-size:17px!important;font-weight:800!important;line-height:1.4!important;letter-spacing:0!important;text-transform:none!important;margin:0 0 18px!important;padding:0!important;}
.wpah-unified-footer__group>a {display:block!important;color:#c9d9ea!important;font-size:14px!important;font-weight:400!important;line-height:1.55!important;text-decoration:none!important;margin:0 0 12px!important;padding:0!important;overflow-wrap:anywhere;}
.wpah-unified-footer__group>a:hover,.wpah-unified-footer__bottom a:hover {color:#86e3ff!important;}
.wpah-unified-footer__bottom {border-top:1px solid rgba(255,255,255,.19);padding-top:22px;display:flex;gap:24px;justify-content:space-between;align-items:center;color:#c9d9ea;font-size:13px;}
.wpah-unified-footer__bottom strong {font-weight:800;color:#fff!important;}
.wpah-unified-footer__bottom a {color:#c9d9ea!important;text-decoration:none!important;}
.wpah-unified-footer :is(a):focus-visible {outline:3px solid #68d9ff!important;outline-offset:4px!important;}
/* Display original Divi footer if replacement has not actually been mounted. */
body.wpah-internal-active.wpah-unified-ready.wpah-espa-safeguarded #main-footer {display:none!important;}
@media(max-width:980px){.wpah-unified-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px;padding-bottom:35px;}}
@media(max-width:600px){.wpah-unified-footer{padding:45px 0 25px!important}.wpah-unified-footer__wrap{width:calc(100% - 34px)}.wpah-unified-footer__grid{grid-template-columns:1fr 1fr;column-gap:24px;row-gap:34px}.wpah-unified-footer__brand{grid-column:1/-1}.wpah-unified-footer__group h2{font-size:16px!important}.wpah-unified-footer__group>a{font-size:13px!important}.wpah-unified-footer__bottom{flex-direction:column;align-items:flex-start;gap:10px;}}
/* Protected ΕΣΠΑ fallback only: native ESPA widgets are not restyled. */
body.wpah-internal-active .wpah-espa-fallback{position:fixed!important;inset:auto 0 0!important;z-index:99998!important;display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:82px;padding:6px 16px!important;margin:0!important;border-top:1px solid #ebedf1!important;background:#fff!important;box-shadow:0 -2px 12px rgba(6,27,63,.09)!important;box-sizing:border-box;}
body.wpah-internal-active .wpah-espa-fallback .wpah-espa-link,body.wpah-internal-active .wpah-espa-fallback>img{display:block!important;width:min(860px,100%)!important;margin:0 auto!important;line-height:0!important}
body.wpah-internal-active .wpah-espa-fallback img{max-width:860px!important;width:100%!important;max-height:70px!important;height:auto!important;object-fit:contain!important}
body.wpah-internal-active .wpah-espa-fallback a:focus-visible{outline:3px solid #0049ff!important;outline-offset:3px!important}
body.wpah-internal-active.wpah-espa-safeguarded:has(.wpah-espa-fallback){padding-bottom:86px!important}
@media(max-width:700px){body.wpah-internal-active .wpah-espa-fallback{min-height:54px;padding:9px!important}body.wpah-internal-active .wpah-espa-fallback img{max-height:43px!important}body.wpah-internal-active.wpah-espa-safeguarded:has(.wpah-espa-fallback){padding-bottom:58px!important}}

/* When the native ESPA banner was inside Divi's old footer, keep its ORIGINAL
   node, artwork and PDF link and restore its original fixed bottom-strip layout. */
body.wpah-internal-active .wpah-espa-preserved{position:fixed!important;inset:auto 0 0!important;z-index:99998!important;display:flex!important;justify-content:center!important;align-items:center!important;background:#fff!important;width:100%!important;min-height:72px!important;height:auto!important;padding:5px 12px!important;border-top:1px solid #e6e9ee!important;box-shadow:0 -2px 10px rgba(6,27,63,.09)!important;box-sizing:border-box!important;}
body.wpah-internal-active .wpah-espa-preserved img{display:block!important;width:auto!important;max-width:min(100%,850px)!important;max-height:70px!important;height:auto!important;object-fit:contain!important;margin:0 auto!important;}
body.wpah-internal-active.wpah-espa-safeguarded:has(.wpah-espa-preserved){padding-bottom:82px!important;}
@media(max-width:700px){body.wpah-internal-active .wpah-espa-preserved{min-height:52px!important;padding:5px 7px!important;}body.wpah-internal-active .wpah-espa-preserved img{max-height:44px!important;}body.wpah-internal-active.wpah-espa-safeguarded:has(.wpah-espa-preserved){padding-bottom:58px!important;}}

/* v1.2.5 — ΕΣΠΑ is anchored to the viewport BOTTOM, matching the homepage.
   This applies only to the exact original native banner relocated as a direct
   body child. Artwork, click/PDF destination, and homepage implementation remain untouched. */
body.wpah-internal-active > .wpah-espa-preserved,
body.wpah-internal-active > .wpah-espa-fallback {
  position:fixed!important;
  top:auto!important;
  bottom:0!important;
  left:0!important;
  right:0!important;
  inset-block:auto 0!important;
  transform:none!important;
  margin:0!important;
  width:100%!important;
  max-width:none!important;
  z-index:99998!important;
  min-height:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  padding:9px 12px!important;
  border-top:1px solid #ebedf1!important;
}
body.wpah-internal-active > .wpah-espa-preserved img,
body.wpah-internal-active > .wpah-espa-fallback img {
  display:block!important;
  width:auto!important;
  max-width:min(860px,100%)!important;
  height:auto!important;
  max-height:66px!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
body.wpah-internal-active > .wpah-espa-preserved > a,
body.wpah-internal-active > .wpah-espa-fallback > a {
  display:block!important;
  max-width:100%!important;
  line-height:0!important;
}
body.wpah-internal-active.wpah-espa-safeguarded {padding-bottom:94px!important;}
@media(max-width:700px){
  body.wpah-internal-active > .wpah-espa-preserved,
  body.wpah-internal-active > .wpah-espa-fallback {padding:7px 9px!important;}
  body.wpah-internal-active > .wpah-espa-preserved img,
  body.wpah-internal-active > .wpah-espa-fallback img {max-height:43px!important;}
  body.wpah-internal-active.wpah-espa-safeguarded {padding-bottom:64px!important;}
}
