body.mfr-sticky-header-on #masthead.site-header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: var(--mfr-sticky-header-bg, #ffffff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: mfrStickyDrop 0.35s ease both;
}
body.mfr-sticky-header-on { padding-top: var(--mfr-sticky-header-height, 0px); }
body.admin-bar.mfr-sticky-header-on #masthead.site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar.mfr-sticky-header-on #masthead.site-header { top: 46px; }
}
@keyframes mfrStickyDrop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Only Astra's below-header row is sticky; the main header scrolls normally. */
body.mfr-sticky-below-on #masthead .ast-below-header-wrap {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: var(--mfr-sticky-header-bg, #ffffff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: mfrStickyDrop 0.35s ease both;
}
body.mfr-sticky-below-on .mfr-sticky-below-spacer { display: block; }
body.admin-bar.mfr-sticky-below-on #masthead .ast-below-header-wrap { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar.mfr-sticky-below-on #masthead .ast-below-header-wrap { top: 46px; }
}
