/* Cashback Pro V36.7.1 — landscape theme gallery must layer above the app header.
   The gallery/backdrop live inside main.main-container.  Earlier z-index rules
   raised the children but could not escape the main container's stacking context. */
@media (orientation: landscape) and (max-height: 820px) {
  body:has(#seasonal-theme-gallery.is-open) main.main-container {
    position: relative !important;
    z-index: 50000 !important;
    isolation: isolate !important;
  }

  body:has(#seasonal-theme-gallery.is-open) header.app-header {
    position: relative !important;
    z-index: 1000 !important;
  }

  body:has(#seasonal-theme-gallery.is-open) #app-sidebar.app-sidebar {
    z-index: 900 !important;
  }

  #theme-gallery-backdrop:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 50010 !important;
  }

  #seasonal-theme-gallery.is-open {
    position: fixed !important;
    z-index: 50020 !important;
    isolation: isolate !important;
  }
}
