.hwl-lang-switcher {
  height: 100%;
  position: relative;
  display: inline-flex;
  align-items: center;
  font: inherit;
  color: inherit;
  line-height: inherit;
  overflow: visible !important;
  z-index: 10;
}

.hwl-lang-switcher.is-open {
  z-index: 2147483000;
}

.fusion-main-menu > ul > li.hwl-lang-switcher,
.fusion-main-menu > ul > li.menu-item.hwl-lang-switcher {
  position: relative;
  overflow: visible !important;
}

.hwl-lang-switcher * {
  box-sizing: border-box;
}

.hwl-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 0;
  padding: 0.55em 0.9em;
  margin: 0;
  border: 1px solid #d7dae6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--nav_typography-color, inherit);
  font-family: var(--nav_typography-font-family);
  font-weight: var(--nav_typography-font-weight);
  font-size: var(--nav_typography-font-size);
  letter-spacing: var(--nav_typography-letter-spacing);
  text-transform: var(--nav_typography-text-transform);
  font-style: var(--nav_typography-font-style, normal);
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

.fusion-is-sticky .hwl-lang-trigger,
.fusion-is-sticky .hwl-lang-option,
.fusion-is-sticky .hwl-lang-label,
.fusion-is-sticky .hwl-lang-option .menu-text {
  font-size: var(--header_sticky_nav_font_size) !important;
}

.hwl-lang-trigger.fusion-bar-highlight:before,
.hwl-lang-trigger.fusion-bar-highlight:after,
.hwl-lang-option:before,
.hwl-lang-option:after {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}

.hwl-lang-trigger {
  touch-action: manipulation;
}

.hwl-lang-trigger:hover,
.hwl-lang-trigger:focus {
  color: inherit;
  border-color: #c9cedf;
  background: #ffffff;
  outline: none;
}

.hwl-lang-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
  transform: translateY(-0.02em);
}

.hwl-lang-label {
  white-space: nowrap;
}

.hwl-lang-caret {
  font-size: 0.75em;
  line-height: 1;
}

.hwl-lang-menu {
  position: absolute;
  left: 0;
  right: auto;
  top: 70%;
  min-width: 100%;
  width: calc(100% + 15px);
  max-width: 320px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d7dae6;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 2147483001;
}

/* Force click-controlled visibility so theme hover styles cannot open it. */
.hwl-lang-switcher .hwl-lang-menu {
  display: none !important;
}

.hwl-lang-switcher.is-open .hwl-lang-menu {
  display: block !important;
}

.hwl-lang-switcher:hover .hwl-lang-menu {
  display: none !important;
}

.hwl-lang-switcher.is-open:hover .hwl-lang-menu {
  display: block !important;
}

.hwl-lang-menu,
.hwl-lang-menu li {
  list-style: none !important;
}

.hwl-lang-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

header .hwl-lang-menu li,
.header-section .hwl-lang-menu li,
.hwl-lang-menu li.hwl-lang-item {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  border: 0 !important;
}

.hwl-lang-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
  padding: 12px 16px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent;
  color: var(--nav_typography-color, #24245f) !important;
  font-size: var(--nav_typography-font-size);
  font-weight: var(--nav_typography-font-weight);
  font-family: var(--nav_typography-font-family);
  letter-spacing: var(--nav_typography-letter-spacing);
  font-style: var(--nav_typography-font-style, normal);
  text-decoration: none !important;
  text-transform: none;
  line-height: 1.2;
}

.hwl-lang-option:hover,
.hwl-lang-option:focus {
  background: #f5f7fc !important;
  outline: none;
}

.hwl-lang-option .menu-text {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}

.hwl-lang-menu .hwl-lang-option:before,
.hwl-lang-menu li:hover > .hwl-lang-option:before {
  content: none !important;
  display: none !important;
}

.hwl-lang-menu li > a.hwl-lang-option,
.hwl-lang-menu li:last-child > a.hwl-lang-option,
header .hwl-lang-menu li:last-child > a.hwl-lang-option,
.header-section .hwl-lang-menu li:last-child > a.hwl-lang-option {
  color: var(--nav_typography-color, #24245f) !important;
}

.hwl-lang-menu li > a.hwl-lang-option span {
  color: inherit !important;
}

.hwl-lang-menu li:last-child span {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: inherit !important;
  text-transform: none !important;
}

/* Keep dropdown above hero/cover media on home pages. */
.fusion-header,
.fusion-header-wrapper,
.fusion-tb-header {
  position: relative;
  z-index: 2147482000;
}

.fusion-title,
.fusion-fullwidth,
.fullwidth-box,
.fusion-slider-container,
.fusion-imageframe {
  z-index: auto;
}

.hwl-check {
  width: 1em;
  visibility: hidden;
}

.hwl-lang-option.is-active .hwl-check {
  visibility: visible;
}

@media (max-width: 1021px) {
  .hwl-lang-switcher {
    display: block;
    width: 100%;
    z-index: auto;
  }

  .hwl-lang-trigger {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.35em;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 12px 0;
    line-height: 1.2;
  }

  .hwl-lang-trigger {
    font-size: var(--nav_typography-font-size);
  }

  .hwl-lang-menu {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    border: 0;
    border-top: 1px solid #f4f4f7;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    padding: 0;
    margin: 0;
    z-index: auto;
  }

  .hwl-lang-option {
    justify-content: center;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f7;
    background: transparent !important;
    font-size: var(--nav_typography-font-size);
  }

  .hwl-lang-menu li:last-child .hwl-lang-option {
    border-bottom: 0;
  }
}
