.top-bar {
  min-height: calc(var(--top-bar-height, 40px) + 1px);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--top-bar-background, var(--utility-background));
  color: var(--page-ink);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.top-bar__inner {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: var(--top-bar-height, 40px);
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--top-bar-gap, 0px);
  padding: 0;
}

.top-bar .utility-navigation ul,
.top-bar:not([data-top-bar-layout="honda"]) .top-bar__actions ul {
  display: inline-block;
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

.top-bar .utility-navigation li,
.top-bar:not([data-top-bar-layout="honda"]) .top-bar__actions li {
  display: inline-block;
  padding: 0 24px;
  font-size: var(--theme-top-bar-item-size, inherit);
  line-height: 21px;
}

.top-bar .utility-navigation li:has(.navigation-icon) {
  padding-left: 18px;
}

.top-bar .utility-navigation a,
.top-bar__actions a {
  position: relative;
  display: block;
  margin-top: 2px;
  padding: 10px 0;
  color: var(--top-bar-link-copy, #000);
  font-family: var(--top-bar-link-font-family, var(--font-family-ui));
  font-size: var(--top-bar-link-font-size, 14px);
  font-weight: var(--top-bar-link-font-weight, 300);
  line-height: 1;
  transition: var(--theme-top-bar-link-transition, color .2s linear);
}

.top-bar .utility-navigation a::after,
.top-bar__actions a::after {
  height: 9px;
  margin-left: 1.5rem;
  border-right: 1px solid var(--line);
  content: "";
}

.top-bar .navigation-icon {
  position: absolute;
  top: calc(50% - 12px);
  left: -30px;
  width: 20px;
  height: 20px;
  margin: 0;
  object-fit: contain;
  object-position: left top;
}

.top-bar a:hover,
.top-bar a:focus-visible {
  text-decoration: underline;
}

/* The legacy #upper_menu keeps its normal link decoration in contrast mode. */

body.has-high-contrast .top-bar a:not(:hover):not(:focus-visible) {
  text-decoration: none;
}

.top-bar__actions ul {
  display: flex;
  gap: 24px;
  margin: 0;
  list-style: none;
}

.top-bar:not([data-top-bar-layout="honda"]) .top-bar__actions:has(+ .utility-navigation) ul {
  padding-right: 0;
}

.top-bar:not([data-top-bar-layout="honda"]) .top-bar__actions + .utility-navigation ul {
  padding-left: 0;
}

/* Legacy css_base/base.css: comparison count sits before the utility label. */
.top-bar strong::before {
  position: absolute;
  top: calc(50% - 12px);
  left: -30px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary, #000);
  color: #fff;
  font-style: normal;
  font-weight: 700;
  content: attr(aria-label);
}

.site-switcher {
  order: -1;
  position: relative;
  margin-right: auto;
  padding-block: 8px;
}

.site-switcher summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.site-switcher summary::-webkit-details-marker {
  display: none;
}

.site-switcher summary::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px 3px 9px;
  transform: rotate(45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
}

.site-switcher details[open] summary::after {
  transform: rotate(225deg);
}

.site-switcher ul {
  position: absolute;
  top: calc(100% + 9px);
  left: -12px;
  z-index: 40;
  display: grid;
  min-width: 180px;
  gap: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--utility-background);
  box-shadow: var(--card-shadow);
}

.site-switcher li > :is(a, span) {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
}

.site-switcher [aria-current] {
  font-weight: 800;
}

@media (max-width: 1020px) {
  .top-bar {
    display: none;
  }
}
