/*
  Agenz Foundation V107
  Compact bilingual control and stable localized navigation.
*/

html body .language-toggle {
  display: none !important;
}

html body .language-switcher {
  width: 82px;
  height: 38px;
  flex: 0 0 82px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(21, 95, 209, .16);
  border-radius: 11px;
  background: rgba(239, 246, 255, .88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 7px 20px rgba(31, 73, 137, .07);
}

html body .language-switcher button {
  position: relative;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #64718a;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 800 .61rem/1 "Manrope", system-ui, sans-serif;
  letter-spacing: .055em;
  cursor: pointer;
  transition:
    color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

html body .language-switcher button:hover {
  color: #0d4fa8;
}

html body .language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: #1764d8;
  box-shadow: 0 5px 13px rgba(21, 95, 209, .22);
}

html body .language-switcher button:focus-visible {
  outline: 3px solid rgba(21, 95, 209, .2);
  outline-offset: 2px;
}

html body[data-language="en"] [data-language-option="en"],
html body[data-language="id"] [data-language-option="id"] {
  color: inherit;
}

html body[data-language="en"] .id-only,
html body[data-language="id"] .en-only {
  display: none !important;
}

html body[data-language="en"] .en-only,
html body[data-language="id"] .id-only {
  display: revert;
}

html body .site-header .header-actions {
  min-width: max-content;
}

@media (max-width: 1280px) and (min-width: 1141px) {
  html body .language-switcher {
    width: 74px;
    flex-basis: 74px;
  }
}

@media (max-width: 1140px) {
  html body .language-switcher {
    width: 76px;
    height: 36px;
    flex-basis: 76px;
  }

  html body .language-switcher button {
    height: 28px;
  }

  html body .site-header .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

@media (max-width: 520px) {
  html body .site-header,
  html body .site-header.scrolled,
  html body .site-header.ref-scrolled {
    width: calc(100% - 20px) !important;
    padding-left: 13px !important;
    padding-right: 9px !important;
  }

  html body .brand-lockup,
  html body .site-header .brand-lockup {
    width: 132px !important;
    min-width: 132px !important;
  }

  html body .brand-lockup img,
  html body .site-header .brand-lockup img {
    width: 130px !important;
  }

  html body .language-switcher {
    width: 70px;
    flex-basis: 70px;
  }
}

@media (max-width: 390px) {
  html body .brand-lockup,
  html body .site-header .brand-lockup {
    width: 116px !important;
    min-width: 116px !important;
  }

  html body .brand-lockup img,
  html body .site-header .brand-lockup img {
    width: 114px !important;
  }

  html body .language-switcher {
    width: 64px;
    flex-basis: 64px;
  }

  html body .language-switcher button {
    font-size: .56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .language-switcher button {
    transition: none;
  }
}
