
/* Schimbio footer spacing hotfix 1.0.2a
   One bottom reserve only. Prevents the footer gap from being counted twice. */

/* Desktop / normal website */
.view:has(> .footer),
.view:has(.footer){
  padding-bottom:0 !important;
}

.footer{
  padding-top:20px !important;
  padding-bottom:14px !important;
  margin-bottom:0 !important;
}

.footer-inner{
  margin-bottom:0 !important;
}

/* Mobile website / installed PWA */
@media (max-width:800px){
  .view:has(> .footer),
  .view:has(.footer){
    padding-bottom:0 !important;
  }

  /* Reserve exactly the fixed Schimbio bottom navigation once. */
  .footer{
    padding-top:16px !important;
    padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 6px) !important;
    margin-bottom:0 !important;
  }
}

/* Android APK:
   Schimbio nav is already lifted above Android's system navigation.
   Reserve nav + Android system bar exactly once, not once on .view and again on .footer. */
html[data-schimbio-android="1"] .view:has(> .footer),
html[data-schimbio-android="1"] .view:has(.footer){
  padding-bottom:0 !important;
}

@media (max-width:800px){
  html[data-schimbio-android="1"] .footer{
    padding-top:14px !important;
    padding-bottom:calc(
      var(--nav) + var(--schimbio-system-bottom) + 4px
    ) !important;
    margin-bottom:0 !important;
  }
}

/* Keep the Home feedback button close to the footer/navigation instead of floating high. */
@media (max-width:800px){
  html[data-schimbio-android="1"] .beta-feedback-trigger{
    bottom:calc(
      var(--schimbio-system-bottom) + var(--nav) + 6px
    ) !important;
  }
}
