.frq-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(0, 48, 73, 0.13);
  border-radius: 999px;
  background: rgba(247, 250, 252, 0.92);
  box-shadow: 0 8px 24px rgba(0, 48, 73, 0.08);
  font-family: "Cinzel", serif;
}

.frq-language-switcher--desktop {
  position: fixed;
  top: 48px;
  left: clamp(78px, 8.2vw, 116px);
  z-index: 10020;
}

.admin-bar .frq-language-switcher--desktop {
  top: 48px;
}

.frq-language-switcher-target {
  position: relative !important;
  flex-wrap: nowrap !important;
  align-content: center !important;
}

.frq-language-switcher--desktop.is-in-header-container {
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 5;
  display: inline-flex;
  width: auto;
  flex: none;
  margin: 0;
}

.frq-language-switcher__button {
  display: inline-flex;
  min-width: 52px;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #003049;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.frq-language-switcher__button:hover,
.frq-language-switcher__button:focus-visible {
  background: rgba(102, 155, 188, 0.14);
  border-color: rgba(102, 155, 188, 0.18);
  color: #003049;
}

.frq-language-switcher__button.is-active {
  background: #669bbc;
  border-color: #669bbc;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 48, 73, 0.14);
}

.frq-language-switcher__flag {
  display: inline-flex;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.frq-language-switcher__code {
  letter-spacing: 0;
}

.frq-language-loader {
  position: fixed;
  z-index: 100100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(244, 248, 251, 0.76);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.frq-language-is-loading .frq-language-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.frq-language-loader__card {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 12px 20px 12px 13px;
  border: 1px solid rgba(0, 48, 73, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(0, 48, 73, 0.16);
  color: #003049;
}

.frq-language-loader__coin {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid #b9892f;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff6bc 0 10%, transparent 11%),
    radial-gradient(circle at 50% 52%, #f7dc7d 0 56%, #c9902b 58% 70%, #f3d46a 72% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 248, 190, 0.65), 0 5px 12px rgba(99, 68, 15, 0.2);
  color: #003049;
  font-family: "Cinzel", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform-style: preserve-3d;
  animation: frq-language-coin-turn 900ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.frq-language-loader__text {
  font-family: "Cinzel", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes frq-language-coin-turn {
  0% {
    transform: perspective(120px) rotateY(0deg);
  }

  50% {
    transform: perspective(120px) rotateY(90deg) scale(0.92);
  }

  100% {
    transform: perspective(120px) rotateY(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .frq-language-loader,
  .frq-language-loader__coin {
    transition: none;
    animation: none;
  }
}

@media (max-width: 767px) {
  .frq-language-switcher--desktop {
    display: none;
  }

  .frq-mobile-header__main .frq-language-switcher {
    grid-column: 1;
    justify-self: start;
  }

  .frq-mobile-header__main .frq-language-switcher__button {
    min-width: 34px;
    width: 34px;
    height: 34px;
    gap: 0;
    padding: 0;
    box-shadow: none;
  }

  .frq-mobile-header__main .frq-language-switcher__code {
    display: none;
  }

  .frq-language-loader__card {
    min-height: 60px;
    padding: 10px 17px 10px 11px;
  }

  .frq-language-loader__coin {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 18px;
  }

  .frq-language-loader__text {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .frq-language-switcher--mobile {
    display: none;
  }
}
