/* Nevilo — language switcher + bottom sheet */

.app-nevilo-lang__btn {
  padding: 0;
  overflow: hidden;
}

.app-nevilo-lang__flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

[data-app-nevilo-lang][hidden],
.app-nevilo-lang__btn[hidden] {
  display: none !important;
}

.lang-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.lang-sheet[hidden] {
  display: none !important;
}

.lang-sheet:not([hidden]) {
  pointer-events: auto;
}

.lang-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 11, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lang-sheet.is-open .lang-sheet__scrim {
  opacity: 1;
}

.lang-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line, rgba(7, 20, 18, 0.08));
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 48px rgba(7, 20, 18, 0.12);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink, #071412);
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.lang-sheet.is-open .lang-sheet__panel {
  transform: translateY(0);
}

.lang-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.lang-sheet__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal, #0c7469);
}

.lang-sheet__head h2 {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted, #5f736f);
}

.lang-sheet__close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(7, 20, 18, 0.08));
  background: #f7faf9;
  color: var(--ink, #071412);
  display: grid;
  place-items: center;
}

.lang-sheet__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.lang-sheet__list {
  display: grid;
  gap: 0.55rem;
}

.lang-sheet__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(7, 20, 18, 0.08));
  background: #f7faf9;
  color: inherit;
  text-align: start;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-sheet__item:hover,
.lang-sheet__item:focus-visible {
  border-color: rgba(12, 116, 105, 0.28);
  background: rgba(12, 116, 105, 0.06);
}

.lang-sheet__item.is-active {
  border-color: rgba(12, 116, 105, 0.45);
  background: rgba(12, 116, 105, 0.1);
}

.lang-sheet__item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lang-sheet__item span {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.lang-sheet__item em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--teal, #0c7469);
}

html[dir="ltr"] .lang-sheet__item {
  text-align: left;
}

body.lang-open {
  overflow: hidden;
}
