.jtx-language-switcher {
  position: fixed;
  z-index: 9997;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e3d9cf;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(48, 34, 24, 0.12);
  transform: translateY(-50%);
}

.jtx-mobile-language {
  display: none;
}

.jtx-language-switcher span {
  display: block;
}

.jtx-language-switcher a,
.jtx-language-switcher strong {
  display: block;
  min-width: 76px;
  padding: 0.55rem 0.7rem;
  color: #292421;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.jtx-language-switcher strong {
  background: #c9232d;
  color: #fff;
}

.jtx-language-switcher a:hover {
  background: #fff4f4;
  color: #9f1821;
}

.jtx-language-switcher a:focus-visible {
  outline: 3px solid #1473e6;
  outline-offset: -3px;
}

@media (max-width: 767px) {
  .jtx-language-switcher {
    display: none;
  }

  body.jtx-has-translations .jtx-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .jtx-mobile-language {
    position: relative;
    display: block;
    min-width: 0;
  }

  .jtx-mobile-language summary {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.1rem;
    border-radius: 8px;
    color: #292421;
    cursor: pointer;
    list-style: none;
  }

  .jtx-mobile-language summary::-webkit-details-marker {
    display: none;
  }

  .jtx-mobile-language[open] summary {
    background: #fff4f4;
  }

  .jtx-mobile-language__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.55rem);
    width: max-content;
    min-width: 144px;
    padding: 0.35rem;
    overflow: hidden;
    border: 1px solid #e3d9cf;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 -8px 24px rgba(48, 34, 24, 0.16);
  }

  .jtx-mobile-nav .jtx-mobile-language__menu a,
  .jtx-mobile-nav .jtx-mobile-language__menu strong {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0.58rem 0.7rem;
    border-radius: 7px;
    color: #292421;
    font-size: 0.76rem;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
  }

  .jtx-mobile-nav .jtx-mobile-language__menu strong {
    background: #c9232d;
    color: #fff;
  }

  .jtx-mobile-nav .jtx-mobile-language__menu a:active {
    background: #fff4f4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jtx-language-switcher * {
    scroll-behavior: auto;
  }
}
