/* OGC v19 — compact bottom-left GTranslate selector. The top-bar trigger is removed. */
.ogc-translate-container {
  position: fixed !important;
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;
  top: auto !important;
  z-index: 99999 !important;
  display: block;
  width: auto;
  max-width: calc(100vw - 36px);
  overflow: visible !important;
  font-family: inherit;
}
.ogc-translate-container.ogc-translate-hidden { display: none !important; }
.ogc-translate-container .gtranslate_wrapper {
  display: block;
  width: max-content;
  max-width: calc(100vw - 36px);
  min-width: 0;
  overflow: visible !important;
  font-family: inherit;
}
/* GTranslate's generated floating wrapper can be positioned outside its source node. */
#gt_float_wrapper {
  position: fixed !important;
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;
  top: auto !important;
  z-index: 99999 !important;
  width: max-content !important;
  max-width: calc(100vw - 36px) !important;
}
#gt_float_wrapper .gt_float_switcher,
.ogc-translate-container .gt_float_switcher {
  width: auto !important;
  min-width: 88px !important;
  max-width: 118px !important;
  margin: 0 !important;
  border: 1px solid #cfe5dc !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #173f35 !important;
  box-shadow: 0 5px 18px rgba(11, 46, 54, .16) !important;
  overflow: visible !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}
#gt_float_wrapper .gt_float_switcher .gt-selected,
.ogc-translate-container .gt_float_switcher .gt-selected {
  border-radius: 10px !important;
  background: #fff !important;
}
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang,
.ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #173f35 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
#gt_float_wrapper .gt_float_switcher img,
.ogc-translate-container .gt_float_switcher img {
  width: 21px !important;
  height: 14px !important;
  min-width: 21px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
}
#gt_float_wrapper .gt_float_switcher .gt_options,
.ogc-translate-container .gt_float_switcher .gt_options {
  min-width: 164px !important;
  max-height: min(58vh, 360px) !important;
  overflow-y: auto !important;
  border: 1px solid #d9e9e2 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(11, 46, 54, .16) !important;
}
#gt_float_wrapper .gt_float_switcher .gt_options a,
.ogc-translate-container .gt_float_switcher .gt_options a {
  padding: 7px 10px !important;
  color: #23483e !important;
  font-size: 13px !important;
  text-decoration: none !important;
}
#gt_float_wrapper .gt_float_switcher .gt_options a:hover,
.ogc-translate-container .gt_float_switcher .gt_options a:hover {
  background: #eff8f4 !important;
  color: #087a58 !important;
}
#ogc-translate-dismiss {
  position: fixed !important;
  left: 76px !important;
  right: auto !important;
  bottom: 61px !important;
  top: auto !important;
  z-index: 100001 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 23px !important;
  height: 23px !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #173f35 !important;
  color: #fff !important;
  font: 500 16px/1 Arial, sans-serif !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2) !important;
  transition: background .16s ease, transform .16s ease !important;
}
#ogc-translate-dismiss:hover {
  background: #c63b45 !important;
  transform: scale(1.06);
}
#ogc-translate-dismiss:focus-visible {
  outline: 3px solid rgba(59, 191, 147, .4) !important;
  outline-offset: 3px !important;
}
@media (max-width: 760px) {
  .ogc-translate-container, #gt_float_wrapper {
    left: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
  #ogc-translate-dismiss {
    left: 70px !important;
    bottom: 58px !important;
  }
  #gt_float_wrapper .gt_float_switcher,
  .ogc-translate-container .gt_float_switcher {
    min-width: 82px !important;
  }
}

/* OGC v20: compact flag-only trigger. Language names remain visible in the opened menu. */
#gt_float_wrapper,
.ogc-translate-container {
  width: 50px !important;
  max-width: 50px !important;
}
#gt_float_wrapper .gt_float_switcher,
.ogc-translate-container .gt_float_switcher {
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  border-radius: 10px !important;
}
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang,
.ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang {
  display: flex !important;
  width: 48px !important;
  min-width: 48px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 8px !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang > :not(img),
.ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang > :not(img),
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang .gt-lang-code,
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang .gt_float_switcher-arrow,
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang > span,
.ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang .gt-lang-code,
.ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang .gt_float_switcher-arrow,
.ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang > span {
  display: none !important;
}
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang img,
.ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang img {
  display: block !important;
  width: 27px !important;
  min-width: 27px !important;
  height: 18px !important;
  margin: 0 !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(16,43,56,.12) !important;
}
#ogc-translate-dismiss {
  left: 53px !important;
  bottom: 50px !important;
}
@media (max-width: 760px) {
  #gt_float_wrapper,
  .ogc-translate-container {
    width: 48px !important;
    max-width: 48px !important;
  }
  #gt_float_wrapper .gt_float_switcher,
  .ogc-translate-container .gt_float_switcher {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }
  #gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang,
  .ogc-translate-container .gt_float_switcher .gt-selected .gt-current-lang {
    width: 46px !important;
    min-width: 46px !important;
  }
  #ogc-translate-dismiss {
    left: 49px !important;
    bottom: 44px !important;
  }
}
