.main-header--widgets .kofilm-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  margin-inline-end: 14px;
  flex: 0 0 auto;
  color: #fff;
  white-space: nowrap;
}
.kofilm-language__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 2px;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: .35em;
}
.kofilm-language__link[aria-current="page"], .kofilm-language__link:hover {
  color: #fff;
  text-decoration: underline 2px #e53232;
}
.kofilm-language__link:focus-visible, .kofilm-language-tip :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.kofilm-flag { display: block; width: 14px; height: 10px; border-radius: 1px; }
.kofilm-flag--pl { background: linear-gradient(#fff 50%, #db163f 50%); }
.kofilm-flag--en {
  background:
    linear-gradient(90deg, transparent 39%, #c8102e 39% 61%, transparent 61%),
    linear-gradient(transparent 35%, #c8102e 35% 65%, transparent 65%),
    linear-gradient(90deg, transparent 32%, #fff 32% 68%, transparent 68%),
    linear-gradient(transparent 25%, #fff 25% 75%, transparent 75%),
    linear-gradient(34deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(-34deg, transparent 42%, #fff 42% 58%, transparent 58%), #142b62;
}
.kofilm-language-tip {
  position: fixed;
  inset: auto 16px max(16px, env(safe-area-inset-bottom)) auto;
  z-index: 980;
  max-width: min(335px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid #ffffff36;
  border-radius: 12px;
  background: #27292b;
  color: #fff;
  box-shadow: 0 4px 22px #0005;
  font-size: 13px;
}
.kofilm-language-tip p { margin: 0 0 8px; color: inherit; }
.kofilm-language-tip > div { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.kofilm-language-tip :is(a, button) { padding: 4px 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
body:has(.kfc-consent:not([hidden]), .kfc-settings[open]) .kofilm-language-tip { visibility: hidden; }

@media (max-width: 767px) {
  .main-header--widgets .kofilm-language { margin-inline-end: 8px; gap: 4px; }
  .kofilm-language__link { min-width: 28px; font-size: 11px; }
}
@media (max-width: 400px) {
  .kofilm-flag { display: none; }
}
