/**
 * Bearwood Google Translate – Styles
 * Variants: nav (desktop menu bar), mobile (drawer), footer
 */

/* ── Base Switcher ─────────────────────────────────────────── */

.bwgt-switcher {
  position: relative;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  z-index: 9999;
}

/* Prevent Google Translate from translating our UI */
.bwgt-switcher,
.bwgt-switcher * {
  translate: no;
}

/* Toggle button */
.bwgt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.bwgt-toggle:hover {
  opacity: 0.85;
}

.bwgt-arrow {
  font-size: 11px;
  margin-left: 2px;
}

/* Dropdown */
.bwgt-dropdown {
  display: none;
  position: absolute;
  left: 0;
  min-width: 170px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 10000;
}

.bwgt-dropdown.bwgt-open {
  display: block;
}

/* Dropdown option */
.bwgt-lang-option {
  padding: 10px 16px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  transition: background 0.15s;
  white-space: nowrap;
}

.bwgt-lang-option:hover {
  background: #f0f4f8;
}

.bwgt-lang-option.bwgt-active {
  background: #e8f0fe;
  font-weight: 600;
  color: #005781;
}


/* ── NAV BAR variant ───────────────────────────────────────── */

/* The <li> wrapper in the nav menu */
li.menu-item-bwgt-lang {
  position: relative;
  display: flex;
  align-items: center;
}

/* White text on blue nav background */
.bwgt-nav .bwgt-toggle,
li.menu-item-bwgt-lang .bwgt-toggle {
  color: #fff !important;
  padding: 8px 14px;
  font-size: 14px;
}

.bwgt-nav .bwgt-arrow,
li.menu-item-bwgt-lang .bwgt-arrow {
  color: #fff !important;
}

/* Dropdown opens below nav */
.bwgt-nav .bwgt-dropdown {
  top: calc(100% + 4px);
  right: 0;
  left: auto;
}


/* ── MOBILE variant ────────────────────────────────────────── */

.bwgt-mobile {
  width: 100%;
  padding: 10px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bwgt-mobile .bwgt-toggle {
  color: #333;
  background: #f5f5f5;
  border-radius: 6px;
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 15px;
}

.bwgt-mobile .bwgt-dropdown {
  position: relative;
  top: 4px;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* ── FOOTER variant ────────────────────────────────────────── */

.bwgt-footer {
  display: inline-flex;
  position: relative;
  padding: 0;
  margin: 8px 0;
}

.bwgt-footer .bwgt-toggle {
  color: rgba(255, 255, 255, 0.75) !important;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
}

.bwgt-footer .bwgt-toggle:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.bwgt-footer .bwgt-arrow {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 9px;
}

/* Footer dropdown opens UPWARD */
.bwgt-footer .bwgt-dropdown {
  bottom: calc(100% + 6px);
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
}

.bwgt-footer .bwgt-lang-option {
  padding: 7px 14px;
  font-size: 13px;
}

/* Center the footer switcher in its parent */
.bwgt-footer-wrap {
  text-align: center;
  padding: 6px 0;
}


/* ── Responsive ────────────────────────────────────────────── */

/* Hide desktop nav switcher on mobile (mobile drawer takes over) */
@media (max-width: 991px) {
  li.menu-item-bwgt-lang {
    display: none !important;
  }
}

/* Hide mobile switcher on desktop */
@media (min-width: 992px) {
  .bwgt-mobile {
    display: none !important;
  }
}


/* ── Override Google Translate artifacts ────────────────────── */

/* The GT bar that pushes body down */
body {
  top: 0 !important;
}

.goog-te-banner-frame {
  display: none !important;
}

/* GT tooltip */
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

/* Hide the default GT widget completely */
#google_translate_element {
  display: none !important;
}

.skiptranslate {
  display: none !important;
}

/* Sometimes GT wraps content in a font tag with altered styles */
font[style*="background-color"] > font > a.goog-logo-link {
  display: none !important;
}
