.language-switcher {
  position: fixed;
  top: auto;
  right: 26px;
  bottom: 28px;
  z-index: 100000;
  transform: none;
  font-family: "Nirmala UI", "Segoe UI", Arial, sans-serif;
}

.language-switcher__toggle {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e0371a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(25, 31, 28, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher__toggle:hover,
.language-switcher__toggle:focus-visible,
.language-switcher.is-open .language-switcher__toggle {
  background: #be2911;
  box-shadow: 0 10px 30px rgba(25, 31, 28, 0.34);
  transform: scale(1.06);
}

.language-switcher__toggle:focus-visible,
.language-switcher__option:focus-visible {
  outline: 3px solid rgba(224, 55, 26, 0.3);
  outline-offset: 3px;
}

.language-switcher__toggle .fa-language {
  font-size: 21px;
  line-height: 1;
}

.language-switcher__code {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

.language-switcher__menu {
  position: absolute;
  top: auto;
  right: 72px;
  bottom: 0;
  width: 210px;
  padding: 12px;
  border: 1px solid rgba(37, 45, 41, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(25, 31, 28, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.96);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-switcher__menu::after {
  content: "";
  position: absolute;
  top: auto;
  right: -7px;
  bottom: 20px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(37, 45, 41, 0.1);
  border-right: 1px solid rgba(37, 45, 41, 0.1);
  background: #fff;
  transform: rotate(45deg);
}

.language-switcher.is-open .language-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.language-switcher__title {
  display: block;
  padding: 2px 8px 9px;
  color: #59615d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.language-switcher__option {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 48px;
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #222a26;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: center;
  gap: 9px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.language-switcher__option:hover {
  background: #fff1ed;
  color: #be2911;
}

.language-switcher__option-code {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f2f1;
  display: grid;
  place-items: center;
  color: #303934;
  font-size: 12px;
  font-weight: 800;
}

.language-switcher__option .fa-check {
  color: #e0371a;
  font-size: 12px;
  opacity: 0;
}

.language-switcher__option.is-active {
  background: #fff1ed;
  color: #be2911;
}

.language-switcher__option.is-active .language-switcher__option-code {
  background: #e0371a;
  color: #fff;
}

.language-switcher__option.is-active .fa-check {
  opacity: 1;
}

html[lang="mr"] body {
  font-family: "Nirmala UI", "Mangal", "Segoe UI", Arial, sans-serif;
}

html[lang="mr"] .tx-title,
html[lang="mr"] .banner-title,
html[lang="mr"] .title,
html[lang="mr"] .sub-title {
  letter-spacing: normal;
}

/* Keep both floating controls on one clean vertical axis. */
.back-to-top-wrapper {
  right: 26px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

.back-to-top-wrapper.back-to-top-btn-show {
  bottom: 102px;
}

@media (max-width: 767px) {
  .language-switcher {
    top: auto;
    right: 14px;
    bottom: 16px;
    transform: none;
  }

  .language-switcher__toggle {
    width: 52px;
    height: 52px;
  }

  .language-switcher__menu {
    top: auto;
    right: 64px;
    bottom: 0;
    width: min(210px, calc(100vw - 92px));
    transform: translateX(10px) scale(0.96);
    transform-origin: right bottom;
  }

  .language-switcher__menu::after {
    top: auto;
    right: -7px;
    bottom: 18px;
    transform: rotate(45deg);
  }

  .language-switcher.is-open .language-switcher__menu {
    transform: translateX(0) scale(1);
  }

  .back-to-top-wrapper {
    right: 14px;
    width: 52px;
    height: 52px;
  }

  .back-to-top-wrapper.back-to-top-btn-show {
    bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher__toggle,
  .language-switcher__menu,
  .language-switcher__option {
    transition: none;
  }
}
