.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 2px;
  border: 1px solid #554f6c;
  border-radius: 99px;
  background: #242036;
}
.language-switch a, .language-switch span,
.customer .bar .language-switch a {
  display: grid;
  width: 36px;
  height: 34px;
  place-items: center;
  border-radius: 99px;
  color: #ded8f2;
  font: 600 12px/1 system-ui, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
}
.language-switch [aria-current] {
  color: #211b37;
  background: #c4baff;
}
.language-switch a:hover, .language-switch a:focus-visible { background: #464059; }
.language-switch a:focus-visible { outline: 2px solid white; outline-offset: 2px; }
/* Match the live radio selection without requiring JavaScript or submitting checkout. */
.language-switch .language-plan { display: none; }
body:has(#checkout input[value="7"]:checked) .language-switch .language-default,
body:has(#checkout input[value="30"]:checked) .language-switch .language-default,
body:has(#checkout input[value="365"]:checked) .language-switch .language-default { display: none; }
body:has(#checkout input[value="7"]:checked) .language-switch .lang-7,
body:has(#checkout input[value="30"]:checked) .language-switch .lang-30,
body:has(#checkout input[value="365"]:checked) .language-switch .lang-365 { display: grid; }

@media (max-width: 500px) {
  .header-actions { gap: 7px; }
  .mast .cabinet { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .mast .cabinet span {
    position: absolute; width: 1px; height: 1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
  }
  .customer .header-actions { margin-left: auto; }
  .customer .header-actions nav { gap: 8px; }
}
@media (max-width: 380px) {
  .customer .bar { gap: 5px; }
  .customer .bar .cabinet-brand { gap: 5px; font-size: 15px; }
  .customer .bar .cabinet-brand img { width: 25px; height: 25px; }
  .customer .header-actions nav a { font-size: 12px; }
  .customer .language-switch a, .customer .language-switch span, .customer .bar .language-switch a { width: 30px; }
}
