/* Safari browser chrome already borders the page; trim at most 8px of the
   product action row's bottom padding. Keep standalone Home Indicator space. */
@media (max-width:768px) {
 html.gsfc-ios-browser.gsfc-store-layout .h5-product-details .bottom-actions {
  padding-bottom:max(0px,calc(env(safe-area-inset-bottom,0px) - 8px))!important;
 }
}
@media (min-width:769px) {
 html.gsfc-phone-ui.gsfc-ios-browser.gsfc-store-layout .h5-product-details .bottom-actions {
  padding-bottom:max(0px,calc(env(safe-area-inset-bottom,0px) - 8px))!important;
 }
}

/* Compact the mobile product action row without reducing the safe-area inset. */
@media (max-width:768px) {
 html.gsfc-store-layout .h5-product-details {
  padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))!important;
 }
 html.gsfc-store-layout .h5-product-details .bottom-actions {
  height:calc(64px + env(safe-area-inset-bottom,0px))!important;
  min-height:64px!important;
  padding:4px 8px env(safe-area-inset-bottom,0px)!important;
  gap:8px!important;
  box-sizing:border-box!important;
 }
 html.gsfc-store-layout .h5-product-details .bottom-actions .ba-left {
  padding:0!important;
 }
 html.gsfc-store-layout .h5-product-details .bottom-actions .ba-left .ba-item {
  padding:4px 2px!important;
  gap:4px!important;
 }
}

