/* FuelDash R469 — Android gets one explicit app scroll surface. */

/* Keep the document boundary from starting browser pull-to-refresh. */
html[data-fd-platform="android"],
html[data-fd-platform="android"] body {
  overflow-x: hidden !important;
  overscroll-behavior-y: none !important;
  touch-action: pan-y !important;
}

/* The body is the fixed viewport; #app is the only normal app scroller. */
html[data-fd-platform="android"] body:not(.fd-feature-open):not(.fd-account-route-open):not(.fd-account-open) {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
}

html[data-fd-platform="android"] body:not(.fd-feature-open):not(.fd-account-route-open):not(.fd-account-open) #app {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: none !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

html[data-fd-platform="android"] body:not(.fd-feature-open):not(.fd-account-route-open):not(.fd-account-open) #app > .app-shell {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: pan-y !important;
}

html[data-fd-platform="android"] body:not(.fd-feature-open):not(.fd-account-route-open):not(.fd-account-open) #app > .app-shell > .app-content {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: pan-y !important;
}

/* Feature pages are outside #app and therefore retain their own native scroller. */
html[data-fd-platform="android"] body.fd-feature-open {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
}

html[data-fd-platform="android"] body.fd-feature-open .fd-feature-page {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

html[data-fd-platform="android"] body.fd-feature-open .fd-feature-shell {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: pan-y !important;
}
