/**
 * EN/ES toggle — same visuals as index snapshot (stat-language).
 * Wrap markup in .cu-lang-switch (see webcam-lighting.html).
 */
.cu-lang-switch .cu-lang-k {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.cu-lang-switch .lang-flags {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 0;
}

.cu-lang-switch .lang-select-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.cu-lang-switch .lang-flag-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cu-lang-switch .lang-flag {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: visible;
  border: 3px solid var(--border);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.cu-lang-switch .lang-flag-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 0;
}

.cu-lang-switch .lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cu-lang-switch .lang-flag-check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 3;
  width: 18px;
  height: 18px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.cu-lang-switch .lang-flag--selected {
  border-color: var(--green);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--green),
    0 4px 0 rgba(5, 176, 250, 0.2);
}

.cu-lang-switch .lang-flag-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cu-lang-switch .lang-flag-label--active {
  color: var(--green);
}
