.kanteen-lang-switcher {
  margin-inline: 4px;
  position: relative;
}

.main-navigation .kanteen-lang-switcher__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--kanteen-tools-color, #1f1e1c);
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  height: 44px;
  padding: 0 8px;
  transition: background-color 0.15s;
}

.main-navigation .kanteen-lang-switcher__toggle:is(:hover, :focus-visible) {
  background: rgba(127, 127, 127, 0.18);
}

.kanteen-lang-switcher__flag {
  font-size: 18px;
  line-height: 1;
}

.kanteen-lang-switcher__caret {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.15s;
  width: 14px;
}

.kanteen-lang-switcher.is-open .kanteen-lang-switcher__caret {
  transform: rotate(180deg);
}

.kanteen-lang-switcher__menu {
  background: #fff;
  border: 1px solid #eee7de;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(31, 30, 28, 0.14);
  display: none;
  list-style: none;
  margin: 8px 0 0;
  min-width: 170px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 60;
}

.kanteen-lang-switcher.is-open .kanteen-lang-switcher__menu {
  display: block;
}

.kanteen-lang-switcher__item {
  align-items: center;
  border-radius: 7px;
  color: #1f1e1c;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  padding: 9px 10px;
}

a.kanteen-lang-switcher__item:is(:hover, :focus-visible) {
  background: #f1e9df;
}

.kanteen-lang-switcher__item.is-current {
  color: #9c3b22;
}

.kanteen-lang-switcher__item .kanteen-lang-switcher__flag {
  font-size: 17px;
}

/* Mobile: sits left of the burger, same as the account/cart icons. */
#mobile-menu-control-wrapper .kanteen-lang-switcher {
  margin: 0 2px;
}

#mobile-menu-control-wrapper .kanteen-lang-switcher__menu {
  right: auto;
  left: 0;
}
