/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0;
  background: transparent;
  padding: 0;
}

.language-switcher button {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
  -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  background-color: transparent;
  border-radius: 3px;
  border: 0;
  box-shadow: inset 0 0 0 2px #00315C;
  color: #00315C;
  cursor: pointer;
  display: inline-block;
  font-size: 0.8em;
  font-weight: 600;
  height: 3.125em;
  letter-spacing: 0.225em;
  line-height: 3.125em;
  padding: 0 1.5em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-switcher button:hover {
  background-color: rgba(0, 49, 92, 0.1);
  box-shadow: inset 0 0 0 2px #00315C;
  color: #00315C;
}

.language-switcher button:active {
  background-color: rgba(0, 49, 92, 0.2);
}

.language-switcher button.active {
  background-color: #00315C;
  box-shadow: none !important;
  color: #ffffff !important;
}

.language-switcher button.active:hover {
  background-color: #004a7a !important;
}

.language-switcher button.active:active {
  background-color: #00263f !important;
}

/* Header Alt (Dark Background - Home) */
#header.alt .language-switcher button {
  box-shadow: inset 0 0 0 2px #fff;
  color: #fff;
}

#header.alt .language-switcher button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 2px #fff;
  color: #fff;
}

/* Integrate into header */
#header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#header > * {
  flex-shrink: 0;
}

#nav {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

#nav ul {
  display: flex !important;
  align-items: center !important;
}

.language-switcher {
  margin-left: auto;
}

/* Mobile responsive */
@media screen and (max-width: 980px) {
  .language-switcher button {
    padding: 0 1.25em;
    font-size: 0.75em;
  }
}

@media screen and (max-width: 640px) {
  #header {
    flex-direction: column;
    gap: 10px;
  }
  
  #nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .language-switcher {
    margin-left: auto;
    margin-right: 0;
  }
  
  .language-switcher button {
    padding: 0 1em;
    font-size: 0.7em;
    height: 2.75em;
    line-height: 2.75em;
  }
}

/* Integrate into header */
#header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#header > * {
  flex-shrink: 0;
}

#nav {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

#nav ul {
  display: flex !important;
  align-items: center !important;
}

.language-switcher {
  margin-left: auto;
}

/* Mobile responsive */
@media screen and (max-width: 980px) {
  .language-switcher button {
    padding: 0 1.25em;
    font-size: 0.75em;
  }
}

@media screen and (max-width: 640px) {
  #header {
    flex-direction: column;
    gap: 10px;
  }
  
  #nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .language-switcher {
    margin-left: auto;
    margin-right: 0;
  }
  
  .language-switcher button {
    padding: 0 1em;
    font-size: 0.7em;
    height: 2.75em;
    line-height: 2.75em;
  }
}
