/* =========================================================
   V57 Main Website Language Switcher
   ========================================================= */

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(8, 120, 164, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}

.language-switcher a:hover,
.language-switcher a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 20px rgba(8, 120, 164, 0.18);
}

.language-switcher span {
  opacity: .38;
}

html[lang="th"],
html[lang="th"] body,
html[lang="th"] button,
html[lang="th"] input,
html[lang="th"] select,
html[lang="th"] textarea {
  font-family: var(--ctl-font-th, "Prompt", "Red Hat Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4,
html[lang="th"] h5,
html[lang="th"] h6,
html[lang="th"] .nav a,
html[lang="th"] .btn,
html[lang="th"] .eyebrow,
html[lang="th"] .contact-pill,
html[lang="th"] .package-plan-kicker,
html[lang="th"] .package-code,
html[lang="th"] .package-status {
  font-family: var(--ctl-font-th, "Prompt", "Red Hat Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

@media (max-width: 920px) {
  .language-switcher {
    order: -1;
    min-height: 36px;
    padding: 0 8px;
    font-size: 11px;
  }

  .language-switcher a {
    min-width: 26px;
    height: 26px;
  }
}

@media (max-width: 760px) {
  .language-switcher {
    display: inline-flex;
  }
}
