/* Stabilize the existing full-screen window; no additional launch artwork. */
.pwa-window-insets{position:fixed;inset:0 auto auto 0;width:0;height:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);margin-top:env(safe-area-max-inset-top,env(safe-area-inset-top,0px));margin-bottom:env(safe-area-max-inset-bottom,env(safe-area-inset-bottom,0px));visibility:hidden;pointer-events:none}
html[data-pwa-window]{--device-safe-top:var(--pwa-safe-top,env(safe-area-inset-top,0px));--device-safe-bottom:var(--pwa-safe-bottom,env(safe-area-inset-bottom,0px))}
html[data-pwa-window] body{min-height:var(--pwa-window-height,100lvh);top:calc(0px - var(--pwa-native-top,0px))}
html[data-pwa-window] #main{min-height:calc(var(--pwa-window-height,100lvh) - 74px - var(--device-safe-bottom))}
html[data-pwa-window] .mobile-nav{bottom:calc(0px - var(--pwa-native-bottom-shift,0px))}
/* These actions are fixed to the native viewport, not the relatively offset
   body. Translate preserves their existing bottom offsets and horizontal
   centring transforms; the product CTA therefore stays attached to the tabs.
   The payment sheet moves its static footer with it; do not shift that child. */
html[data-pwa-system-bars] #main .detail-screen .detail-action,
html[data-pwa-system-bars] #paymentDialog{translate:0 var(--pwa-native-bottom-shift,0px)}
html[data-pwa-system-bars] #main .detail-screen .detail-action{bottom:calc(74px + var(--pwa-safe-bottom,0px))}
html[data-pwa-system-bars] #paymentDialog{max-height:calc(var(--pwa-window-height) - 24px - var(--pwa-safe-top,0px) - var(--pwa-safe-bottom,0px))}
/* A modal top-layer picker does not inherit body's position compensation.
   Only a native-bar transition uses the stable full canvas. Focus/keyboard
   removes this state, restoring the picker's normal dynamic viewport sizing. */
html[data-pwa-system-bars] #picker{top:calc(0px - var(--pwa-native-top,0px));bottom:auto;height:var(--pwa-window-height);max-height:var(--pwa-window-height)}
html[data-pwa-system-bars] #picker .flow-head{padding-top:max(6px,var(--pwa-safe-top,0px))!important}
@media(orientation:portrait),(min-height:541px){
  html[data-pwa-system-bars] #picker #pickStep>.flow-actions,
  html[data-pwa-system-bars] #picker #reviewStep>.flow-actions{translate:0 var(--pwa-native-bottom-shift,0px)}
}
html[data-pwa-system-gesture]{overflow-y:hidden;overscroll-behavior-y:none;overflow-anchor:none;scroll-behavior:auto!important}
/* Render the real home immediately. Do not paint a blank green web frame
   between Android's native launch image and the application's first content. */
.home-loading-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-column:1/-1}
.home-loading-products>div{min-height:280px;border:1px solid #e0e6e0;border-radius:16px;background:#fff;padding:9px}
.home-loading-products>div::before{content:"";display:block;aspect-ratio:1;background:#eef2ed;border-radius:12px}
.home-loading-products>div::after{content:"";display:block;width:65%;height:14px;margin-top:12px;background:#eef2ed;border-radius:4px}
#storefront-home[aria-busy=true] #homeHeroTitle{visibility:hidden}
/* Only a drag beginning on the fixed tab bar is excluded from content scroll.
   Android's own system-edge gesture and all normal page scrolling stay native. */
.mobile-nav{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mobile-nav *{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
