/* Recipe language switcher v1 */
.recipe-language-slot{
  position:absolute;
  z-index:20;
  top:30px;
  right:30px;
}

.recipe-language-switcher{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px;
  max-width:100%;
  border:1px solid rgba(126,184,255,.24);
  border-radius:16px;
  background:rgba(5,14,26,.78);
  box-shadow:
    0 14px 34px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.recipe-language-switcher__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:53px;
  min-height:38px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:11px;
  color:#b9c9dc !important;
  background:transparent;
  font-size:12px;
  line-height:1;
  font-weight:900;
  letter-spacing:.04em;
  text-decoration:none !important;
  white-space:nowrap;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.recipe-language-switcher__link:hover{
  color:#fff !important;
  border-color:rgba(126,184,255,.35);
  background:rgba(55,112,196,.18);
  transform:translateY(-1px);
}

.recipe-language-switcher__link.is-active{
  color:#fff !important;
  border-color:rgba(126,184,255,.55);
  background:
    linear-gradient(180deg,rgba(66,132,229,.94),rgba(31,83,170,.96));
  box-shadow:
    0 8px 18px rgba(16,67,153,.28),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.recipe-language-switcher__flag{
  font-size:15px;
  line-height:1;
}

.recipe-language-switcher__code{
  line-height:1;
}

.recipe-language-switcher__link:focus-visible{
  outline:3px solid rgba(125,230,255,.72);
  outline-offset:3px;
}

@media(max-width:760px){
  .recipe-language-slot{
    position:static;
    display:flex;
    justify-content:flex-end;
    width:100%;
    margin:14px 0 20px;
  }

  .recipe-language-switcher{
    width:100%;
    justify-content:space-between;
    border-radius:15px;
  }

  .recipe-language-switcher__link{
    flex:1 1 0;
    min-width:0;
    padding:0 7px;
  }
}

@media(max-width:390px){
  .recipe-language-switcher__link{
    gap:3px;
    padding:0 5px;
    font-size:11px;
  }

  .recipe-language-switcher__flag{
    font-size:14px;
  }
}

@media(prefers-reduced-motion:reduce){
  .recipe-language-switcher__link{
    transition:none;
  }
}
