/*
 * Cashback Pro V36.7.153
 * Landscape swipe-to-close drawer and edge-aligned mobile footer.
 */

/* Keep the landscape drawer open on outside taps; only an intentional
   right-to-left swipe beginning inside the drawer closes it (JS handler). */
@media (orientation: landscape) and (max-height: 820px) {
  html body #app-sidebar.app-sidebar {
    touch-action: pan-y !important;
  }
  html body #sidebar-backdrop,
  html body .sidebar-backdrop {
    display: none !important;
    pointer-events: none !important;
  }
}

/* Footer brand uses the same official Cashback Pro mark as the header. */
html body footer.app-footer .footer-brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
}
html body footer.app-footer .footer-brand-line img {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  vertical-align: middle;
}

/* Remove the artificial gap below the footer on phones. Keep enough internal
   padding so the text/logo do not collide with Android's gesture indicator. */
@media (max-width: 1100px) {
  html body {
    padding-bottom: 0 !important;
  }
  html body footer.app-footer {
    margin-bottom: 0 !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }
}
