/* Shared account/cart divider used by every header. */
:root {
  --header-action-divider: rgba(255, 255, 255, 0.18);
  --header-action-divider-height: 28px;
  --header-action-divider-gap: 12px;
}

/* The horizontal logo stays in the desktop header; mobile uses the drawer. */
#mainNav .header-brand-lockup {
  display: none;
  width: 210px;
  max-width: min(210px, 40vw);
  min-width: 0;
  height: 62px;
  min-height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease;
}

#mainNav .header-brand-lockup:is(:hover, :focus-visible) {
  transform: translateY(-1px);
}

#mainNav .header-brand-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 992px) {
  #mainNav .header-brand-lockup {
    display: inline-flex !important;
  }

  .home-page #mainNav .header-brand-lockup.header-home-link,
  .inner-page #mainNav .header-brand-lockup.header-home-link {
    top: -70px;
  }
}

@media (max-width: 1100px) and (min-width: 992px) {
  #mainNav .header-brand-lockup { width: 185px; height: 58px; min-height: 58px; }
  .home-page #mainNav .header-brand-lockup.header-home-link,
  .inner-page #mainNav .header-brand-lockup.header-home-link { top: -67.833px; }
}

@media (max-width: 991px) {
  #mainNav {
    --header-actions-gap: 5px;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  #mainNav {
    --header-actions-gap: 8px;
  }
}

@media (max-width: 767px) {
  #mainNav > .container {
    flex-wrap: nowrap;
    gap: 4px;
  }
}

.account-wrap {
  padding-left: var(--header-action-divider-gap);
  margin-left: 4px;
  border-left: 1px solid var(--header-action-divider);
}
@media (max-width: 991px) {
  .account-wrap {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }
}

/* Keep the search header actions in the same blue-gray component palette. */
.header-cart {
  border-color: #d8dee5 !important;
  background: #fff !important;
}
.header-cart:hover,
.header-cart:focus-visible {
  border-color: #9ba9b6 !important;
  background: #f3f7fb !important;
  color: #173867 !important;
  box-shadow: 0 5px 16px rgba(16, 42, 86, 0.12) !important;
}

/* Keep the signed-in label stable on one line across inner-page headers. */

/* Keep search and account glyph boxes identical in both header variants. */
#mainNav .home-header-search > button > .bi-search {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

:is(.home-page, .inner-page) #mainNav .account-btn > .bi-person {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

:is(.home-page, .inner-page) #mainNav .account-btn > .account-label {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
}

:is(.home-page, .inner-page) #mainNav .account-btn > .bi-chevron-down {
  display: grid;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  place-items: center;
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 991px) {
  .mobile-menu .mobile-category-toggle > span > i,
  .mobile-menu .mobile-category > button > span > i {
    display: grid !important;
    width: 31px !important;
    height: 31px !important;
    place-items: center !important;
    border: 1px solid rgba(223, 194, 127, 0.18) !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    box-shadow: none !important;
  }
  .mobile-menu .mobile-category-toggle > span > i,
  .mobile-menu .mobile-category > button > span > i {
    margin-left: 0 !important;
  }
}
