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

.gg-lang-switcher.gg-lang-mounted-mobile {
  display: block;
  margin-left: 0;
  margin-top: 14px;
}

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

.gg-lang-current:hover,
.gg-lang-switcher.is-open .gg-lang-current {
  border-color: #f97316;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.14);
}

.gg-lang-flag,
.gg-lang-emoji {
  font-size: 18px;
  line-height: 1;
}

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

.gg-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  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: 12px;
  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-menu button:hover {
  background: #fff7ed;
  color: #ea580c;
}

.gg-lang-menu button.is-active {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 700;
}

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

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

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

.gg-lang-menu button:hover .gg-lang-country,
.gg-lang-menu button.is-active .gg-lang-country {
  color: #c2410c;
}

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

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

.gg-lang-hidden-source {
  display: none !important;
}

body.gg-lang-floating .gg-lang-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  margin-left: 0;
}

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

  .gg-lang-switcher:not(.gg-lang-mounted-mobile) {
    display: none;
  }

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

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

  .gg-lang-current {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  body.gg-lang-floating .gg-lang-switcher {
    top: auto;
    right: 16px;
    bottom: 16px;
    display: inline-block;
  }

  body.gg-lang-floating .gg-lang-menu {
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
    left: auto;
  }
}
