/*
 * Cashback Pro V36.7.141 — compact header and category control row.
 * The category toggle is intentionally outside .app-header so it cannot
 * increase the brand/account header height or be clipped by header layout.
 */
@media (max-width: 980px), (orientation: landscape) and (max-height: 820px) {
  html body header.app-header {
    grid-template-rows: auto !important;
    grid-template-areas: "brand mode user" !important;
    row-gap: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: 0 !important;
  }

  html body header.app-header #mobile-menu-toggle {
    display: none !important;
  }

  html body .header-menu-row {
    position: relative !important;
    z-index: 1590 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    padding: 6px 12px 8px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
  }

  html body .header-menu-row .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 36px !important;
    padding: 7px 12px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 1591 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}

@media (min-width: 981px) and (orientation: portrait) {
  html body .header-menu-row { display: none !important; }
}

@media (max-width: 420px) {
  html body header.app-header {
    column-gap: 5px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
  html body .header-menu-row {
    padding: 5px 10px 7px !important;
  }
  html body .header-menu-row .mobile-menu-toggle {
    min-height: 34px !important;
    padding: 6px 10px !important;
  }
}
