@font-face {
  font-family: "Phosphor";
  src: url("/assets/icons/phosphor/Phosphor-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}

.ml-language-host {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ml-language-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(15, 54, 40, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.site-header .header-cta {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.ml-language-trigger:hover,
.ml-language-trigger:focus-visible,
.ml-language-host.is-open .ml-language-trigger {
  border-color: rgba(10, 92, 55, 0.5);
  background: #fff;
}

.site-header-overlay:not(.is-solid):not(.is-menu-open) .ml-language-trigger {
  border-color: rgba(245, 249, 246, 0.62);
  background: rgba(4, 24, 28, 0.18);
  color: #f5f9f6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header-overlay:not(.is-solid):not(.is-menu-open) .ml-language-trigger:hover,
.site-header-overlay:not(.is-solid):not(.is-menu-open) .ml-language-trigger:focus-visible,
.site-header-overlay:not(.is-solid):not(.is-menu-open) .ml-language-host.is-open .ml-language-trigger {
  border-color: rgba(245, 249, 246, 0.86);
  background: rgba(4, 24, 28, 0.34);
}

.ml-flag {
  display: block;
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
  border: 1px solid rgba(9, 39, 28, 0.14);
  border-radius: 2px;
  object-fit: cover;
}

.ml-language-trigger .ph-caret-down {
  font-size: 12px;
  transition: transform 160ms ease;
}

.ml-language-host.is-open .ml-language-trigger .ph-caret-down {
  transform: rotate(180deg);
}

.ml-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  display: none;
  width: 210px;
  padding: 7px;
  border: 1px solid rgba(15, 54, 40, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(7, 43, 29, 0.16);
}

.ml-language-host.is-open .ml-language-menu {
  display: grid;
}

.ml-language-option {
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #173b2d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ml-language-option:hover,
.ml-language-option:focus-visible,
.ml-language-option[aria-current="true"] {
  background: #edf5f0;
  color: #075a34;
}

.ml-language-option .ph {
  justify-self: end;
}

.ml-language-host-mobile {
  width: 100%;
}

.ml-language-host-mobile .ml-language-trigger {
  width: 100%;
  justify-content: flex-start;
  border-radius: 6px;
}

.ml-language-host-mobile .ml-language-trigger .ph {
  margin-left: auto;
}

.ml-language-host-mobile .ml-language-menu {
  display: none !important;
}

.ml-language-dialog {
  width: min(92vw, 420px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #173b2d;
  box-shadow: 0 24px 70px rgba(4, 29, 20, 0.28);
}

.ml-language-dialog::backdrop {
  background: rgba(5, 25, 18, 0.58);
  backdrop-filter: blur(3px);
}

.ml-language-dialog-panel {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.ml-language-dialog-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 54, 40, 0.12);
}

.ml-language-dialog-header strong {
  font-size: 18px;
}

.ml-language-dialog-header button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(15, 54, 40, 0.16);
  border-radius: 50%;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
}

.ml-language-dialog-list {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.ml-language-dialog-list .ml-language-option {
  min-height: 50px;
  padding-inline: 12px;
  font-size: 15px;
}

@media (max-width: 880px) {
  .ml-language-dialog {
    margin: auto auto 14px;
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-language-trigger .ph-caret-down {
    transition: none;
  }
}
