/* Oculta a barra superior padrão do Google Translate */
.goog-te-banner-frame,
.skiptranslate iframe.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

#google_translate_element {
  display: none !important;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  margin: 0;
}

/* Seletor flutuante de idioma */
.tan-seletor-idioma {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tan-botao-idioma {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tan-botao-idioma:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.tan-lista-idiomas {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 180px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.tan-item-idioma {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #171717;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.tan-item-idioma:hover {
  background: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
  .tan-botao-idioma,
  .tan-lista-idiomas {
    background: #171717;
    color: #fafafa;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .tan-item-idioma {
    color: #fafafa;
  }

  .tan-item-idioma:hover {
    background: #262626;
  }
}
