/* ExecBuy site header compatibility fixes for block and classic themes. */
.wp-site-blocks > header,
header.wp-block-template-part,
body > header,
.site-header,
.wp-site-header,
#masthead,
.sedi-site-header {
  position: relative !important;
  z-index: 100 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  isolation: isolate;
}

.wp-site-blocks > header + *,
.wp-site-blocks > header.wp-block-template-part + *,
.wp-site-blocks > .wp-block-template-part:first-child + *,
.wp-site-blocks > .sedi-site-header + *,
body > header + main,
.site-header + main,
.wp-site-header + main,
#masthead + main {
  clear: both !important;
  margin-block-start: 0 !important;
}

.wp-site-blocks > header .wp-block-group,
header.wp-block-template-part .wp-block-group,
body > header > *,
.site-header > *,
.wp-site-header > *,
#masthead > *,
.sedi-site-header > * {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.wp-site-blocks > header .wp-block-site-logo img,
header.wp-block-template-part .wp-block-site-logo img,
body > header .custom-logo,
.site-header .custom-logo,
.wp-site-header .custom-logo,
#masthead .custom-logo,
.sedi-site-header .custom-logo,
.sedi-site-header .wp-block-site-logo img {
  display: block !important;
  width: auto !important;
  max-width: min(52vw, 260px) !important;
  max-height: 64px !important;
  object-fit: contain !important;
}

.wp-site-blocks > header .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation,
body > header nav,
.site-header nav,
.wp-site-header nav,
#masthead nav,
.sedi-site-nav {
  position: relative !important;
  z-index: 101 !important;
  overflow: visible !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  color: currentColor !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 104 !important;
}

.wp-block-navigation__responsive-container-close {
  position: relative !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  display: flex !important;
}

body.sedi-seo-landing-page .wp-block-post-title,
body.sedi-seo-landing-page .entry-title,
body.sedi-seo-company-title .wp-block-post-title,
body.sedi-seo-company-title .entry-title {
  display: none !important;
}

body.sedi-seo-landing-page main,
body.sedi-seo-landing-page .site-main,
body.sedi-seo-landing-page #primary,
body.sedi-seo-landing-page .entry-content,
body.sedi-seo-landing-page .wp-block-post-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.sedi-seo-landing-page .sedi-seo-intro {
  margin-top: 0 !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container,
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.sedi-site-nav .wp-block-navigation__submenu-container,
.sedi-site-nav .wp-block-navigation__responsive-container.is-menu-open,
.sedi-site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  opacity: 1 !important;
  visibility: visible !important;
}

html:not([data-theme="light"]):not(.sedi-theme-light) .wp-block-navigation .wp-block-navigation__submenu-container,
html:not([data-theme="light"]):not(.sedi-theme-light) .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open,
html:not([data-theme="light"]):not(.sedi-theme-light) .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
html:not([data-theme="light"]):not(.sedi-theme-light) .sedi-site-nav .wp-block-navigation__submenu-container,
html:not([data-theme="light"]):not(.sedi-theme-light) .sedi-site-nav .wp-block-navigation__responsive-container.is-menu-open,
html:not([data-theme="light"]):not(.sedi-theme-light) .sedi-site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
}

html:not([data-theme="light"]):not(.sedi-theme-light) .wp-block-navigation__responsive-container.is-menu-open a,
html:not([data-theme="light"]):not(.sedi-theme-light) .wp-block-navigation__responsive-container.is-menu-open button,
html:not([data-theme="light"]):not(.sedi-theme-light) .wp-block-navigation__submenu-container a,
html:not([data-theme="light"]):not(.sedi-theme-light) .wp-block-navigation__submenu-container button {
  color: #fff !important;
}

:is(html[data-theme="light"], html.sedi-theme-light) .wp-block-navigation .wp-block-navigation__submenu-container,
:is(html[data-theme="light"], html.sedi-theme-light) .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open,
:is(html[data-theme="light"], html.sedi-theme-light) .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
:is(html[data-theme="light"], html.sedi-theme-light) .sedi-site-nav .wp-block-navigation__submenu-container,
:is(html[data-theme="light"], html.sedi-theme-light) .sedi-site-nav .wp-block-navigation__responsive-container.is-menu-open,
:is(html[data-theme="light"], html.sedi-theme-light) .sedi-site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  background: #f5f5f5 !important;
  background-color: #f5f5f5 !important;
  color: #101111 !important;
}

