.gg-lang-switcher {
  position: relative;
  display: inline-block;
  margin-left: 0;
  font-family: inherit;
  z-index: 9999;
}

.gg-lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gg-lang-current:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.gg-lang-current:focus-visible,
.gg-lang-menu button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.gg-lang-flag,
.gg-lang-emoji {
  width: 22px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  line-height: 1;
}

.gg-lang-flag-img {
  width: 22px;
  height: 16px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.1);
}

.gg-lang-arrow {
  font-size: 12px;
  color: #6b7280;
}

.gg-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.gg-lang-switcher:hover .gg-lang-menu,
.gg-lang-switcher.is-open .gg-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gg-lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gg-lang-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gg-lang-main strong,
.gg-lang-country {
  display: block;
}

.gg-lang-main strong {
  font-size: 14px;
  line-height: 1.2;
}

.gg-lang-country {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.2;
}

.gg-lang-menu button:hover {
  background: #f3f6ff;
  color: #2563eb;
}

.gg-lang-menu button.is-active {
  background: #eef4ff;
  color: #2563eb;
  font-weight: 600;
}

.gg-lang-menu button.is-disabled,
.gg-lang-menu button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.gg-lang-menu button.is-disabled:hover,
.gg-lang-menu button:disabled:hover {
  background: transparent;
  color: #111827;
}

.gg-lang-mobile-slot {
  padding: 8px 12px 0;
}

.gg-lang-mobile-inline-slot {
  display: none;
}

.gg-lang-mobile-slot .gg-lang-switcher,
.gg-lang-mobile-inline-slot .gg-lang-switcher,
.gg-lang-mobile-slot .gg-lang-current {
  width: 100%;
}

.gg-lang-mobile-slot .gg-lang-current,
.gg-lang-mobile-inline-slot .gg-lang-current {
  justify-content: center;
}

.gg-lang-mobile-slot .gg-lang-menu {
  left: 0;
  right: auto;
  width: 100%;
}

.gg-lang-mobile-inline-slot .gg-lang-menu {
  left: auto;
  right: 0;
}

html[dir="rtl"] .gg-lang-menu {
  text-align: right;
}

@media (min-width: 1024px) {
  .gg-lang-switcher--nav {
    margin-right: 2px;
  }
}

@media (max-width: 768px) {
  .gg-lang-switcher {
    margin-left: 0;
    margin-top: 12px;
  }

  .gg-lang-menu {
    right: auto;
    left: 0;
    min-width: 220px;
    max-height: 360px;
  }

  .gg-lang-current {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .gg-lang-mobile-inline-slot {
    display: block;
    margin-left: auto;
    margin-right: 10px;
  }

  .gg-lang-mobile-inline-slot .gg-lang-switcher {
    margin-top: 0;
  }

  .gg-lang-mobile-inline-slot .gg-lang-current {
    width: auto;
    min-width: 112px;
    height: 38px;
    padding: 0 12px;
  }
}
