/* One language control follows the shared desktop and mobile navigation. */
body.dmc-site .dmc-shell .dmc-language-switcher {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  margin-inline: 6px 0;
  border-inline-start: 1px solid var(--dmc-line, #dce5ec);
  padding-inline-start: 12px;
  color: var(--dmc-ink, #091b36);
}

body.dmc-site .dmc-shell .dmc-language-switcher .gtranslate_wrapper {
  min-width: 0;
}

body.dmc-site .dmc-shell .dmc-language-switcher select.gt_selector {
  display: block;
  width: 116px;
  max-width: 100%;
  min-height: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid #e2e8ee;
  border-radius: 0;
  padding: 0 9px;
  color: var(--dmc-ink, #091b36);
  background-color: #fff;
  background-image: none;
  box-shadow: none;
  font-family: var(--dmc-font, sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}

body.dmc-site .dmc-shell .dmc-language-switcher select.gt_selector.dmc-has-flags {
  display: none;
}

body.dmc-site .dmc-shell .dmc-language-menu {
  position: relative;
  width: 86px;
  flex: 0 0 auto;
}

body.dmc-site .dmc-shell button.dmc-language-trigger,
body.dmc-site .dmc-shell button.dmc-language-option {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--dmc-ink, #091b36);
  background: #fff;
  box-shadow: none;
  font-family: var(--dmc-font, sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: none;
  cursor: pointer;
}

body.dmc-site .dmc-shell button.dmc-language-trigger {
  width: 100%;
  min-height: 40px;
  height: 40px;
  gap: 8px;
  border: 1px solid #e3e9ee;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .045em;
}

body.dmc-site .dmc-shell .dmc-language-trigger img,
body.dmc-site .dmc-shell .dmc-language-option img {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  border-radius: 1px;
  object-fit: fill;
  box-shadow: 0 0 0 1px rgba(9, 27, 54, .10);
}

body.dmc-site .dmc-shell .dmc-language-trigger img {
  width: 18px;
  height: 12px;
}

body.dmc-site .dmc-shell .dmc-language-code {
  min-width: 17px;
  text-align: left;
}

body.dmc-site .dmc-shell .dmc-language-chevron {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin: -3px 1px 0 auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

body.dmc-site .dmc-shell .dmc-language-trigger[aria-expanded="true"] .dmc-language-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

body.dmc-site .dmc-shell .dmc-language-options {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 130;
  width: 194px;
  margin: 0;
  border: 1px solid #e1e8ee;
  padding: 5px;
  color: var(--dmc-ink, #091b36);
  background: #fff;
  box-shadow: 0 12px 35px rgba(7, 26, 57, .10);
}

body.dmc-site .dmc-shell .dmc-language-options[hidden] {
  display: none;
}

body.dmc-site .dmc-shell button.dmc-language-option {
  width: 100%;
  min-height: 40px;
  padding: 11px 10px;
  letter-spacing: 0;
}

body.dmc-site .dmc-shell button.dmc-language-option::after {
  width: 8px;
  height: 4px;
  flex: 0 0 auto;
  margin-inline-start: auto;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  content: "";
  opacity: 0;
  transform: rotate(-45deg);
}

body.dmc-site .dmc-shell button.dmc-language-option[aria-pressed="true"] {
  color: var(--dmc-navy, #071a39);
  background: #f1f6fa;
}

body.dmc-site .dmc-shell button.dmc-language-option[aria-pressed="true"]::after {
  opacity: 1;
}

body.dmc-site .dmc-shell button.dmc-language-option:hover {
  background: #f5f8fb;
}

body.dmc-site .dmc-shell button.dmc-language-trigger:hover,
body.dmc-site .dmc-shell button.dmc-language-trigger[aria-expanded="true"] {
  border-color: #b8c9d6;
}

body.dmc-site .dmc-shell .dmc-language-switcher select.gt_selector:focus-visible,
body.dmc-site .dmc-shell button.dmc-language-trigger:focus-visible,
body.dmc-site .dmc-shell button.dmc-language-option:focus-visible {
  outline: 2px solid var(--dmc-cyan, #0fb6e8);
  outline-offset: 3px;
}

@media (min-width: 981px) {
  body.dmc-site .dmc-shell .header-inner:has(.dmc-language-switcher) {
    grid-template-columns: minmax(168px, 210px) minmax(0, 1fr) auto;
    gap: clamp(14px, 1.8vw, 28px);
  }
}

@media (max-width: 980px) {
  body.dmc-site .dmc-shell .mobile-menu > nav > .dmc-language-switcher {
    width: auto;
    align-self: stretch;
    margin: 18px 20px 20px;
    border: 0;
    padding: 0;
  }

  body.dmc-site .dmc-shell .mobile-menu > nav > .dmc-language-switcher .gtranslate_wrapper,
  body.dmc-site .dmc-shell .mobile-menu .dmc-language-menu {
    width: 100%;
  }

  body.dmc-site .dmc-shell .mobile-menu > nav > .dmc-language-switcher select.gt_selector,
  body.dmc-site .dmc-shell .mobile-menu button.dmc-language-trigger {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding-inline: 13px;
    font-size: 12px;
  }

  body.dmc-site .dmc-shell .mobile-menu .dmc-language-options {
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 4px;
    box-shadow: none;
  }

  body.dmc-site .dmc-shell .mobile-menu button.dmc-language-option {
    min-height: 44px;
    padding: 12px 10px;
    font-size: 13px;
  }
}