:is(html[data-theme="light"], html.sedi-theme-light) .wp-block-navigation__responsive-container.is-menu-open a,
:is(html[data-theme="light"], html.sedi-theme-light) .wp-block-navigation__responsive-container.is-menu-open button,
:is(html[data-theme="light"], html.sedi-theme-light) .wp-block-navigation__submenu-container a,
:is(html[data-theme="light"], html.sedi-theme-light) .wp-block-navigation__submenu-container button {
  color: #101111 !important;
}

@media (max-width: 781px) {
  .wp-site-blocks > header,
  header.wp-block-template-part,
  body > header,
  .site-header,
  .wp-site-header,
  #masthead,
  .sedi-site-header {
    display: flow-root !important;
    max-height: none !important;
    min-height: 176px !important;
    overflow: visible !important;
    padding-top: 8px !important;
    padding-bottom: 18px !important;
  }

  .wp-site-blocks > header .wp-block-group:has(.wp-block-site-logo),
  header.wp-block-template-part .wp-block-group:has(.wp-block-site-logo),
  .sedi-site-header .wp-block-group:has(.wp-block-site-logo),
  .wp-site-blocks > header .wp-block-group:has(.custom-logo),
  header.wp-block-template-part .wp-block-group:has(.custom-logo),
  .sedi-site-header .wp-block-group:has(.custom-logo) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 12px !important;
    width: 100% !important;
  }

  .wp-site-blocks > header .wp-block-site-logo,
  header.wp-block-template-part .wp-block-site-logo,
  .sedi-site-header .wp-block-site-logo,
  .wp-site-blocks > header .custom-logo-link,
  header.wp-block-template-part .custom-logo-link,
  .sedi-site-header .custom-logo-link {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .wp-site-blocks > header .wp-block-navigation,
  header.wp-block-template-part .wp-block-navigation,
  .sedi-site-header .wp-block-navigation,
  .wp-site-blocks > header nav,
  header.wp-block-template-part nav,
  .sedi-site-header nav {
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: center !important;
  }

  .wp-site-blocks > header .wp-block-group,
  header.wp-block-template-part .wp-block-group,
  body > header > *,
  .site-header > *,
  .wp-site-header > *,
  #masthead > *,
  .sedi-site-header > * {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
  }

  .wp-site-blocks > header .wp-block-navigation,
  header.wp-block-template-part .wp-block-navigation,
  body > header nav,
  .site-header nav,
  .wp-site-header nav,
  #masthead nav,
  .sedi-site-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 44px !important;
  }

  .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
    display: none !important;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open),
  .sedi-site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .wp-site-blocks > header + *,
  .wp-site-blocks > header.wp-block-template-part + *,
  .wp-site-blocks > .wp-block-template-part:first-child + *,
  .wp-site-blocks > .sedi-site-header + *,
  .wp-site-blocks > main,
  body > header + main,
  .site-header + main,
  .wp-site-header + main,
  #masthead + main {
    clear: both !important;
    margin-top: 28px !important;
  }

  body > main,
  body .wp-site-blocks > main,
  body .site-main,
  body #primary {
    box-sizing: border-box !important;
    clear: both !important;
    padding-top: 40px !important;
  }

  body.sedi-seo-landing-page .wp-site-blocks > main,
  body.sedi-seo-company-title .wp-site-blocks > main {
    padding-top: 40px !important;
  }

  body.sedi-seo-landing-page .sedi-app {
    padding-top: 0 !important;
  }

  .wp-site-blocks > header .wp-block-site-logo img,
  header.wp-block-template-part .wp-block-site-logo img,
  body > header .custom-logo,
  .site-header .custom-logo,
  .wp-site-header .custom-logo,
  #masthead .custom-logo,
  .sedi-site-header .custom-logo,
  .sedi-site-header .wp-block-site-logo img {
    max-width: min(58vw, 220px) !important;
    max-height: 56px !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
  }
}
