#mobileCategoryPage[hidden] { display: none !important; }
@media (max-width:760px) {
  body.mcf-directory #listings .market-feed > :not(#mobileCategoryPage),
  body.mcf-directory > footer,
  body.mcf-enabled.mcf-no-category #inlineFilters,
  body.mcf-enabled #browseNavigation .cx-branches,
  body.mcf-enabled #listings .market-feed > .market-discovery:not([hidden]),
  body.mcf-enabled > .mobile-nav > a {
    display: none !important;
  }
  body.mcf-enabled > .mobile-nav > #mobileCategories:not([hidden]) {
    display: flex !important;
  }
  body.mcf-enabled > .mobile-nav #mobileCategories.nav-active {
    color: var(--storefront-accent-ink, #11688f);
  }
  body.mcf-directory #listings {
    min-height: calc(100dvh - 160px);
    padding-inline: 12px !important;
  }
  #mobileCategoryPage {
    --mcf-line: var(--theme-border, #d5dfe7);
    --mcf-surface: var(--theme-surface, #fff);
    --mcf-ink: var(--theme-text, #193244);
    --mcf-accent: var(--storefront-accent-ink, #11688f);
    --mcf-soft: var(--storefront-accent-soft, #edf6fb);
    display: block;
    min-width: 0;
    padding: 0 0 14px;
    color: var(--mcf-ink);
  }
  #mobileCategoryPage .mcf-heading {
    position: sticky;
    top: 0;
    z-index: 5;
    min-width: 0;
    margin: 0;
    padding: 12px 0 9px;
    background: var(--theme-page, var(--theme-surface, #f6f8fa));
  }
  #mobileCategoryPage h1 {
    margin: 0;
    font-family: inherit;
    font-size: 23px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.35px;
    overflow-wrap: anywhere;
  }
  #mobileCategoryPage .mcf-backbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin: -9px 0 4px;
  }
  #mobileCategoryPage .mcf-backbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 44px;
    padding: 5px 0;
    color: var(--mcf-accent);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
  }
  #mobileCategoryPage .mcf-backbar a:first-child { flex: 1; }
  #mobileCategoryPage .mcf-backbar a:last-child:not(:first-child) {
    flex: 0 0 auto;
    max-width: 45%;
    text-align: end;
    justify-content: end;
  }
  #mobileCategoryPage .mcf-backbar a > span:first-child { font-size: 28px; line-height: 1; }
  #mobileCategoryPage .mcf-backbar a > span:last-child { overflow-wrap: anywhere; }
  #mobileCategoryPage .mcf-list {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    min-width: 0;
    padding: 0;
  }
  #mobileCategoryPage .mcf-row {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-width: 0;
    min-height: 74px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--mcf-line);
    border-radius: 9px;
    background: var(--mcf-surface);
    color: var(--mcf-ink);
    text-decoration: none;
    text-align: start;
    font-family: inherit;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    touch-action: manipulation;
  }
  #mobileCategoryPage .mcf-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  #mobileCategoryPage .mcf-icon { display: grid; place-items: center; width: 30px; height: 32px; flex: 0 0 30px; color: var(--mcf-accent); }
  #mobileCategoryPage .mcf-icon svg { width: 28px; height: 28px; }
  #mobileCategoryPage .mcf-arrow { flex: 0 0 auto; font-size: 28px; line-height: 1; color: var(--muted, #657788); }
  #mobileCategoryPage .mcf-show-all {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--mcf-accent);
    border-radius: 8px;
    background: var(--mcf-soft);
    color: var(--mcf-accent);
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
  }
  #mobileCategoryPage .mcf-jump {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 9px;
    color: var(--muted, #657788);
    font-size: 13px;
    line-height: 1.3;
  }
  #mobileCategoryPage .mcf-jump select {
    width: 62%;
    min-width: 0;
    min-height: 44px;
    padding: 7px;
    border: 1px solid var(--mcf-line);
    border-radius: 6px;
    background: var(--mcf-surface);
    color: var(--mcf-ink);
    font: inherit;
    font-size: 16px;
  }
  #mobileCategoryPage :is(a,select):focus-visible {
    outline: 2px solid var(--mcf-accent);
    outline-offset: -3px;
  }
  #mobileCategoryPage .mcf-row:active { background: var(--mcf-soft); }
  body.mcf-directory .market-header .market-search-row #marketCatalogue { display: none !important; }
  body.mcf-directory .market-header .market-search-row #searchForm {
    grid-column: 1/-1;
    border-radius: 7px;
  }
}
