
/* Floating switcher container */
#gt-container.gt-floating-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: min(280px, calc(100vw - 40px));
  font-family: inherit;
  box-sizing: border-box;
}

/* Apply predictable sizing inside the switcher */
#gt-container.gt-floating-switcher,
#gt-container.gt-floating-switcher * {
  box-sizing: border-box;
}

/* Selected language button */
#gt-container .gt-selected-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  min-width: 82px;
  padding: 8px 12px;
  border: 1px solid #dddddd;
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

#gt-container .gt-selected-button:hover {
  background: #f7f7f7;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

#gt-container .gt-selected-button:focus-visible,
#gt-container .gt-flag:focus-visible {
  outline: 2px solid #2167d5;
  outline-offset: 3px;
}

/* Selected flag */
#gt-container .gt-selected-flag {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

/* Selected language code */
#gt-container .gt-selected-code {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Arrow */
#gt-container .gt-switcher-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(225deg);
  transition: transform 0.2s ease;
}

/* Arrow points down when the menu is open */
#gt-container .gt-selected-button[aria-expanded="true"]
.gt-switcher-arrow {
  transform: rotate(45deg);
}

/* Language options dropdown */
#gt-container .gt-language-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 200px;
  max-width: calc(100vw - 40px);
  max-height: min(60vh, 410px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  overscroll-behavior: contain;
}

/* The HTML hidden attribute must always hide the closed menu */
#gt-container .gt-language-options[hidden] {
  display: none !important;
}

/* Individual language option */
#gt-container .gt-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #222222;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.15s ease;
}

#gt-container .gt-flag:hover {
  background: #f1f3f5;
}

/* Language option flag */
#gt-container .gt-option-flag {
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/* Full language name */
#gt-container .gt-option-label {
  display: block;
  overflow-wrap: anywhere;
}

/* Hide Google's translation toolbar */
.skiptranslate iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 100% !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  border: none !important;
}

body {
  top: 0 !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #gt-container.gt-floating-switcher {
    bottom: 15px;
    left: 15px;
  }

  #gt-container .gt-language-options {
    width: min(240px, calc(100vw - 30px));
    max-height: 55vh;
  }
}

/* ---------- PREVIOUS CSS for the options in the menu ------------- 
#gt-container {
  max-width: 200px;
}

#gt-language-select {
  border-radius: 8px;
}

.skiptranslate iframe {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 100% !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    border: none !important;
}

body {
    top: 0px !important;
}


#gt-container.gt-flags {
  display: flex;
  gap: 10px;
  align-items: center;
}

#gt-container .gt-flag {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

#gt-container .gt-flag img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: block;
  border: 2px solid white;
}
*/

