/* OVTIS: pasek zgody na cookies (zgoda.js). Wszystko pod #ovtis-zgoda i z prefiksem ovz-, z własnym resetem,
   bo ten sam plik ładują strony o zupełnie różnych stylach. */
#ovtis-zgoda, #ovtis-zgoda *, #ovtis-zgoda *::before, #ovtis-zgoda *::after { all: unset; box-sizing: border-box; }
#ovtis-zgoda {
  display: block;
  font: 400 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #F2F4FA; letter-spacing: normal; text-align: left; text-transform: none; word-spacing: normal;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
#ovtis-zgoda p, #ovtis-zgoda h2, #ovtis-zgoda div, #ovtis-zgoda section { display: block; }
#ovtis-zgoda span { display: inline; }
#ovtis-zgoda :focus-visible { outline: 2px solid #7AAEFF; outline-offset: 2px; }

/* Pasek na dole ekranu */
#ovtis-zgoda .ovz-bar {
  display: none; position: fixed; z-index: 2147483600; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px));
  margin: 0 auto; max-width: 980px; padding: 16px 18px; border-radius: 16px;
  background: #0F1424; color: #F2F4FA; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 50px rgba(0, 0, 0, .45);
  align-items: center; gap: 12px 20px; flex-wrap: wrap;
}
#ovtis-zgoda .ovz-bar.ovz-on { display: flex; animation: ovz-in .35s cubic-bezier(.2, .7, .1, 1) both; }
#ovtis-zgoda .ovz-bar:focus { outline: none; }
#ovtis-zgoda .ovz-bar:focus-visible { outline: 2px solid #7AAEFF; outline-offset: 2px; }
#ovtis-zgoda .ovz-bar > .ovz-txt { flex: 1 1 320px; }
#ovtis-zgoda .ovz-txt { margin: 0; font-size: 14px; line-height: 1.5; color: #C9CEDA; }
#ovtis-zgoda .ovz-small { font-size: 13px; }
#ovtis-zgoda .ovz-a { color: #9FC2FF; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
#ovtis-zgoda .ovz-a:hover { color: #fff; }

/* Trzy przyciski o tej samej wadze */
#ovtis-zgoda .ovz-btns { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
#ovtis-zgoda .ovz-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 44px; padding: 10px 16px;
  border-radius: 10px; background: #1C2440; color: #fff; box-shadow: inset 0 0 0 1px #3A4670;
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center; white-space: nowrap; cursor: pointer; user-select: none; transition: background .2s, box-shadow .2s;
}
#ovtis-zgoda .ovz-btn:hover { background: #2F6BFF; box-shadow: inset 0 0 0 1px #2F6BFF; }

/* Okno ustawień */
#ovtis-zgoda .ovz-ov {
  display: none; position: fixed; z-index: 2147483640; inset: 0; padding: 8px;
  background: rgba(4, 6, 12, .62); align-items: center; justify-content: center;
}
#ovtis-zgoda .ovz-ov.ovz-on { display: flex; animation: ovz-fade .25s ease both; }
#ovtis-zgoda .ovz-dlg {
  display: block; position: relative; width: 100%; max-width: 520px; max-height: 100%; overflow: auto; overscroll-behavior: contain;
  padding: 22px 20px 18px; border-radius: 18px; background: #0F1424; color: #F2F4FA;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 80px rgba(0, 0, 0, .55);
}
#ovtis-zgoda .ovz-dlg:focus { outline: none; }
#ovtis-zgoda .ovz-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
#ovtis-zgoda .ovz-h { font: 700 20px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #fff; }
#ovtis-zgoda .ovz-x {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  color: #C9CEDA; font: 400 26px/1 system-ui, sans-serif; cursor: pointer;
}
#ovtis-zgoda .ovz-x:hover { background: #1C2440; color: #fff; }
#ovtis-zgoda .ovz-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #252E4D; }
#ovtis-zgoda .ovz-dlg > .ovz-txt { margin-bottom: 10px; }
#ovtis-zgoda .ovz-rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#ovtis-zgoda .ovz-rh { display: block; font-weight: 600; color: #fff; }
#ovtis-zgoda .ovz-rd { display: block; font-size: 13px; color: #A9B0C2; }
#ovtis-zgoda .ovz-dlg .ovz-btns { margin-top: 10px; padding-top: 16px; border-top: 1px solid #252E4D; }
#ovtis-zgoda .ovz-dlg .ovz-small { margin-top: 12px; }

/* Przełącznik */
#ovtis-zgoda .ovz-sw {
  display: inline-block; position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px;
  background: #3A4670; cursor: pointer; transition: background .2s;
}
#ovtis-zgoda .ovz-knob {
  display: block; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s;
}
#ovtis-zgoda .ovz-sw[aria-checked="true"] { background: #2F6BFF; }
#ovtis-zgoda .ovz-sw[aria-checked="true"] .ovz-knob { transform: translateX(20px); }
#ovtis-zgoda .ovz-sw[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

@keyframes ovz-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ovz-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 560px) {
  #ovtis-zgoda .ovz-bar { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom, 0px)); padding: 14px; }
  #ovtis-zgoda .ovz-bar > .ovz-txt { flex-basis: 100%; }
  #ovtis-zgoda .ovz-btn { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #ovtis-zgoda .ovz-bar.ovz-on, #ovtis-zgoda .ovz-ov.ovz-on { animation: none; }
  #ovtis-zgoda .ovz-btn, #ovtis-zgoda .ovz-sw, #ovtis-zgoda .ovz-knob { transition: none; }
}
@media print { #ovtis-zgoda { display: none; } }

/* Strona główna: „Ustawienia cookies” w stopce wygląda jak sąsiednie linki */
.foot__links button[data-zgoda-ustawienia] { all: unset; color: #A9B0C2; cursor: pointer; }
.foot__links button[data-zgoda-ustawienia]:hover { color: #fff; }
.foot__links button[data-zgoda-ustawienia]:focus-visible { outline: 2px solid #4D8DFF; outline-offset: 3px; border-radius: 6px; }
