.nx-header .nxnav-desktop-menu,
.nx-header .nxnav-menu-panel {
  display: none;
}

.nx-drawer .nx-categories .nx-cats-grid details > .nxnav-kit-link,
.nxnav-menu-panel .nxnav-category-links .nxnav-kit-link {
  border: 1px solid #c8dbee;
  border-radius: 6px;
  background: #eaf3fd;
  color: #174e7a;
  font-weight: 750;
}

.nx-drawer .nx-categories .nx-cats-grid details > .nxnav-kit-link {
  padding-inline: 8px;
}

@media (min-width: 768px) {
  body.nx-storefront .nx-header .nx-hlogo img {
    width: clamp(148px, 16vw, 164px) !important;
    max-width: 100%;
    height: auto;
  }

  body.nx-storefront .nx-header.nxnav-header-ready .nx-nav.e-con {
    grid-template-columns: clamp(148px, 16vw, 164px) max-content minmax(160px, 1fr) max-content;
    grid-template-areas: 'logo menu search bag';
    column-gap: clamp(10px, 2vw, 26px) !important;
  }

  body.nx-storefront .nx-header.nxnav-header-ready .nx-hmenu {
    display: block !important;
    grid-area: menu;
    width: auto !important;
  }

  .nx-header.nxnav-header-ready .nx-menu-toggle {
    display: none !important;
  }

  .nx-header .nxnav-desktop-menu:not([hidden]) {
    display: block;
  }

  .nx-header .nxnav-desktop-trigger {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding-inline: 12px;
    border: 1px solid #40566d;
    border-radius: 7px;
    background: #192536;
    color: #f5f8fc;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }

  .nx-header .nxnav-desktop-trigger svg {
    width: 20px;
    height: 20px;
    flex: none;
  }

  .nx-header .nxnav-desktop-trigger:is(:hover, [aria-expanded='true']) {
    border-color: #85c3ff;
    background: #243954;
  }

  .nx-header .nxnav-menu-panel:not([hidden]) {
    position: absolute;
    z-index: 20;
    inset-inline: max(16px, calc((100% - 1120px) / 2));
    inset-block-start: 100%;
    display: block;
    max-height: min(620px, calc(100dvh - 150px));
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #cdd8e3;
    border-radius: 0 0 10px 10px;
    background: #fff;
    color: #14283b;
    box-shadow: 0 10px 24px rgb(15 29 44 / 13%);
  }

  .nxnav-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #d5dfe8;
  }

  .nxnav-menu-panel :is(a, button):focus-visible {
    outline: 2px solid #116bbb;
    outline-offset: -2px;
  }

  .nxnav-menu-panel :is(a, a:visited) {
    color: #174e7a;
    text-decoration: none;
  }

  .nxnav-menu-panel a:is(:hover, :focus-visible) {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .nxnav-menu-panel a[aria-current='page'] {
    color: #164a75;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 750;
  }

  .nxnav-menu-panel .nxnav-browse-all,
  .nxnav-menu-panel .nxnav-view-section {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    font-weight: 750;
  }

  .nxnav-menu-close,
  .nxnav-category-tab {
    display: flex;
    align-items: center;
    gap: 9px;
    font: inherit;
    cursor: pointer;
  }

  .nxnav-menu-close {
    padding: 8px 12px;
    border: 1px solid #b9c9d8;
    border-radius: 5px;
    background: #f6f9fc;
    color: #233b51;
  }

  .nxnav-menu-body {
    display: grid;
    grid-template-columns: minmax(170px, 24%) minmax(0, 1fr);
    align-items: stretch;
  }

  .nxnav-category-tabs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border-inline-end: 1px solid #d5dfe8;
    background: #f2f6fa;
  }

  .nxnav-category-tab {
    min-height: 38px;
    padding: 8px 11px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #172e44;
    text-align: start;
    font-weight: 650;
    line-height: 1.25;
  }

  .nxnav-category-tab:is(:hover, [aria-selected='true']) {
    background: #dcecfb;
    color: #123e67;
  }

  .nxnav-category-tab[aria-selected='true'] {
    box-shadow: inset 3px 0 #2469a5;
  }

  .nxnav-category-section {
    padding: 10px clamp(14px, 2vw, 24px) 16px;
  }

  .nxnav-category-section[hidden] {
    display: none;
  }

  .nxnav-category-links,
  .nxnav-subcategory-links {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nxnav-category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    align-items: start;
    gap: 6px 16px;
  }

  .nxnav-category-links li {
    min-width: 0;
  }

  .nxnav-category-links a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 5px;
    line-height: 1.3;
  }

  .nxnav-category-links > li > a {
    font-weight: 675;
  }

  .nxnav-menu-panel .nxnav-category-links .nxnav-kit-link {
    padding-inline: 8px;
  }

  .nxnav-menu-panel .nxnav-menu-icon {
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #236199;
    pointer-events: none;
  }

  .nxnav-menu-panel span.nxnav-menu-icon {
    background-color: currentColor;
    mask: var(--nxnav-menu-mask) center / contain no-repeat;
    -webkit-mask: var(--nxnav-menu-mask) center / contain no-repeat;
  }

  .nxnav-menu-panel svg.nxnav-menu-icon {
    stroke: currentColor;
    stroke-width: 1.55;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nxnav-menu-panel :is(.nxnav-browse-all, .nxnav-view-section) {
    gap: 8px;
  }

  .nxnav-subcategory-links {
    padding-inline-start: 7px;
    border-inline-start: 1px solid #d5dfe8;
  }

  .nxnav-subcategory-links a {
    font-size: .9rem;
  }
}

@media (max-width: 767px) {
  body.nx-storefront.nxb-graphite .nx-header .nx-hlogo {
    width: min(100%, 128px) !important;
  }

  body.nx-storefront .nx-header .nx-hlogo img {
    width: min(100%, 128px) !important;
    height: auto;
  }
}

@media (max-width: 360px) {
  body.nx-storefront.nxb-graphite .nx-header .nx-nav.e-con {
    column-gap: 4px !important;
    padding-inline: 8px !important;
  }
}
