/* Language switcher: PL (default) / EN */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch__btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 0;
  cursor: pointer;
  opacity: 0.55;
  border-radius: 2px;
}

.lang-switch__btn img {
  display: block;
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.lang-switch__btn:hover,
.lang-switch__btn.is-active {
  opacity: 1;
}

.lang-switch__btn.is-active img {
  box-shadow: 0 0 0 2px #ffffff;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  opacity: 1;
}

@media (min-width: 480px) {
  .main-header .header-lower .outer-box .ui-btn-outer {
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
}

.ui-btn-outer .lang-switch--bar + .search-btn.ui-btn,
.ui-btn-outer .search-btn.ui-btn {
  margin-left: 0;
}

.lang-switch--menu {
  display: none;
}

.mobile-nav-slot {
  display: contents;
}

.lang-switch--panel {
  flex: 0 0 auto;
  margin-right: 12px;
}

.mobile-menu .upper-box .nav-logo {
  width: auto;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1200px) {
  .sticky-header .mobile-nav-slot {
    display: flex;
    align-items: center;
    float: right;
    margin-left: 24px;
  }

  .sticky-header .lang-switch--menu {
    display: none;
  }
}

.main-menu .navigation > li.header-tool--lang
{
    display: flex;
    align-items: center;
    margin-right: 0;
}

@media (max-width: 1199px) {
  .lang-switch--bar {
    display: none;
  }

  .mobile-nav-toggler {
    display: flex !important;
  }

  .mobile-nav-slot {
    display: flex;
    align-items: center;
    position: relative;
  }

  .lang-switch--menu {
    display: flex;
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.92);
    z-index: 30;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  .mobile-nav-slot:hover .lang-switch--menu,
  .mobile-nav-slot:focus-within .lang-switch--menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 1199px) and (hover: none) {
  .mobile-nav-slot .lang-switch--menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    margin-right: 12px;
  }
}

.lang-switch--page {
  justify-content: center;
  margin: 0 auto 18px;
}
