/* Keep the shared category menu aligned on both checkout pages. */
@media (min-width: 801px) {
  body:is(.cart-page, .direct-checkout) .category-nav {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    width: min(1200px, calc(100% - 40px)) !important;
    height: 64px !important;
    min-height: 64px !important;
    gap: 0 !important;
    padding: 0 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
    scrollbar-width: thin;
  }

  body:is(.cart-page, .direct-checkout) .category-nav > :is(a, .nav-item) {
    display: flex !important;
    flex: 1 0 145px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 145px !important;
    height: 100% !important;
    padding: 0 6px !important;
    text-align: center !important;
  }

  body:is(.cart-page, .direct-checkout) .category-nav > .nav-item > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  body:is(.cart-page, .direct-checkout) .category-nav > a {
    white-space: nowrap !important;
  }

  /* Dropdown panels must stay visible outside the scrolling menu row. */
  body:is(.cart-page, .direct-checkout) .category-nav .nav-dropdown {
    position: fixed !important;
    top: var(--bho-category-dropdown-top, 0px) !important;
    left: var(--bho-category-dropdown-left, 0px) !important;
    right: auto !important;
  }
}
