/* FREELANCE 001 v1.1.80 - refine public language selector: remove code badge and free more room for full language labels */
body.public-auth-page .public-language-switcher__trigger {
  grid-template-columns: 36px minmax(0, 1fr) 12px !important;
  gap: 12px;
}

/* Remove the separate language code badge on the trigger so the language name can occupy the space. */
body.public-auth-page .public-language-switcher__code {
  display: none !important;
}

/* Keep the flag and allow the language name to expand more naturally. */
body.public-auth-page .public-language-switcher__identity {
  gap: 12px;
}

body.public-auth-page .public-language-switcher__label {
  max-width: none !important;
  white-space: nowrap;
}

/* Replace the globe-in-square with a cleaner round icon shell. */
body.public-auth-page .public-language-switcher__globe {
  width: 32px;
  height: 32px;
  border: 1px solid #bed1dc;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.public-auth-page .public-language-switcher__panel {
  width: min(336px, var(--lang-panel-available-width, calc(100vw - 24px)));
  max-width: var(--lang-panel-available-width, calc(100vw - 24px));
}

@media (max-width: 767px) {
  body.public-auth-page .public-language-switcher__trigger {
    grid-template-columns: 34px minmax(0, 1fr) 10px !important;
    gap: 10px;
  }

  body.public-auth-page .public-language-switcher__globe {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 420px) {
  body.public-auth-page .public-language-switcher__trigger {
    grid-template-columns: 30px minmax(0, 1fr) 10px !important;
    gap: 8px;
    padding: 7px 10px;
  }

  body.public-auth-page .public-language-switcher__globe {
    width: 28px;
    height: 28px;
  }
}
