/* ============================================================
   BrunerTrust — Google Translate Widget
   File: assets/css/translate.css
============================================================ */

/* ── Suppress ALL Google Translate UI injections ── */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
  visibility: hidden !important;
}


/* Kill the iframe banner Google injects at the top */
.skiptranslate iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

html body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Target the specific Google injected frame wrapper */
#goog-gt- ,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-SmfZ-OWB6Me {
  display: none !important;
}

/* Hide the default Google select widget — we drive it ourselves */
#google_translate_element .goog-te-gadget {
  font-size: 0 !important;
}

#google_translate_element .goog-te-gadget select {
  display: none !important;
}

/* ── Wrapper ── */
.bt-translate-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  z-index: 9999;
}

/* ── Trigger Button ── */
.bt-translate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(36, 107, 253, 0.5);
  border-radius: 30px;
  color: #1f2b38;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  outline: none;
  font-family: inherit;
  letter-spacing: 0.4px;
}

.bt-translate-btn:hover {
  background: rgba(36, 107, 253, 0.08);
  border-color: #246bfd;
  color: #246bfd;
}

.bt-translate-btn .fa-globe {
  font-size: 14px;
  opacity: 0.85;
}

.bt-translate-btn .bt-chevron {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.bt-translate-btn.open .bt-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown Panel ── */
.bt-translate-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  min-width: 190px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 9999;
  padding: 6px 0;
  animation: btSlideDown 0.2s ease;
}

.bt-translate-dropdown.open {
  display: block;
}

@keyframes btSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling */
.bt-translate-dropdown::-webkit-scrollbar {
  width: 4px;
}
.bt-translate-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.bt-translate-dropdown::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 4px;
}

/* ── Language List Items ── */
.bt-lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bt-lang-list li {
  display: block;
  margin: 0;
  padding: 0;
}

.bt-lang-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #1f2b38;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}

.bt-lang-list li:last-child a {
  border-bottom: none;
}

.bt-lang-list li a:hover,
.bt-lang-list li a.active {
  background: #f0f5ff;
  color: #246bfd;
}

.bt-lang-list li a .bt-flag {
  font-size: 18px;
  line-height: 1;
  min-width: 22px;
  text-align: center;
}

.bt-lang-list li a .bt-lang-name {
  flex: 1;
}

.bt-lang-list li a .bt-lang-native {
  font-size: 11px;
  color: #999999;
  font-weight: 400;
}

/* ── Mobile: widget always visible outside the collapsible menu ── */
@media (max-width: 991px) {
  .bt-translate-wrap {
    margin-left: 8px;
    margin-right: 4px;
  }

  .bt-translate-btn {
    padding: 5px 10px;
    font-size: 12px;
    border-color: rgba(255, 255, 255, 0.3);
  }

  .bt-translate-btn span {
    display: none;
  }

  .bt-translate-dropdown {
    right: 0;
    left: auto;
    min-width: 175px;
  }
}

@media (max-width: 480px) {
  .bt-translate-btn .fa-globe {
    font-size: 16px;
  }
}

/* ── Align translate widget beside the Start Investing button ── */
.attr-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.bt-translate-wrap {
  margin-left: 0;
}
