:root {
  --mt-language-ink: #16322b;
  --mt-language-muted: #66766f;
  --mt-language-accent: #087f5b;
  --mt-language-surface: #ffffff;
  --mt-language-border: rgba(22, 50, 43, 0.14);
  --mt-language-shadow: 0 18px 48px rgba(15, 36, 30, 0.18);
}

.mt-language-switcher {
  position: relative;
  z-index: 99990;
  display: inline-flex;
  color: var(--mt-language-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
}

.mt-language-switcher--floating {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}

.mt-language-switcher__trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--mt-language-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 22px rgba(15, 36, 30, 0.12);
  color: var(--mt-language-ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mt-language-switcher__trigger:hover {
  border-color: rgba(8, 127, 91, 0.42);
  box-shadow: 0 9px 28px rgba(15, 36, 30, 0.17);
  transform: translateY(-1px);
}

.mt-language-switcher__trigger:focus-visible,
.mt-language-switcher__option:focus-visible {
  outline: 3px solid rgba(8, 127, 91, 0.28);
  outline-offset: 2px;
}

.mt-language-switcher__globe {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mt-language-switcher__chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.mt-language-switcher.is-open .mt-language-switcher__chevron {
  transform: rotate(180deg);
}

.mt-language-switcher__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(250px, calc(100vw - 28px));
  padding: 9px;
  border: 1px solid var(--mt-language-border);
  border-radius: 18px;
  background: var(--mt-language-surface);
  box-shadow: var(--mt-language-shadow);
}

.mt-language-switcher__menu[hidden] {
  display: none !important;
}

.mt-language-switcher__title {
  margin: 0;
  padding: 7px 9px 8px;
  color: var(--mt-language-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mt-language-switcher__option {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--mt-language-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mt-language-switcher__option:hover {
  background: #f0f7f4;
}

.mt-language-switcher__option.is-active {
  background: #e7f5ef;
  color: #075c43;
  font-weight: 700;
}

.mt-language-switcher__code {
  color: var(--mt-language-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mt-language-switcher__check {
  justify-self: end;
  color: var(--mt-language-accent);
  opacity: 0;
}

.mt-language-switcher__option.is-active .mt-language-switcher__check {
  opacity: 1;
}

.mt-language-switcher__note {
  margin: 8px 8px 4px;
  color: var(--mt-language-muted);
  font-size: 11px;
  line-height: 1.4;
}

.mt-language-switcher__google {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.mt-language-switcher__noscript {
  margin: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff4e6;
  color: #7a3e00;
  font-size: 13px;
}

body > .skiptranslate,
body > .goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 640px) {
  .mt-language-switcher--floating {
    top: max(9px, env(safe-area-inset-top));
    right: max(9px, env(safe-area-inset-right));
  }

  .mt-language-switcher__trigger {
    min-width: 58px;
    min-height: 42px;
    padding: 8px 10px;
  }

  .mt-language-switcher__globe {
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-language-switcher *,
  .mt-language-switcher *::before,
  .mt-language-switcher *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 350px) {
.mt-language-switcher button svg.mt-language-switcher__globe {
    display: none;
}
}
