.h2a-translate-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  font-size: 14px;
  line-height: 1;
  position: relative;
  z-index: 99999;
}
.h2a-translate-icon { font-size: 17px; }
.h2a-translate-select {
  min-width: 125px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #222;
  padding: 0 24px 0 3px;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
}
.h2a-translate-reset {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  line-height: 1;
}
.h2a-translate-reset:hover { background: rgba(0,0,0,.12); }
.h2a-translate-floating {
  position: fixed;
  top: var(--h2a-translate-offset, 120px);
  z-index: 999999;
}
.h2a-translate-floating-right { right: 15px; }
.h2a-translate-floating-left { left: 15px; }
.h2a-translate-body-top {
  display: flex;
  justify-content: flex-end;
  padding: 8px 15px;
  position: relative;
  z-index: 99999;
}
.h2a-translate-google-host {
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.h2a-translate-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000000;
  max-width: calc(100% - 30px);
  padding: 10px 15px;
  border-radius: 8px;
  background: rgba(20,20,20,.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 5px 20px rgba(0,0,0,.25);
}
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
@media (max-width: 767px) {
  .h2a-translate-floating { top: auto; bottom: 18px; }
  .h2a-translate-floating-right { right: 15px; }
  .h2a-translate-floating-left { left: 15px; }
  .h2a-translate-select { min-width: 110px; max-width: 150px; }
}

/* Hỗ trợ tiếng Ả Rập: nội dung RTL nhưng giữ header và bộ chọn ổn định. */
html.h2a-translate-rtl body { direction: rtl; text-align: right; }
html.h2a-translate-rtl header,
html.h2a-translate-rtl #Header,
html.h2a-translate-rtl #Top_bar,
html.h2a-translate-rtl .site-header,
html.h2a-translate-rtl .h2a-translate-switcher,
html.h2a-translate-rtl .h2a-translate-notice { direction: ltr; }
html.h2a-translate-rtl .h2a-translate-select { text-align: left; }
