/* SIDEWAY SCROLL + BLANK BOTTOM FIX
   Safe override for landing page only. It removes forced full-screen/overflow hacks
   that can create an empty area under footer or make scrolling feel heavy. */
html,
body {
  width: 100% !important;
  min-height: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
  overscroll-behavior-y: auto !important;
}

body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  position: relative !important;
}

body.home,
body.landing,
body.index-page,
body.sideway-home {
  min-height: 100vh !important;
}

main,
#app,
.app,
.page,
.site-page,
.home-page,
.landing-page,
.sideway-page,
.sideway-home,
.landing-shell,
.site-main,
.content,
.main-content {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

section,
.hero,
.products-section,
.catalog-section,
.invoice-check-section,
.how-section,
.how-it-works,
.features-section {
  height: auto !important;
  max-height: none !important;
}

footer,
.footer,
.site-footer,
.sideway-footer {
  margin-bottom: 0 !important;
  padding-bottom: 24px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Motion/particles must not add document height. */
.sideway-particles,
.motion-particles,
.sw-motion-particles,
.sideway-bg-effects,
.bg-effects,
.floating-particles,
.animated-bg,
.glow-layer,
.orb-layer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Social buttons stay visible but must not create layout height. */
.sideway-social-stack,
.sideway-social-floating,
.social-float-slot,
.social-floating,
.social-float,
.floating-social,
.float-social,
#sideway-social-stack,
#sideway-social-floating {
  position: fixed !important;
  right: 18px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 9999 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .sideway-social-stack,
  .sideway-social-floating,
  .social-float-slot,
  .social-floating,
  .social-float,
  .floating-social,
  .float-social,
  #sideway-social-stack,
  #sideway-social-floating {
    right: 14px !important;
    top: auto !important;
    bottom: 18px !important;
    transform: none !important;
  }
}

/* Kill accidental spacer blocks commonly left by older patches. */
.sideway-footer-spacer,
.footer-spacer,
.bottom-spacer,
.extra-bottom-space,
.blank-bottom,
.after-footer-space {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
