/* Fortune Prime bilingual header switcher. Scoped to the existing ES/EN controls. */
.fp-language-switcher--flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  vertical-align: middle;
}

.fp-language-switcher--flags .fp-language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  text-decoration: none;
}

.fp-language-switcher--flags .fp-language-switcher__flag {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 12px;
  object-fit: contain;
  border: 1px solid rgba(244, 241, 235, .38);
  border-radius: 2px;
  box-sizing: border-box;
}

.fp-language-switcher--flags .fp-language-switcher__separator {
  color: rgba(244, 241, 235, .55);
  font-size: 10px;
  line-height: 1;
}

.fp-language-switcher--flags .fp-language-switcher__link[aria-current="page"] {
  color: #D6B44C;
}

.ref-nav .fp-language-switcher--flags .fp-language-switcher__link::after {
  background: #D6B44C;
  height: 1px;
}

.ref-nav .fp-language-switcher--flags .fp-language-switcher__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.fp-language-switcher--flags .fp-language-switcher__link:focus-visible {
  outline: 2px solid #D6B44C;
  outline-offset: 3px;
  border-radius: 1px;
}

@media (max-width: 1100px) {
  .fp-mobile-panel .fp-language-switcher--flags {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 2px;
    width: max-content;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid rgba(217, 180, 58, .32);
  }

  .fp-mobile-panel .fp-language-switcher--flags .fp-language-switcher__link {
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 9px;
    border: 0;
    color: #F4F1EB;
    font-size: 11px;
    letter-spacing: .08em;
  }

  .fp-mobile-panel .fp-language-switcher--flags .fp-language-switcher__link[aria-current="page"] {
    color: #D6B44C;
    box-shadow: inset 0 -1px 0 #D6B44C;
  }

  .fp-mobile-panel .fp-language-switcher--flags .fp-language-switcher__link:hover,
  .fp-mobile-panel .fp-language-switcher--flags .fp-language-switcher__link:focus-visible {
    color: #D6B44C;
  }

  .fp-mobile-panel .fp-language-switcher--flags .fp-language-switcher__link:focus-visible {
    outline: 2px solid #D6B44C;
    outline-offset: 2px;
  }
}