.gg-lang-switcher {
  position: relative;
  display: inline-block;
  margin-left: 16px;
  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;
}

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

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

.gg-lang-flag-img {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.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: 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: #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.42;
  cursor: not-allowed;
  pointer-events: none;
}

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

.gg-lang-main > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gg-lang-country {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

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

.gg-lang-switcher--mobile {
  display: none;
}

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

.awy-header-cta .gg-lang-switcher--desktop {
  margin-right: 14px;
}

@media (max-width: 768px) {
  .gg-lang-menu {
    max-height: 360px;
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  .gg-lang-switcher--desktop {
    display: none;
  }

  .gg-lang-switcher--mobile {
    display: block;
    width: min(100%, 280px);
    margin-left: 0;
    margin-top: 8px;
  }

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

  .gg-lang-switcher--mobile .gg-lang-menu {
    right: auto;
    left: 0;
    width: min(100vw - 40px, 280px);
  }

  .gg-lang-switcher--floating {
    top: auto;
    bottom: 72px;
    right: 16px;
  }
}
