.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.kb-lang-topbar {
  position: relative;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 6px;
  width: min(1240px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 0;
  background: rgba(255, 251, 246, 0.96);
  box-shadow: none;
}

.kb-lang-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(176, 143, 90, 0.32);
  border-radius: 999px;
  background: #fffaf2;
  color: #241d17;
  font: 800 12px/1 Arial, sans-serif;
  text-decoration: none;
}

.kb-lang-topbar a.is-active {
  background: #1f170f;
  color: #fff;
}

.kb-flag {
  width: 18px;
  height: 12px;
  flex: none;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.kb-flag--hu { background: linear-gradient(#ce2939 0 33%, #fff 33% 66%, #477050 66%); }
.kb-flag--en { background: linear-gradient(90deg, #012169 0 100%); position: relative; }
.kb-flag--en::before { content: ""; display: block; height: 100%; background: linear-gradient(90deg, transparent 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%), linear-gradient(transparent 32%, #fff 32% 42%, #c8102e 42% 58%, #fff 58% 68%, transparent 68%); }
.kb-flag--de { background: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%); }
.kb-flag--sr { background: linear-gradient(#c6363c 0 33%, #0c4076 33% 66%, #fff 66%); }
.kb-flag--ro { background: linear-gradient(90deg, #002b7f 0 33%, #fcd116 33% 66%, #ce1126 66%); }
.kb-flag--sk { background: linear-gradient(#fff 0 33%, #0b4ea2 33% 66%, #ee1c25 66%); }
.kb-flag--hr { background: linear-gradient(#f00 0 33%, #fff 33% 66%, #171796 66%); }

.language-switcher__link {
  min-width: 46px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(176, 143, 90, 0.28);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.82);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(36, 29, 23, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

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

.language-switcher__link:hover,
.language-switcher__link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(176, 143, 90, 0.66);
  background: #fffaf2;
  outline: none;
}

.language-switcher__link.is-active {
  border-color: #b08f5a;
  background: #1f170f;
  color: #fff;
}

.site-header-bar .language-switcher {
  margin-left: auto;
}

.site-header-bar .language-switcher + .social-links,
.site-header-bar .social-links + .language-switcher {
  margin-left: 8px;
}

.header .language-switcher {
  justify-content: center;
  margin-top: 14px;
}

.header .language-switcher__link {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  box-shadow: none;
}

.header .language-switcher__link.is-active {
  background: #fff;
  color: #111;
}

.language-switcher--floating {
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 2147483000;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  box-shadow: 0 10px 24px rgba(36, 29, 23, 0.16);
  justify-content: flex-end;
}

.goog-te-banner-frame,
.goog-te-gadget,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 820px) {
  .site-header-bar .language-switcher {
    order: 4;
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
  }

  .site-header-bar .language-switcher--floating,
  .language-switcher--floating {
    width: auto;
    justify-content: flex-end;
    margin: 0;
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
  }
}
