.gh-language {
  position: relative;
  z-index: 120;
}

.gh-language-toggle {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: currentColor;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.gh-language-current-flag {
  display: inline-flex;
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
  align-items: center;
  overflow: hidden;
  place-items: center;
  line-height: 1;
}

.gh-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 28px));
  max-height: 420px;
  padding: 10px;
  border: 1px solid rgba(70, 42, 25, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(35, 19, 10, 0.18);
  color: #1c1b1a;
  opacity: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  visibility: hidden;
}

.gh-home .gh-language-menu {
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 28px));
  max-height: 420px;
  padding: 10px;
  border: 1px solid rgba(70, 42, 25, 0.12);
  border-radius: 10px;
  color: #1c1b1a;
  background: rgba(255, 255, 255, 0.98);
}

.gh-language.is-open .gh-language-menu {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.gh-home .gh-language.is-open .gh-language-menu {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.gh-language-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.98);
}

.gh-language-search {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #eadbd0;
  border-radius: 8px;
  outline: none;
  color: #302b27;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.gh-language-search:focus {
  border-color: #f36b21;
  box-shadow: 0 0 0 3px rgba(243, 107, 33, 0.12);
}

.gh-language-list {
  display: grid;
  gap: 2px;
  overflow: auto;
  overscroll-behavior: contain;
}

.gh-language-option {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  color: #302b27;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gh-language-option[hidden] {
  display: none !important;
}

.gh-language-option:hover,
.gh-language-option.is-active {
  color: #cf4810;
  background: #fff1e8;
}

.gh-language-flag {
  display: inline-flex;
  width: 24px;
  height: 16px;
  align-items: center;
  overflow: hidden;
  line-height: 1;
}

.gh-language-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(48, 43, 39, 0.1);
}

.gh-language-country {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-language-name {
  color: #7a726c;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.skiptranslate,
#google_translate_element {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body {
  top: 0 !important;
}

@media (max-width: 760px) {
  .gh-language-menu {
    right: -8px;
    width: min(330px, calc(100vw - 20px));
    max-height: 360px;
  }

  .gh-language-current-label {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
