/*
Theme Name: Essentials Child
Theme URI: https://upkeepday.com
Description: Child theme for UpkeepDay custom pages and site-wide UI
Author: UpkeepDay
Template: essentials
Version: 1.0.0
Text Domain: essentials-child
*/

.pix-header-boxed.pix-is-sticky-header > .position-absolute,
#mobile_head {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100000;

  width: 100%;

  transition: transform 0.25s ease;
}

.pix-header-boxed.pix-is-sticky-header > .position-absolute .pix-header {
  position: relative !important;
  top: auto !important;
}

body.admin-bar .pix-header-boxed.pix-is-sticky-header > .position-absolute,
body.admin-bar #mobile_head {
  top: 32px;
}

#masthead.pix-pt-20,
#mobile_head.pix-pt-20 {
  padding-top: 0 !important;
}

.pix-mobile-header-sticky {
  height: 0 !important;
}

.pix-header-boxed.pix-is-sticky-header ~ #content .elementor > .elementor-top-section:first-child {
  padding-top: calc(var(--ukd-header-h, 105px) + 16px) !important;
}

.pix-header-boxed.pix-is-sticky-header > .position-absolute.ukd-header-hidden,
#mobile_head.ukd-header-hidden {
  transform: translateY(calc(-100% - 46px));
  pointer-events: none;
}

@media (max-width: 782px) {
  body.admin-bar .pix-header-boxed.pix-is-sticky-header > .position-absolute,
  body.admin-bar #mobile_head {
    top: 46px;
  }
}

body.ukd-landing {
  background: #fff;
}

body.ukd-landing .pix-header-boxed,
body.ukd-landing #mobile_head,
body.ukd-landing .pix-main-intro,
body.ukd-landing #pix-page-footer,
body.ukd-landing .pix-cookie-banner,
body.ukd-landing #tawk-bubble-container,
body.ukd-landing .tawk-min-container {
  display: none !important;
}

body.ukd-landing #content,
body.ukd-landing .ukd-site-content {
  padding-top: 0 !important;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .pix-header-boxed.pix-is-sticky-header > .position-absolute,
  #mobile_head {
    transition: none;
  }
}
