.meu-tradutor {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
}

.meu-tradutor .globo-icon {
  cursor: pointer;
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.meu-tradutor .globo-icon:hover {
  transform: scale(1.1);
}

.meu-tradutor .idiomas {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  list-style: none;
  padding: 8px;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
  min-width: 120px;
}

.meu-tradutor .idiomas li {
  margin: 5px 0;
}

.meu-tradutor .idiomas li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.meu-tradutor .idiomas li a:hover {
  background-color: #f0f0f0;
}

.meu-tradutor .idiomas li a.selected {
  background-color: #007cba;
  color: white;
}

.meu-tradutor.show .idiomas {
  display: block;
}

/* Esconde TODOS os elementos indesejados do Google Translate */
.goog-te-banner-frame,
.goog-te-combo,
#google_translate_element2,
.goog-te-ftab,
.goog-te-balloon-frame,
.goog-te-menu-frame {
  display: none !important;
  visibility: hidden !important;
}

/* Remove completamente a barra superior do Google Translate */
body {
  top: 0 !important;
  position: static !important;
}

html {
  margin-top: 0 !important;
}

/* Força ocultação da frame/iframe do Google Translate */
iframe.goog-te-banner-frame,
iframe.goog-te-menu-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Esconde a barra de ferramentas que aparece durante a tradução */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
}

/* Classe específica para esconder a tabela da barra */
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

/* Esconde qualquer elemento com classes do Google Translate */
[class*="VIpgJd"],
[class*="goog-te"] {
  display: none !important;
}

/* Exceção apenas para o texto traduzido */
.translated-ltr,
.translated-rtl,
[class*="translated"] {
  display: block !important;
  visibility: visible !important;
}

/* Estilos para quando a página estiver sendo traduzida */
.translated-ltr {
  direction: ltr !important;
}

.translated-rtl {
  direction: rtl !important;
}
