/* ===================================================================
   LONTURN LANG DROPDOWN / 2026-11-26
   语言下拉面板按实际语言数量自适应。
   原插件给 .p_languageBox 写了内联 height:312px，且 .p_yyItem 宽度 20%
   （按 5 列排），只配 2 种语言时面板留下大片空白。
   改为内容撑开：高度 auto、宽度 max-content；2 种一行、3 种自然变宽、
   超过 520px 才换行。面板右对齐到触发按钮（按钮在父容器右端）。
   =================================================================== */

.e_substationNew-402 .p_languageBox {
  height: auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(520px, 92vw) !important;
  left: auto !important;
  right: 0 !important;
  padding: 8px !important;
  overflow: visible !important;
}
.e_substationNew-402 .p_languageBox .p_language {
  display: flex !important;
  flex-wrap: wrap !important;
  width: auto !important;
  gap: 2px 8px !important;
  overflow: visible !important;
}
.e_substationNew-402 .p_languageBox .p_yyItem {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
}
.e_substationNew-402 .p_languageBox .p_yyItem:hover {
  background: rgba(255, 255, 255, .08) !important;
}
.e_substationNew-402 .p_languageBox .font {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  color: #dbe4f5 !important;
}
.e_substationNew-402 .p_languageBox .font img {
  width: 20px !important;
  height: auto !important;
  flex: 0 0 auto !important;
}
