.ipLangSwitch {
  --ip-lang-border: rgba(255, 255, 255, 0.16);
  --ip-lang-panel: #111219;
  position: relative;
  z-index: 80;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: inherit;
}

.ipLangSwitch__current {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 76px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--ip-lang-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: #f8f9fc;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ipLangSwitch__current:hover,
.ipLangSwitch__current:focus-visible,
.ipLangSwitch.is-open .ipLangSwitch__current {
  border-color: rgba(255, 45, 101, 0.72);
  background: rgba(255, 45, 101, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 45, 101, 0.11);
  outline: none;
}

.ipLangSwitch__caret {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.ipLangSwitch.is-open .ipLangSwitch__caret {
  transform: rotate(180deg);
}

.ipLangSwitch__menu {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 108px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: var(--ip-lang-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 45, 101, 0.04);
}

.ipLangSwitch__menu[hidden] {
  display: none;
}

.ipLangSwitch__item {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #eef0f5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 150ms ease, background-color 150ms ease;
}

.ipLangSwitch__item:hover,
.ipLangSwitch__item:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  outline: none;
}

.ipLangSwitch__item.is-current {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255, 45, 101, 0.2), rgba(188, 31, 224, 0.12));
}

.ipLangSwitch__item.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: #ff2d65;
}

.ipLangSwitch__flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
  flex: 0 0 auto;
}

.ipLangSwitch__flag--ua {
  background: linear-gradient(to bottom, #1f78d1 0 50%, #ffd430 50% 100%);
}

.ipLangSwitch__flag--pl {
  background: linear-gradient(to bottom, #ffffff 0 50%, #dc143c 50% 100%);
}

.ipLangSwitch__flag--en {
  width: 20px;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(to bottom, transparent 40%, #c8102e 40% 60%, transparent 60%),
    linear-gradient(to right, transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(33deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(-33deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(to bottom, transparent 32%, #ffffff 32% 68%, transparent 68%),
    linear-gradient(to right, transparent 35%, #ffffff 35% 65%, transparent 65%),
    linear-gradient(33deg, transparent 41%, #ffffff 41% 59%, transparent 59%),
    linear-gradient(-33deg, transparent 41%, #ffffff 41% 59%, transparent 59%),
    #012169;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.ipLangSwitch__flag--en::before {
  content: none;
  display: none;
}

.ipLangSwitch__item .ipLangSwitch__label {
  display: none !important;
}

.ipLangSwitch__item .ipLangSwitch__short,
.ipLangSwitch__item .ipLangSwitch__code {
  display: block;
  grid-column: 2;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.ipLangSwitch--mobile .ipLangSwitch__current {
  min-width: 76px;
  width: auto;
  padding: 0 10px;
}

.ipLangSwitch--mobile .ipLangSwitch__code,
.ipLangSwitch--mobile .ipLangSwitch__caret {
  display: block;
}

.ipLangSwitch--mobile .ipLangSwitch__menu {
  right: 0;
  width: 108px;
}

.ipLangSwitch--mobile .ipLangSwitch__item .ipLangSwitch__code {
  display: block;
}

@media (max-width: 420px) {
  .ipLangSwitch--mobile .ipLangSwitch__menu {
    position: fixed;
    top: 68px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipLangSwitch__current,
  .ipLangSwitch__caret,
  .ipLangSwitch__item {
    transition: none;
  }
}
