/* =========================================================
   Google Translate widget — restyled for the Lindy navbar
   ========================================================= */

.lang-switcher {
  display: flex;
  align-items: center;
  margin-right: 6px;
}

.lang-switcher .lni-world {
  font-size: 16px;
  color: #585978;
  margin-right: 6px;
}

#google_translate_element,
#google_translate_element .skiptranslate {
  display: inline-block;
}

/* Hide Google's own branding/logo inside the gadget */
#google_translate_element .goog-logo-link,
#google_translate_element .goog-te-gadget > span {
  display: none !important;
}

/* Hide the bare "Powered by" text node next to the dropdown */
#google_translate_element .goog-te-gadget {
  font-size: 0;
  color: transparent;
  line-height: 0;
}

/* The language dropdown, styled as a pill that matches the nav */
select.goog-te-combo {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #e4e6f0;
  background: #f5f7fb url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23585978' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
  border-radius: 20px;
  padding: 5px 28px 5px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #585978;
  line-height: 1.5;
  cursor: pointer;
  outline: none;
  max-width: 150px;
  text-overflow: ellipsis;
  transition: border-color .25s ease, background-color .25s ease;
}

select.goog-te-combo:hover {
  border-color: #2f80ed;
  color: #2f80ed;
}

select.goog-te-combo:focus {
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .15);
}

/* Keep the navbar tidy on small screens */
@media (max-width: 991px) {
  .lang-switcher {
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  select.goog-te-combo {
    max-width: 112px;
    font-size: 12px;
    padding: 4px 26px 4px 12px;
  }
}

/* ---- Suppress Google's injected chrome ---- */

/* Top translation banner */
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate > iframe,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

/* Keep page in place when Google shifts it for the banner */
body {
  top: 0 !important;
}

/* Hover tooltip and highlight boxes */
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-yAWNEb-L7lbkb {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
