.translate-wrap {
  position: relative;
  width: fit-content;
  order: 99;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--pantone4625c50);
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s;
}

.lang-btn.active {
  color: var(--pantone172c);
}

.lang-btn:hover {
  color: var(--pantone172c);
}

.lang-divider {
  color: var(--pantone4625c50);
  font-size: 15px;
}

.language-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(42, 32, 24, 0.16);
  border-radius: 18px;
  background: #fff;
  color: #25005d;
  font: 600 15px/1 "Outfit", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(42, 32, 24, 0.08);
}

.language-current {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.language-flag {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 20px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(42, 32, 24, 0.12);
}

.flag-image {
  width: 28px;
  height: 20px;
  object-fit: cover;
}

.language-name {
  white-space: nowrap;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 100;
  width: 140px;
  padding: 10px;
  border: 1px solid rgba(42, 32, 24, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(42, 32, 24, 0.18);
}

.language-options {
  display: grid;
  max-height: 300px;
  overflow-y: auto;
}

.language-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4F2C1D;
  font: 600 15px/1.2 "Outfit", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus {
  background: rgba(0, 156, 166, 0.1);
  outline: none;
}

.language-option.selected {
  background: rgba(107, 0, 185, 0.1);
  color: #25005d;
}

.translation-status {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  color: #009ca6;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.translate-wrap.is-loading .language-trigger {
  opacity: 0.72;
  pointer-events: none;
}
