/* Internationalisation / language switcher */
.i18n-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(140, 140, 140, .45);
  background: rgba(140, 140, 140, .08);
  color: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  flex: none;
  transition: border-color .2s, background .2s;
}

.i18n-switch:hover {
  border-color: rgba(140, 140, 140, .8);
  background: rgba(140, 140, 140, .14);
}

.i18n-globe {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .8;
}

.i18n-globe svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i18n-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  max-width: 150px;
  padding: 0 16px 0 2px;
  border: 0;
  outline: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 10px 10px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.i18n-select:focus-visible {
  outline: 2px solid rgba(140, 140, 140, .7);
  outline-offset: 2px;
  border-radius: 6px;
}

.i18n-select option {
  color: #111;
  background: #fff;
}

/* Hide the raw Google Translate widget */
.i18n-google-hidden,
#google_translate_element.i18n-google-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  top: 0;
  left: 0;
}

/* Neutralise the Google Translate banner / tooltip chrome */
body > .skiptranslate,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

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

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

@media (max-width: 640px) {
  .i18n-switch {
    height: 34px;
    padding: 0 6px;
  }
  .i18n-select {
    max-width: 96px;
    font-size: 12px;
  }
}
