.tb-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}

.tb-language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 28px;
}

.tb-language-current,
.tb-language-option {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.tb-flag {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(23, 23, 29, .12);
}

.tb-flag-de {
  background: linear-gradient(to bottom, #181818 0 33.333%, #d61f2c 33.333% 66.666%, #f3c623 66.666% 100%);
}

.tb-flag-it {
  background: linear-gradient(to right, #009246 0 33.333%, #ffffff 33.333% 66.666%, #ce2b37 66.666% 100%);
}

.tb-flag-en {
  background: #253374 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23253374'/%3E%3Cpath d='M-8 0L68 60M68 0L-8 60' stroke='%23fff' stroke-width='13'/%3E%3Cpath d='M-8 0L68 60M68 0L-8 60' stroke='%23cf2435' stroke-width='6'/%3E%3Cpath d='M0 30H60M30 0V60' stroke='%23fff' stroke-width='18'/%3E%3Cpath d='M0 30H60M30 0V60' stroke='%23cf2435' stroke-width='10'/%3E%3C/svg%3E") center / cover no-repeat;
}

.tb-language-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line, var(--border, #e9e8ee));
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 23, 29, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.tb-language-control.open .tb-language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tb-language-option[aria-checked="true"] {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px var(--purple, var(--accent, #8670ef));
}

.tb-language-current:focus-visible,
.tb-language-option:focus-visible {
  outline: 2px solid var(--purple, var(--accent, #8670ef));
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .tb-header-actions {
    gap: 7px;
  }

  .tb-language-control,
  .tb-language-current,
  .tb-language-option {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .tb-flag {
    width: 24px;
    height: 24px;
  }
}
