/* ============================================================
   translate.css — Language switcher widget (bottom-left fixed)
   ============================================================ */

/* ── Suppress Google Translate UI completely ─────────────── */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-ftab-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-menu-value:hover,
.goog-te-gadget-icon { display: none !important; }

body { top: 0 !important; }
.skiptranslate { display: none !important; }
iframe.goog-te-banner-frame { display: none !important; }

/* ── Trigger button — fixed bottom-left ──────────────────── */
.lang-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 100px;
  padding: 8px 14px 8px 10px;
  cursor: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transition: box-shadow .25s, border-color .25s;
  /* No transform, no isolation — keeps fixed positioning intact */
}
.lang-trigger:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 28px rgba(232,98,10,.2);
}

/* Flag inside trigger */
.lang-trigger__flag {
  display: block;
  width: 22px !important;
  height: 15px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.lang-trigger__code {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  line-height: 1;
}

.lang-trigger__chevron {
  width: 10px;
  height: 10px;
  color: var(--ink-45);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.lang-trigger.open .lang-trigger__chevron { transform: rotate(180deg); }

/* ── Dropdown — fixed, opens upward ─────────────────────── */
.lang-dropdown {
  position: fixed;
  bottom: 68px;
  left: 24px;
  z-index: 8999;
  background: #fff;
  border: 1px solid rgba(17,17,17,.1);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  /* No isolation — isolation breaks position:fixed on mobile */
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Dropdown rows */
.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: none;
  transition: background .15s;
  border-bottom: 1px solid rgba(17,17,17,.05);
}
.lang-dropdown__item:last-child { border-bottom: none; }
.lang-dropdown__item:hover { background: var(--orange-dim); }
.lang-dropdown__item.active { background: var(--orange-dim); }

/* Flag inside dropdown rows */
.lang-dropdown__flag {
  display: block;
  width: 24px !important;
  height: 17px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 17px !important;
  max-height: 17px !important;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.lang-dropdown__name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.lang-dropdown__item.active .lang-dropdown__name {
  font-weight: 700;
  color: var(--orange);
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lang-trigger {
    bottom: 14px;
    left: 14px;
    padding: 7px 12px 7px 9px;
  }
  .lang-dropdown {
    bottom: 58px;
    left: 14px;
    right: 14px;
    min-width: unset;
    width: calc(100vw - 28px);
    max-height: 60vh;
  }
}

@media (max-width: 400px) {
  .lang-trigger {
    bottom: 10px;
    left: 10px;
  }
  .lang-dropdown {
    bottom: 54px;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}
