.dealer-navigation {
  width: 100%;
}

.dealer-masthead {
  position: relative;
  z-index: 20;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.dealer-masthead__utility,
.dealer-masthead__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 36px;
}

.dealer-masthead__utility {
  min-height: 42px;
  border-bottom: 1px solid #e7e7e5;
  color: rgba(0, 0, 0, 0.58);
  font-size: 12px;
}

.dealer-masthead__utility > div {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(0, 0, 0, 0.72);
  font-weight: var(--type-label-weight);
}

.dealer-masthead__utility a {
  color: inherit;
}

.dealer-masthead__offer {
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-left: 1px solid #e7e7e5;
  color: var(--color-black);
  font: inherit;
  text-transform: uppercase;
}

.dealer-masthead__main {
  position: relative;
  min-height: 88px;
}

.dealer-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.dealer-brand__dealer-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 52px;
  border-radius: 14px;
  background: var(--color-white);
}

.dealer-brand__dealer-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.dealer-brand__dealer-logo--empty {
  background: var(--color-light-gray);
}

.dealer-brand__dealer-logo strong {
  font-size: 22px;
  font-weight: var(--type-heading-weight);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.dealer-brand__brand-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 48px;
  display: inline-flex;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.dealer-brand__brand-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.dealer-brand__brand-logo-fallback {
  margin: auto;
  font-size: 14px;
  font-weight: var(--type-heading-weight);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.dealer-brand__name strong,
.dealer-brand__name small {
  display: block;
}

.dealer-brand__name strong {
  max-width: 210px;
  font-size: 15px;
  line-height: 1.15;
}

.dealer-brand__name small {
  margin-top: 5px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 10px;
  text-transform: uppercase;
}

.dealer-primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(15px, 1.6vw, 28px);
}

.dealer-primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 12px;
  font-weight: var(--type-label-weight);
  text-decoration: none;
  text-transform: uppercase;
}

.dealer-primary-nav a:hover {
  color: rgba(0, 0, 0, 0.56);
}

.dealer-nav-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #ededeb;
  font-size: 10px;
  line-height: 1;
}

.dealer-anchor-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 18;
  width: max-content;
  max-width: calc(100vw - 24px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.dealer-anchor-nav.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.dealer-anchor-nav__links {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 16, 0.66);
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(80%);
}

.dealer-anchor-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 14px;
  font-weight: var(--type-label-weight);
  opacity: 1;
  transition: opacity 160ms ease;
}

.dealer-anchor-nav__links a:hover,
.dealer-anchor-nav__links a:focus-visible {
  opacity: 0.9;
}

.dealer-anchor-nav span {
  color: rgba(255, 255, 255, 0.58);
}

.dealer-anchor-nav .dealer-anchor-nav__call {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 16, 0.66);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(80%);
}

.dealer-anchor-nav__call img {
  width: 20px;
  height: 20px;
  filter: none;
  opacity: 1;
  transition: opacity 160ms ease;
}

.dealer-anchor-nav__call:hover img,
.dealer-anchor-nav__call:focus-visible img {
  opacity: 0.9;
}

@media (min-width: 1151px) {
  body.catalog-has-supporting-pane .dealer-anchor-nav {
    left: calc(var(--desktop-rail-width, 136px) + (100vw - var(--desktop-rail-width, 136px)) / 2);
  }
}

@media (max-width: 1240px) {
  .dealer-brand__brand-logo {
    width: 80px;
  }

  .dealer-brand__brand-logo img {
    width: 80px;
    height: 80px;
  }

  .dealer-primary-nav {
    gap: 14px;
  }

  .dealer-primary-nav a {
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .dealer-primary-nav {
    display: none;
  }

  .dealer-brand__brand-logo {
    right: 36px;
    left: auto;
    transform: translateY(-50%);
  }
}

@media (max-width: 760px) {
  .dealer-masthead {
    border-radius: var(--radius-sm);
  }

  .dealer-masthead__utility {
    display: none;
  }

  .dealer-masthead__main {
    min-height: 72px;
    padding: 0 16px;
  }

  .dealer-brand {
    min-width: 0;
    gap: 10px;
  }

  .dealer-brand__dealer-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 12px;
  }

  .dealer-brand__dealer-logo strong {
    font-size: 20px;
  }

  .dealer-brand__brand-logo {
    right: 16px;
    width: 70px;
  }

  .dealer-brand__brand-logo img {
    width: 70px;
    height: 70px;
  }

  .dealer-brand__name small {
    display: none;
  }

  .dealer-brand__name strong {
    max-width: 150px;
    font-size: 13px;
  }

  .dealer-anchor-nav,
  .dealer-anchor-nav.is-visible {
    top: auto;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    max-width: none;
    min-height: 60px;
    justify-content: space-between;
    gap: 6px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: none;
  }

  .dealer-anchor-nav__links {
    min-width: 0;
    min-height: 60px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 1.05fr);
    flex: 1 1 auto;
    gap: 0;
    padding: 0;
    border-radius: 18px;
  }

  .dealer-anchor-nav__links a {
    position: relative;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    font-size: 12px;
    white-space: nowrap;
  }

  .dealer-anchor-nav__links a span {
    position: absolute;
    top: 3px;
    left: 50%;
    font-size: 12px;
    line-height: 1;
    transform: translateX(-50%);
  }

  .dealer-anchor-nav .dealer-anchor-nav__call {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    margin-left: 0;
    border-radius: 18px;
  }

  .dealer-anchor-nav__call img {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-anchor-nav {
    transition: none;
  }
}
