
/* Ensure links remain clickable even if overlays exist */
a { pointer-events: auto; }

/* Make any element with link-like attribute behave clickable */
[data-href], [data-url], [data-link], [role="link"], [href]:not(a){
  cursor: pointer;
  pointer-events: auto;
}

/* Reset the container (remove gradient box/border from .lang-toggle) */
.lang-toggle#google_translate_element{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Keep widget compact */
#google_translate_element{
  display:inline-block;
  width: 350px; /* desktop default matches search width */
  /* выравниваем по правому краю контейнера так же, как поиск */
  max-width: calc(100% - 62px);
  margin-right: 62px; /* ещё на 20px левее */
}

/* На узких экранах переводчик и поиск должны начинаться с одной X-координаты */
@media (max-width: 780px){
  #google_translate_element{
    margin-left: 12px;              /* как у поиска */
    margin-right: 12px;             /* одинаковый зазор справа */
    max-width: calc(100% - 24px);   /* учесть оба отступа */
  }
}
#google_translate_element .goog-te-gadget{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: inherit !important;
  font-size: 0 !important; /* hide stray text nodes */
  line-height: 0 !important;
}

#google_translate_element select.goog-te-combo{
  font-family: inherit;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  padding: 6px 8px;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Hide brand / powered-by captions entirely */
#google_translate_element .goog-te-gadget > span,
#google_translate_element .goog-te-gadget .goog-logo-link,
#google_translate_element .goog-te-gadget .goog-logo-subtitle,
#google_translate_element .goog-te-gadget a[href*="translate.google.com"],
#google_translate_element .goog-te-gadget span[style*="white-space:nowrap"],
#google_translate_element .goog-te-gadget img[src*="googlelogo"]{
  display: none !important;
}

/* Hide Google top banner injected on translate (iframe with skiptranslate) */
body > .skiptranslate,
body > .goog-te-banner-frame,
body > iframe.goog-te-banner-frame{
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}
body{ top: 0 !important; position: static !important; }

/* Remove Google hover highlight overlay */
body [class^="VIpgJd-yAWNEb"],
body [class*=" VIpgJd-yAWNEb"],
body [class^="VIpIIe"],
body [class*=" VIpIIe"]{
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}
body [class^="VIpgJd-yAWNEb"]::before,
body [class^="VIpgJd-yAWNEb"]::after,
body [class*=" VIpgJd-yAWNEb"]::before,
body [class*=" VIpgJd-yAWNEb"]::after{
  display: none !important;
}

/* Ensure brand stays in Techovier even inside Google font wrappers */
.brand-inline,
.brand-inline *,
[class^="VIpgJd-"] .brand-inline,
.brand-inline [class^="VIpgJd-"]{
  font-family:'Techovier','Montserrat',Inter,system-ui,sans-serif !important;
  font-weight:900 !important;
  letter-spacing:.04em !important;
}
