/*!
 * Maheri language bar — v1.0.0 · 2026-11-25 · Maheri Network (shared by the Maheri Network plugin and the Maheri theme)
 * Web Search Tools palette: #0b0818 / #14002e / #2a0a5e violets, #eded00 yellow.
 */
.mlang-bar, .mlang-pop, .mlang-mini { --mlang-y: #eded00; --mlang-ink: #e9defd; --mlang-bg: #14002e; box-sizing: border-box;
  font-family: var(--mse-font, var(--maheri-font-body, Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif)); }
.mlang-bar *, .mlang-pop *, .mlang-mini * { box-sizing: border-box; }
/* themes style every span / button / li (ListingPro: black 16px spans): keep ours inheriting */
.mlang-bar span, .mlang-pop span, .mlang-mini span, .mlang-bar li, .mlang-pop li {
  color: inherit !important; font: inherit !important; letter-spacing: inherit; text-transform: none; background: none; border: 0; margin: 0; padding: 0;
}
.mlang-bar svg, .mlang-pop svg, .mlang-mini svg { display: block; fill: none; }
.mlang-bar[hidden], .mlang-pop[hidden], .mlang-mini[hidden], .mlang-bar [hidden] { display: none !important; }

/* ── the bar ───────────────────────────────────────────────────────────────────────────────────────────────── */
.mlang-bar {
  position: relative; display: block; width: 100%; margin: 0; padding: 3px clamp(8px, 2vw, 20px);
  background: linear-gradient(90deg, #0b0818 0%, #14002e 45%, #2a0a5e 100%); color: var(--mlang-ink);
  border-bottom: 1px solid rgba(237, 237, 0, .18); font-size: 12px; line-height: 1;
}
.mlang-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 6px; max-width: 1440px; margin: 0 auto; }
.mlang-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 2px; margin: 0; padding: 0; list-style: none; }
.mlang-list li, .mlang-grid li, .mlang-az li { margin: 0; padding: 0; list-style: none; }
.mlang-ico { display: inline-flex; width: 14px; height: 14px; flex: 0 0 auto; }
.mlang-ico svg { width: 100%; height: 100%; display: block; }

