/* Visorya shared i18n components — language switcher + store badges.
   Self-contained, scoped under .i18n-*, theme-adaptive, RTL-aware. */

.i18n-switch { position: relative; display: inline-block; font-family: inherit; }
.i18n-switch__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 1; font-weight: 600;
  color: currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  transition: background .18s ease, border-color .18s ease;
}
.i18n-switch__btn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.i18n-switch__cur { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.i18n-switch__chev { transition: transform .18s ease; opacity: .7; flex: none; }
.i18n-switch.is-open .i18n-switch__chev { transform: rotate(180deg); }

.i18n-switch__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 190px; max-height: 320px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; z-index: 9999;
  background: #14161c; color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.i18n-switch.is-open .i18n-switch__menu { opacity: 1; transform: none; pointer-events: auto; }
.i18n-switch__item {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: #e8e9ee; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.i18n-switch__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.i18n-switch__item.is-active { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }

/* Store badges */
.i18n-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.i18n-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; min-width: 150px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.i18n-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.i18n-badge svg { flex: none; }
.i18n-badge__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.i18n-badge__txt small { font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.i18n-badge__txt strong { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.i18n-badge--soon { opacity: .55; cursor: default; }
.i18n-badge--soon:hover { transform: none; box-shadow: none; }

/* RTL */
[dir="rtl"] .i18n-switch__menu { inset-inline-end: auto; inset-inline-start: 0; }
[dir="rtl"] .i18n-badge__txt { text-align: start; }
