
/* i18n/lang-popup.css (fixed popup above backdrop) */
.ctt-lang-trigger {
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--panel, #111);
  color: var(--text, #eee);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ctt-lang-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  display: none;
}

.ctt-lang-popup {
  position: fixed; /* fixed above everything */
  z-index: 10002;  /* above backdrop */
  width: 220px;
  border-radius: 14px;
  background: var(--panel, #151515);
  color: var(--text, #f5f5f5);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  display: none;
  overflow: hidden;
  top: 62px;  /* default fallback */
  right: 14px;
}

.ctt-lang-header {
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ctt-lang-list { list-style: none; margin: 0; padding: 6px; }
.ctt-lang-item {
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ctt-lang-item:hover { background: rgba(255,255,255,0.06); }
.ctt-lang-item.active { background: rgba(255,255,255,0.12); }
.ctt-lang-item .code { margin-left: auto; opacity: .7; font-size: 12px; }
