.tx-lang {
  --tx-lang-text: #0f172a;
  --tx-lang-muted: #64748b;
  --tx-lang-line: #e2e8f0;
  --tx-lang-surface: #ffffff;
  --tx-lang-accent: #2563eb;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483000;
  direction: ltr;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--tx-lang-text);
  line-height: 1.4;
}

.tx-lang * { box-sizing: border-box; }

.tx-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  max-width: min(240px, calc(100vw - 32px));
  padding: 0 14px 0 12px;
  border: 1px solid var(--tx-lang-line);
  border-radius: 999px;
  background: var(--tx-lang-surface);
  color: var(--tx-lang-text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.tx-lang__btn:hover { border-color: #cbd5e1; }

.tx-lang__btn svg { flex: 0 0 auto; }

.tx-lang__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-lang__menu {
  position: absolute;
  left: 0;
  bottom: 52px;
  display: none;
  width: min(280px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 96px));
  flex-direction: column;
  overflow: hidden;
  background: var(--tx-lang-surface);
  border: 1px solid var(--tx-lang-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.tx-lang.is-open .tx-lang__menu { display: flex; }

.tx-lang__search {
  margin: 10px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--tx-lang-line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--tx-lang-text);
}

.tx-lang__search:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  border-color: var(--tx-lang-accent);
}

.tx-lang__list {
  list-style: none;
  margin: 0;
  padding: 0 6px 6px;
  overflow-y: auto;
}

.tx-lang__option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tx-lang-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.tx-lang__option:hover,
.tx-lang__option.is-active { background: #eff6ff; }

.tx-lang__empty {
  margin: 0;
  padding: 8px 12px 14px;
  color: var(--tx-lang-muted);
  font-size: 13px;
}

.tx-lang__credit {
  margin: 0;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--tx-lang-line);
  color: var(--tx-lang-muted);
  font-size: 11px;
}

.tx-lang__credit a { color: inherit; }

.tx-lang__engine {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip {
  display: none !important;
}

body { top: 0 !important; }

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
