/* ReadyUs mobile/tablet bottom navigation clearance fix.
   Scope: only adds extra scrollable bottom room so buttons/content do not hide behind bottom nav. */
@media (max-width:1023px){
  :root{
    --ru-bottom-extra-scroll-clearance:calc(var(--bottom-h,110px) + 190px + env(safe-area-inset-bottom,0px));
    --ru-bottom-critical-action-clearance:calc(var(--bottom-h,110px) + 230px + env(safe-area-inset-bottom,0px));
  }

  html,
  body{
    scroll-padding-bottom:var(--ru-bottom-critical-action-clearance) !important;
  }

  #customerApp,
  #mainApp,
  #homePage,
  #foodModeContent,
  #itemsModeContent,
  #itemsCategories,
  #cartPage,
  #checkoutPage,
  #ordersPage,
  #profilePage,
  #favoritesPage,
  #productDetailPage,
  #sellerDetailPage,
  #sectionPage,
  #searchResultsPage,
  #sellerApp,
  #deliveryApp,
  #adminApp,
  .page{
    padding-bottom:var(--ru-bottom-extra-scroll-clearance) !important;
    box-sizing:border-box !important;
  }

  #cartPage,
  #checkoutPage,
  #productDetailPage{
    padding-bottom:var(--ru-bottom-critical-action-clearance) !important;
  }

  #cartPage .ru-cart-shell,
  #cartPageContent,
  #cartItems,
  #cartBill,
  #checkoutPage .checkout-form,
  #checkoutPageContent,
  #productDetailPage .pdp-shell{
    padding-bottom:var(--ru-bottom-critical-action-clearance) !important;
    box-sizing:border-box !important;
  }

  .ru-price-details,
  .bill-card,
  .bill-summary,
  .cart-bill,
  .checkout-summary,
  .ru-cart-seller-group-final:last-child,
  .ru-cart-product-card:last-child{
    margin-bottom:calc(var(--bottom-h,110px) + 120px + env(safe-area-inset-bottom,0px)) !important;
  }

  .ru-cart-bottom-bar{
    bottom:var(--bottom-h,110px) !important;
    z-index:2147482998 !important;
  }

  #productDetailPage #productDetailActions{
    bottom:var(--bottom-h,110px) !important;
    z-index:2147482998 !important;
  }
}
