/**
 * FreeCreditHub Instant Language Switcher — Stage 1 (shared chrome)
 * Side-menu language selector only. No layout changes to other components.
 */

.fch-lang-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 12px 12px 11px;
  border: 1px solid #d5e4fb;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 12px rgba(29, 78, 160, 0.06);
}

.fch-lang-switch__label {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fch-lang-switch__pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fch-lang-switch__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #c9dbf7;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a6e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fch-lang-switch__btn:hover,
.fch-lang-switch__btn:focus-visible {
  border-color: #9ebef0;
  background: #f3f8ff;
  outline: none;
}

.fch-lang-switch__btn[aria-pressed="true"] {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(180deg, #5fa0ff 0%, #3a76ef 48%, #1c56d0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 6px 12px rgba(25, 76, 191, 0.22);
}

.fch-lang-switch__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Soften long translated labels in tight chrome */
html[lang="ms"] .bottom-app-nav .bottom-nav-item > span:last-child,
html[lang="zh"] .bottom-app-nav .bottom-nav-item > span:last-child {
  font-size: 0.62rem;
  letter-spacing: -0.01em;
}

html[lang="ms"] .site-nav a,
html[lang="zh"] .site-nav a {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .fch-lang-switch {
    margin: 0 12px 12px;
    padding: 10px;
  }

  .fch-lang-switch__btn {
    min-height: 34px;
    font-size: 11px;
  }
}
