/* Capacitor 8: SystemBars insetsHandling=native already reserves the real Android
   status/navigation bars in the WebView's parent. Do NOT add env() or injected
   --safe-area-inset-* again: older 3-button devices (Tecno Pop 7) gained a
   huge empty footer and the floating cart sat too high. Web stays untouched. */
html.pv-native-android{
 --pv-top-inset:0px;
 --pv-bottom-inset:0px;
}
html.pv-native-android body{min-height:100dvh}
html.pv-native-android .topbar{
 top:0!important;
 padding-top:var(--pv-top-inset);
 box-sizing:border-box;
}
html.pv-native-android .entry-screen{
 padding-top:calc(var(--pv-top-inset) + 22px)!important;
 padding-bottom:calc(var(--pv-bottom-inset) + 22px)!important;
}
html.pv-native-android .bottom-nav{
 padding-bottom:calc(7px + var(--pv-bottom-inset))!important;
}
html.pv-native-android .floating-cart{
 bottom:calc(79px + var(--pv-bottom-inset))!important;
}
html.pv-native-android .pv-whatsapp-contact{
 bottom:calc(185px + var(--pv-bottom-inset))!important;
}
html.pv-native-android .toast{top:calc(77px + var(--pv-top-inset))!important}
html.pv-native-android #accountOverlay,
html.pv-native-android .pv-notice-overlay,
html.pv-native-android .pv-push-intro-overlay{
 padding-top:calc(12px + var(--pv-top-inset))!important;
 padding-bottom:calc(12px + var(--pv-bottom-inset))!important;
}
html.pv-native-android .drawer{padding-bottom:var(--pv-bottom-inset)!important}
@media(max-width:390px){
 html.pv-native-android .floating-cart{bottom:calc(75px + var(--pv-bottom-inset))!important}
}

/* La notificación interna NUNCA debe permanecer oculta sobre la barra de Android.
   Antes se escondía con translateY(-140px): dejaba el texto en la barra de estado. */
.toast{
  opacity:0!important;
  visibility:hidden!important;
  transform:translate(-50%,-10px)!important;
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s!important;
  line-height:1.42;
  overflow-wrap:anywhere;
  box-sizing:border-box;
  max-height:min(42dvh,190px);
  overflow-y:auto;
  background:#254e3b;
}
.toast.show{
  opacity:1!important;
  visibility:visible!important;
  transform:translate(-50%,0)!important;
  transition:opacity .18s ease,transform .18s ease,visibility 0s!important;
}
@media(prefers-reduced-motion:reduce){
 .toast,.toast.show{transition:none!important}
}
