.locale-switcher {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  font-family: inherit;
  transform: scaleY(0.9);
}
.country-switcher {
  position: relative;
  display: inline-flex;
}
.country-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px 0 0 999px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #1a1a1a;
  white-space: nowrap;
}
.country-switcher__flag {
  width: 30px;
  height: auto;
  flex: 0 0 auto;
}
.country-switcher__label {
  font-weight: 700;
  font-family: Lexend-Normal, sans-serif;
}
.country-switcher__chevron {
  width: 14px;
  height: 14px;
  color: #8a8a8a;
  transition: transform 0.2s ease;
}
.country-switcher.is-open .country-switcher__chevron {
  transform: rotate(180deg);
}
.country-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}
.country-switcher.is-open .country-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.country-switcher__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  color: #1a1a1a;
  white-space: nowrap;
}
.country-switcher__option:hover {
  background: #f5f5f5;
}
.country-switcher__option.is-selected {
  font-weight: 600;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-left: 1px solid #e3e3e3;
  border-radius: 0 999px 999px 0;
  text-decoration: none;
  color: #1f5fbf;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.lang-toggle__flag {
  width: 40px;
  height: auto;
}
.lang-toggle__label {
  font-weight: 600;
  color: #1a1a1a;
  font-family: Lexend-Normal, sans-serif;
}

.m-country-switcher {
  display: none;
  width: 100%;
  font-family: inherit;
  margin-top: 20px;
  padding-left: 40px;
  padding-right: 40px;
}
.m-country-switcher__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #1a1a1a;
}
.m-country-switcher__current {
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-country-switcher__flag {
  width: 40px;
  height: auto;
  flex: 0 0 auto;
}
.m-country-switcher__label {
  font-weight: 700;
}
.m-country-switcher__chevron {
  width: 16px;
  height: 16px;
  color: #8a8a8a;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.m-country-switcher.is-open .m-country-switcher__chevron {
  transform: rotate(180deg);
}
.m-country-switcher__menu {
  list-style: none;
  margin: 0;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: max-height 0.18s ease, opacity 0.18s ease, transform 0.18s ease,
    visibility 0.18s ease, margin-top 0.18s ease, padding 0.18s ease,
    border-color 0.18s ease;
}
.m-country-switcher.is-open .m-country-switcher__menu {
  max-height: 240px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin-top: 8px;
  padding: 6px;
  border-color: #ececec;
}
.m-country-switcher__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #1a1a1a;
}
.m-country-switcher__option:hover {
  background: #f5f5f5;
}
.m-country-switcher__option.is-selected {
  font-weight: 600;
}
@media (max-width: 991px) {
  .m-country-switcher {
    display: block;
  }
}

[dir="rtl"] .country-switcher__menu {
  left: auto;
  right: 0;
}
[dir="rtl"] .country-switcher__toggle {
  border-radius: 0 999px 999px 0;
  flex-direction: row-reverse;
}
[dir="rtl"] .lang-toggle {
  border-left: 0;
  border-right: 1px solid #e3e3e3;
  border-radius: 999px 0 0 999px;
  flex-direction: row-reverse;
}
[dir="rtl"] .m-country-switcher__label {
  padding-top: 5px;
}
[dir="rtl"] .m-country-switcher__option > span {
  padding-top: 5px;
}
[dir="rtl"] .country-switcher__option > span {
  padding-top: 5px;
}
