/* Happy Mouse — mały przełącznik TranslatePress. */

/* Ukrywamy standardowy pływający przełącznik wtyczki. */
#trp-floater-ls,
.trp-floating-language-switcher,
body > .trp-language-switcher-container{
  display:none !important;
}

.hm-language-switcher{
  position:relative;
  justify-self:start;
  z-index:38;
  font-family:Montserrat,sans-serif;
  font-size:10px;
  font-weight:400;
  line-height:1.2;
}

.hm-language-switcher__button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:58px;
  height:36px;
  margin:0;
  padding:0 11px;
  border:1px solid var(--line,#e5d5c2);
  border-radius:3px;
  background:var(--paper,#fffdf9);
  color:var(--ink,#332923);
  font-family:Montserrat,sans-serif;
  font-size:10px;
  font-weight:400;
  letter-spacing:.08em;
  line-height:1;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}

.hm-language-switcher__button:hover,
.hm-language-switcher__button:focus-visible{
  border-color:var(--gold,#b98752);
  background:#fff;
  color:var(--rose-dark,#9d625b);
  outline:none;
}

.hm-language-switcher__chevron{
  width:7px;
  height:7px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transform-origin:center;
  transition:transform .2s ease;
}

.hm-language-switcher.is-open .hm-language-switcher__chevron{
  transform:rotate(225deg) translate(-1px,-1px);
}

.hm-language-switcher__menu{
  position:absolute;
  top:calc(100% + 7px);
  left:0;
  z-index:40;
  min-width:138px;
  padding:6px;
  border:1px solid var(--line,#e5d5c2);
  border-radius:3px;
  background:var(--paper,#fffdf9);
  box-shadow:0 14px 32px rgba(75,48,29,.14);
}

.hm-language-switcher__menu[hidden]{
  display:none !important;
}

.hm-language-switcher__option{
  display:grid;
  grid-template-columns:31px minmax(0,1fr);
  align-items:center;
  gap:6px;
  min-height:37px;
  padding:6px 9px;
  border-radius:2px;
  color:var(--ink,#332923);
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease;
}

.hm-language-switcher__option:hover,
.hm-language-switcher__option:focus-visible{
  background:var(--cream,#f8f1e8);
  color:var(--rose-dark,#9d625b);
  outline:none;
}

.hm-language-switcher__option.is-current{
  color:var(--rose-dark,#9d625b);
}

.hm-language-switcher__code{
  font-size:9px;
  font-weight:500;
  letter-spacing:.09em;
}

.hm-language-switcher__name{
  font-size:10px;
  font-weight:300;
  letter-spacing:.015em;
}

.hm-language-switcher__option.is-current .hm-language-switcher__code::before{
  content:'';
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 5px 2px 0;
  border-radius:50%;
  background:var(--gold,#b98752);
}

.hm-language-switcher--inactive .hm-language-switcher__button{
  cursor:default;
}

@media(max-width:720px){
  .header__upper{
    width:calc(100% - 20px);
    grid-template-columns:76px minmax(0,1fr) 76px !important;
  }

  .header__upper>.menu-button{
    grid-column:1;
    grid-row:1;
    justify-self:start;
  }

  .header__upper>.logo{
    grid-column:2;
    grid-row:1;
    justify-self:center;
  }

  .header__upper>.actions{
    grid-column:3;
    grid-row:1;
    justify-self:end;
  }

  .hm-language-switcher{
    grid-column:3;
    grid-row:1;
    justify-self:start;
    z-index:42;
  }

  .hm-language-switcher__button{
    width:32px;
    min-width:32px;
    height:32px;
    gap:3px;
    padding:0;
    border:0;
    background:transparent;
    font-size:9px;
  }

  .hm-language-switcher__chevron{
    width:5px;
    height:5px;
  }

  .hm-language-switcher__menu{
    right:-43px;
    left:auto;
    min-width:130px;
    padding:5px;
  }

  .hm-language-switcher__option{
    min-height:39px;
    padding-inline:9px;
  }
}