.mlang-chip, .mlang-all, .mlang-fold, .mlang-mini, .mlang-pin, .mlang-az-btn {
  -webkit-appearance: none; appearance: none; margin: 0; font: inherit; color: inherit; text-transform: none; letter-spacing: 0;
  cursor: pointer; text-decoration: none; box-shadow: none; text-shadow: none; min-height: 0; min-width: 0; line-height: 1;
}
.mlang-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 7px 0 4px; border: 0; border-radius: 999px;
  background: transparent; color: var(--mlang-ink); font-size: 11.5px; font-weight: 700;
}
.mlang-chip:hover, .mlang-chip:focus-visible, .mlang-all:hover, .mlang-all:focus-visible { background: rgba(255, 255, 255, .11); color: #fff; }
.mlang-chip[aria-pressed="true"] { background: rgba(237, 237, 0, .14); color: var(--mlang-y); box-shadow: inset 0 0 0 1.5px var(--mlang-y); }
.mlang-chip:focus-visible, .mlang-all:focus-visible, .mlang-fold:focus-visible, .mlang-mini:focus-visible, .mlang-pin:focus-visible,
.mlang-az-btn:focus-visible { outline: 2px solid var(--mlang-y); outline-offset: 1px; }
.mlang-flags { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.mlang-flags img {
  display: block; width: 20px !important; height: 15px !important; max-width: none; margin: 0 !important; padding: 0; border: 0;
  border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
.mlang-code { letter-spacing: .04em; }

.mlang-all {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--mlang-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.mlang-all .mlang-ico:first-child { color: var(--mlang-y); }
.mlang-all[aria-expanded="true"] .mlang-caret { transform: rotate(180deg); }
.mlang-fold {
  display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: rgba(233, 222, 253, .8);
}
.mlang-fold svg { width: 14px; height: 14px; }
.mlang-fold:hover { background: rgba(255, 255, 255, .11); color: #fff; }

/* phones: one scrolling line of flags (the chosen one keeps its code); "All" and fold stay at the end */
@media (max-width: 640px) {
  .mlang-bar { padding: 3px 4px 3px 6px; }
  .mlang-in { flex-wrap: nowrap; gap: 4px; }
  .mlang-list { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 0 1px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .mlang-list::-webkit-scrollbar { display: none; }
  .mlang-list li { flex: 0 0 auto; }
  .mlang-chip { padding: 0 4px; gap: 4px; }
  .mlang-list .mlang-chip:not([aria-pressed="true"]) .mlang-code { display: none !important; }
  .mlang-all-l { display: none !important; }
  .mlang-all { flex: 0 0 auto; padding: 0 6px; }
  .mlang-fold { flex: 0 0 auto; }
}

/* ── small button in the header (bar folded) ───────────────────────────────────────────────────────────────── */
.mlang-mini {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; flex: 0 0 auto;
}
.mlang-mini:hover, .mlang-mini[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.mlang-mini .mlang-caret { width: 13px; height: 13px; opacity: .85; }
.mlang-mini--wst { margin-inline-end: 6px; }
@media (max-width: 640px) { .mlang-mini { padding: 0 7px; } .mlang-mini .mlang-caret { display: none; } }

/* ── pop-over ──────────────────────────────────────────────────────────────────────────────────────────────── */
.mlang-pop {
  position: fixed; top: 0; left: 0; z-index: 2147482000; width: min(420px, calc(100vw - 16px)); max-height: 70vh; overflow: auto;
  overscroll-behavior: contain; padding: 10px; border: 1px solid rgba(237, 237, 0, .4); border-radius: 14px; background: var(--mlang-bg);
  color: #f5f3ff; box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .7); text-align: left; font-size: 13.5px; line-height: 1.3;
}
.mlang-pop-top, .mlang-pop-foot { display: none; }
.mlang-pop.is-full .mlang-pop-top { display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mlang-pop.is-full.is-folded .mlang-pop-foot { display: block; padding-top: 8px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }
.mlang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.mlang-chip--wide { width: 100%; height: 32px; padding: 0 8px; justify-content: flex-start; font-size: 12.5px; border-radius: 9px; }
.mlang-chip--wide .mlang-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600 !important; color: #d9c8ff !important; }
.mlang-chip--wide[aria-pressed="true"] .mlang-name { color: var(--mlang-y) !important; }
.mlang-search {
  display: block; width: 100%; height: 36px; margin: 0 0 6px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 14px; box-shadow: none;
}
.mlang-search::placeholder { color: rgba(233, 222, 253, .65); }
.mlang-search:focus { outline: 2px solid var(--mlang-y); outline-offset: 0; border-color: transparent; }
.mlang-az { margin: 0; padding: 0; list-style: none; columns: 2 160px; column-gap: 4px; }
.mlang-az li { break-inside: avoid; }
.mlang-az li[hidden] { display: none; }
.mlang-az-btn {
  display: flex; align-items: center; width: 100%; min-height: 30px; padding: 6px 9px; border: 0; border-radius: 8px;
  background: transparent; color: #f5f3ff; font-size: 13px; font-weight: 500; text-align: start; line-height: 1.25;
}
.mlang-az-btn:hover, .mlang-az-btn:focus-visible { background: rgba(255, 255, 255, .09); }
.mlang-az-btn[aria-current="true"] { color: var(--mlang-y); font-weight: 700; box-shadow: inset 3px 0 0 var(--mlang-y); }
.mlang-pop li.mlang-empty { padding: 8px !important; color: #d9c8ff !important; }
.mlang-pin {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid rgba(237, 237, 0, .5);
  border-radius: 999px; background: transparent; color: var(--mlang-y); font-size: 13px; font-weight: 700;
}
.mlang-pin:hover { background: rgba(237, 237, 0, .12); }
@media (max-width: 640px) { .mlang-grid { grid-template-columns: minmax(0, 1fr); } .mlang-az { columns: 1; } }

.mlang-note {
  position: fixed; left: 50%; bottom: 18px; z-index: 2147482001; transform: translateX(-50%); max-width: calc(100vw - 24px);
  padding: 10px 16px; border-radius: 12px; background: #14002e; color: #fff; font-size: 13.5px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
}

/* ── hosts ─────────────────────────────────────────────────────────────────────────────────────────────────── */
/* Maheri theme: space kept for the bar before the script fills it */
.mlang-slot { display: block; min-height: 31px; background: #14002e; }
html.mlang-folded .mlang-slot { display: none; }
/* Site Enhancer's fixed header: the bar takes the place of the header's spacer and the header follows it */
html.mlang-fixedhdr body.mlang-on.mse-header.mse-built::before { display: none; }
html.mlang-fixedhdr body.mlang-on .mlang-bar { margin-bottom: var(--mse-hdr, 60px); }
html.mlang-fixedhdr #mse-hdr { transition: box-shadow .18s ease; }
/* Web Search Tools: the bar sits inside the app, above its sticky header */
.wst-app > .mlang-bar { flex: none; }
.wst-prefs .mlang-mini { height: 34px; }

/* ── Google Translate's own interface stays hidden ─────────────────────────────────────────────────────────── */
.mlang-gt { position: absolute !important; left: -9999px !important; top: 0; width: 1px; height: 1px; overflow: hidden; }
iframe.skiptranslate, .goog-te-banner-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-yAWNEb-L7lbkb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }
html.translated-ltr body, html.translated-rtl body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) { .mlang-all .mlang-caret { transition: none; } }
@media print { .mlang-bar, .mlang-pop, .mlang-mini, .mlang-slot { display: none !important; } }
