/* =========================================
   SAVLIFE — LANGUAGE SWITCHER STYLES
   css/translate.css
========================================= */

/* Hide Google's default UI completely — we use our own button */
#google_translate_element {
  position: absolute;
  top: -9999px;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
body > .skiptranslate {
  display: none !important;
}
body {
  top: 0 !important;
}
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* CUSTOM LANGUAGE SWITCHER BUTTON */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11,124,255,0.08);
  border: 1px solid rgba(11,124,255,0.2);
  color: #0b7cff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}
.lang-toggle-btn:hover {
  background: rgba(11,124,255,0.15);
}
.lang-toggle-btn i.fa-chevron-down {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.lang-switcher.open .lang-toggle-btn i.fa-chevron-down,
.lang-dropdown.open ~ .lang-toggle-btn i.fa-chevron-down {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.16);
  border: 1px solid #eef2f7;
  min-width: 170px;
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 999;
}
.lang-dropdown.open {
  display: flex;
}
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  font-family: inherit;
}
.lang-dropdown button:hover {
  background: #f0f7ff;
  color: #0b7cff;
}
.lang-dropdown .lang-flag {
  font-size: 16px;
}

/* MOBILE MENU LANGUAGE SWITCHER VARIANT */
.mobile-lang-switcher {
  margin: 16px 0;
  padding: 12px;
  background: #f8fbff;
  border-radius: 10px;
}
.mobile-lang-switcher .mobile-lang-title {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-lang-switcher .mobile-lang-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-lang-switcher button {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}
.mobile-lang-switcher button:hover,
.mobile-lang-switcher button.active {
  border-color: #0b7cff;
  color: #0b7cff;
  background: rgba(11,124,255,0.06);
}

@media (max-width: 992px) {
  .lang-switcher.desktop-only {
    display: none;
  }
}
