/* Keep one scrollbar below the shared site header. */
html,
body {
  overflow: hidden;
}

.site-content-scroll {
  display: flex;
  flex-direction: column;
  height: calc(100svh - var(--site-header-height, 5.125rem));
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Standalone WordPress pages may be taller than the first viewport. */
.site-content-scroll > .runhe-page-view {
  height: auto;
  min-height: calc(100svh - var(--site-header-height, 5.125rem));
}

/* Let the product page's content and bottom padding define the scroll height. */
.site-content-scroll > #products.product-center.runhe-page-view {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .site-content-scroll {
    scrollbar-width: none;
  }

  .site-content-scroll::-webkit-scrollbar {
    display: none;
  }
}
