/* Keep the language control independent of legacy form and navbar styles. */
form.pms-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  margin: 0;
  padding: 3px;
  border: 1px solid #dbe6ef;
  border-radius: 9px;
  background: #f1f5f9;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: normal;
}
form.pms-language-switch button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 48px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #526b83;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
form.pms-language-switch button:hover { background: #e4edf5; color: #205e9e; }
form.pms-language-switch button[aria-current="true"] {
  background: #fff;
  color: #1763b3;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 62, 99, .12);
}
form.pms-language-switch button:focus-visible { outline: 2px solid #1763b3; outline-offset: 1px; }
body.pms-login .login { padding-top: 80px; }
.pms-login .login > form.pms-language-switch {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: max(32px, env(safe-area-inset-right));
  z-index: 10;
  float: none;
  margin: 0;
}
@media (max-width: 600px) {
  .pms-login .login > form.pms-language-switch {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }
}
