/**
 * Critical FOUC guards for /newsite/ home.
 * Enqueued in <head> by ebukhosini-payments (no child-theme switch needed).
 */

body.home #ribbon .hestia-ribbon-content {
  display: none !important;
}

body.home #ribbon:not(:has(.ebu-subscribe)) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
}

@supports not selector(:has(*)) {
  body.home:not(.ebu-ready) #ribbon {
    visibility: hidden;
  }
  body.home.ebu-ready #ribbon {
    visibility: visible;
  }
}

body.home:not(.ebu-ready) .hestia-big-title-content .buttons,
body.home:not(.ebu-ready) .hestia-big-title-content .sub-title,
body.home:not(.ebu-ready) .hestia-big-title-content h1.hestia-title {
  visibility: hidden;
}

body.home:not(.ebu-ready) section.hestia-testimonials .hestia-testimonials-content {
  visibility: hidden;
  min-height: 12rem;
}

body.home.ebu-ready .hestia-big-title-content .buttons,
body.home.ebu-ready .hestia-big-title-content .sub-title,
body.home.ebu-ready .hestia-big-title-content h1.hestia-title,
body.home.ebu-ready section.hestia-testimonials .hestia-testimonials-content {
  visibility: visible;
}

/* Keep About logo from blowing out on small screens */
@media (max-width: 768px) {
  body.home .wp-block-image.is-style-rounded img,
  body.home .wp-block-image.has-custom-border img {
    max-width: 140px !important;
    width: 140px !important;
    height: auto !important;
  }
}
