/* One stable navigation frame for every public customer page. */
@view-transition { navigation: auto; }

html { scrollbar-gutter: stable; }

body .customer-shell-header,
body.minimal-customer .customer-shell-header {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  min-height: 96px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fffdfa !important;
  border: 0 !important;
  border-bottom: 1px solid #e8e2dc !important;
  box-shadow: 0 4px 18px rgba(27, 21, 18, .035) !important;
  view-transition-name: dglt-customer-header;
}

/* Keep the tracking page's outer header from confining the navbar to
   one column of its older three-column grid. */
body.confirmation-page > .site-header.customer-shell-header {
  display: block !important;
  grid-template-columns: none !important;
  padding: 0 !important;
}

body .customer-shell-header .customer-shell-bar,
body.minimal-customer .customer-shell-header .customer-shell-bar {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr) !important;
  align-items: center !important;
  gap: 20px !important;
  width: min(1700px, calc(100% - 56px)) !important;
  max-width: none !important;
  min-height: 96px !important;
  margin: auto !important;
  padding: 0 !important;
  background: transparent !important;
  font-family: Inter, 'Segoe UI', Arial, sans-serif !important;
}

body .customer-shell-header .customer-shell-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 12px !important;
  padding: 0 !important;
  color: #252321 !important;
  text-decoration: none !important;
}

body .customer-shell-header .customer-shell-brand img {
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
}

body .customer-shell-header .customer-shell-brand .minimal-wordmark {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  line-height: 1.08 !important;
}

body .customer-shell-header .customer-shell-brand strong {
  color: #252321 !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body .customer-shell-header .customer-shell-brand small {
  color: #746c67 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

body .customer-shell-header .customer-shell-links,
body.minimal-customer .customer-shell-header .customer-shell-links {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-self: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  list-style: none !important;
}

body .customer-shell-header .customer-shell-links li { margin: 0 !important; padding: 0 !important; list-style: none !important; }

body .customer-shell-header .customer-shell-links .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 50px !important;
  padding: 13px 16px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #292625 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
}

body .customer-shell-header .customer-shell-links .nav-link.active,
body .customer-shell-header .customer-shell-links .nav-link[aria-current="page"] {
  background: #fceae8 !important;
  color: #bd0d18 !important;
  border-bottom-color: #c9141e !important;
}

body .customer-shell-header .customer-shell-links .nav-link:hover,
body .customer-shell-header .customer-shell-links .nav-link:focus-visible {
  color: #b50915 !important;
  background: #fceae8 !important;
}

body .customer-shell-header .customer-shell-links .nav-link::before,
body .customer-shell-header .customer-shell-links .nav-link::after { display: none !important; }

body .customer-shell-header .customer-shell-actions {
  display: flex !important;
  justify-self: end !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body .customer-shell-header .customer-shell-cart,
body.minimal-customer .customer-shell-header .customer-shell-cart {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 152px !important;
  min-height: 54px !important;
  padding: 10px 16px !important;
  border: 1px solid #be1823 !important;
  border-radius: 10px !important;
  background: #be1823 !important;
  color: white !important;
  font: 800 16px/1.2 Inter, 'Segoe UI', Arial, sans-serif !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transform: none !important;
}

body .customer-shell-header .customer-shell-cart:hover { background: #a80b16 !important; }
body .customer-shell-header .customer-shell-cart svg { flex: none; }

body .customer-shell-header .customer-shell-cart-count,
body.minimal-customer .customer-shell-header .customer-shell-cart-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 25px !important;
  height: 25px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: white !important;
  color: #b90c19 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body .customer-shell-header .customer-shell-compat { display: none !important; }
body .customer-shell-header .customer-shell-toggle { display: none !important; }

@media (max-width: 1080px) {
  body .customer-shell-header .customer-shell-bar,
  body.minimal-customer .customer-shell-header .customer-shell-bar {
    grid-template-columns: auto 1fr auto !important;
    gap: 10px !important;
    width: calc(100% - 36px) !important;
  }
  body .customer-shell-header .customer-shell-links { gap: 0 !important; }
  body .customer-shell-header .customer-shell-links .nav-link { font-size: 13px !important; padding-inline: 9px !important; }
  body .customer-shell-header .customer-shell-cart { min-width: 116px !important; }
}

@media (max-width: 760px) {
  body .customer-shell-header { min-height: 72px !important; }
  body .customer-shell-header .customer-shell-bar,
  body.minimal-customer .customer-shell-header .customer-shell-bar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 72px !important;
    width: calc(100% - 28px) !important;
  }
  body .customer-shell-header .customer-shell-brand img { width: 42px !important; height: 42px !important; }
  body .customer-shell-header .customer-shell-actions { grid-column: 2 !important; grid-row: 1 !important; }
  body .customer-shell-header .customer-shell-cart { min-width: auto !important; min-height: 44px !important; padding: 7px 9px !important; font-size: 13px !important; }
  body .customer-shell-header .customer-shell-cart svg { width: 18px; height: 18px; }
  body .customer-shell-header .customer-shell-cart-count { width: 21px !important; height: 21px !important; }
  body .customer-shell-header .customer-shell-toggle {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 44px !important; height: 44px !important; padding: 0 !important;
    border: 1px solid #e8e2dc !important; border-radius: 9px !important;
    background: #fffdfa !important; color: #252321 !important;
    font-size: 24px !important; cursor: pointer !important;
  }
  body .customer-shell-header .customer-shell-links,
  body.minimal-customer .customer-shell-header .customer-shell-links {
    position: absolute !important; top: calc(100% - 1px) !important;
    left: 0 !important; right: 0 !important;
    display: none !important; flex-direction: column !important; align-items: stretch !important;
    width: 100% !important; padding: 8px 14px 16px !important;
    border-bottom: 1px solid #e8e2dc !important; background: #fffdfa !important;
    box-shadow: 0 12px 18px rgba(27,21,18,.08) !important;
  }
  body .customer-shell-header .customer-shell-links.open,
  body.minimal-customer .customer-shell-header .customer-shell-links.open { display: flex !important; }
  body .customer-shell-header .customer-shell-links .nav-link { display: flex !important; justify-content: flex-start !important; }
}

@media (max-width: 390px) {
  body .customer-shell-header .customer-shell-brand strong { font-size: 14px !important; }
  body .customer-shell-header .customer-shell-brand small { font-size: 11px !important; }
  body .customer-shell-header .customer-shell-cart > span:not(.customer-shell-cart-count):not(.header-cart-count) { display: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: .13s ease-out both dglt-page-out; }
  ::view-transition-new(root) { animation: .20s ease-in both dglt-page-in; }
  ::view-transition-old(dglt-customer-header),
  ::view-transition-new(dglt-customer-header) { animation: none; }
  @keyframes dglt-page-out { to { opacity: .65; } }
  @keyframes dglt-page-in { from { opacity: .65; } }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
