.er-language-switcher {
  position: relative;
  flex: 0 0 auto;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.er-language-switcher details {
  position: relative;
}

.er-language-switcher summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(69, 71, 66, 0.28);
  border-radius: 6px;
  padding: 9px 11px;
  color: #1c1b1b;
  background: #fffdf9;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

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

.er-language-switcher summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.er-language-switcher details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.er-language-switcher summary:hover,
.er-language-switcher summary:focus-visible {
  border-color: #006a6a;
  outline: 3px solid rgba(0, 106, 106, 0.16);
  outline-offset: 1px;
}

.er-language-options {
  position: absolute;
  z-index: 120;
  top: calc(100% + 7px);
  right: 0;
  min-width: 158px;
  overflow: hidden;
  border: 1px solid #e5e1da;
  border-radius: 7px;
  padding: 5px;
  background: #fffdf9;
  box-shadow: 0 12px 30px rgba(28, 27, 27, 0.14);
}

.er-language-options a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 4px;
  padding: 9px 11px;
  color: #1c1b1b;
  font-weight: 600;
  text-decoration: none;
}

.er-language-options a:hover,
.er-language-options a:focus-visible {
  background: #f4f1ec;
  outline: none;
}

.er-language-options a[aria-current="true"] {
  color: #006a6a;
  background: #eef7f6;
}

.er-language-options a[aria-current="true"]::after {
  content: "\2713";
  font-weight: 800;
}

.er-language-switcher--mobile {
  display: none;
}

.er-language-suggestion {
  position: relative;
  z-index: 35;
  border-bottom: 1px solid #e5e1da;
  background: #f4f1ec;
  color: #1c1b1b;
}

.er-language-suggestion[hidden] {
  display: none;
}

.er-language-suggestion__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 46px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 0;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 13px;
}

.er-language-suggestion a,
.er-language-suggestion button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  padding: 6px 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.er-language-suggestion a {
  color: #fff;
  background: #006a6a;
  text-decoration: none;
}

.er-language-suggestion button {
  color: #454742;
  background: transparent;
}

.er-language-suggestion a:focus-visible,
.er-language-suggestion button:focus-visible {
  outline: 3px solid rgba(0, 106, 106, 0.2);
  outline-offset: 2px;
}

@media (max-width: 840px) {
  .er-language-switcher--desktop {
    display: none;
  }

  .er-language-switcher--mobile {
    display: block;
    width: 100%;
    border-top: 1px solid rgba(69, 71, 66, 0.16);
    padding-top: 5px;
  }

  .er-language-switcher--mobile summary {
    width: 100%;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    padding-inline: 8px;
  }

  .er-language-switcher--mobile summary::after {
    margin-left: auto;
  }

  .er-language-switcher--mobile .er-language-options {
    position: static;
    width: 100%;
    margin: 2px 0 5px;
    box-shadow: none;
  }

  .er-language-suggestion__inner {
    width: min(100% - 24px, 620px);
    min-height: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 9px;
    padding: 9px 0;
  }
}
