/* Baner zgody cookies (Consent Mode v2) — modal centralny, kolory dombal.
   Zmiana s.30 (2026-07-25): z paska na dole na modal blokujacy na srodku
   (decyzja Grzegorza — wzor CookieBot). #cookie-banner = overlay,
   .cookie-modal = okno dialogowe. */
#cookie-banner {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: Roboto, Arial, sans-serif; line-height: 1.5;
  overscroll-behavior: contain;
}
#cookie-banner[hidden] { display: none; }

.cookie-modal {
  outline: none;  /* focus siada na oknie (a11y), ale go nie obrysowujemy */
  background: #fff; border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 26px 28px;
  font-size: 15px; color: #3a3a3a;
}
/* nie <h2> — nagłówek w DOM na końcu body psułby kolejność nagłówków strony
   (axe: heading-order); dialog etykietuje się przez aria-labelledby */
.cookie-tytul {
  margin: 0 0 12px; font-size: 19px; font-weight: 700; color: #2f2f2f;
}
.cookie-modal p { margin: 0 0 18px; }
.cookie-modal a { color: #56652e; text-decoration: underline; }

.cookie-banner-akcje { display: flex; gap: 12px; }
.cookie-btn {
  cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 18px; border-radius: 4px; border: 2px solid #56652e;
  background: #fff; color: #46521f;
  flex: 1 1 0; min-width: 0;
}
.cookie-btn:hover { background: #f2f4ea; }
/* Odrzuć i Akceptuj: ta sama wielkość, waga i ranga w rzędzie —
   wymóg równorzędności wyboru (wytyczne EROD/UODO, art. 7 ust. 3 RODO) */
.cookie-btn--marka { background: #56652e; color: #fff; }
.cookie-btn--marka:hover { background: #465423; }
.cookie-btn:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

.cookie-btn--tekst {
  display: block; margin: 16px auto 0; flex: none; width: auto;
  background: none; border: none; text-decoration: underline;
  color: #5a5a5a; font-weight: 400; font-size: 14px; padding: 6px 4px;
}
.cookie-btn--tekst:hover { background: none; color: #3a3a3a; }

.cookie-banner-panel {
  display: none; border-top: 1px solid #e3e3e3; margin-top: 16px; padding-top: 16px;
}
.cookie-banner-panel.otwarty { display: block; }
.cookie-banner-panel label {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; text-align: left;
}
.cookie-banner-panel .cookie-btn { margin-top: 14px; }

#cookies-baner-open { cursor: pointer; }
/* blokada tła, gdy modal otwarty — ustawiana z JS na <html> */
html.cookie-modal-otwarty { overflow: hidden; }

@media only screen and (max-width: 640px) {
  #cookie-banner { padding: 12px; align-items: flex-end; }
  .cookie-modal { padding: 20px 18px; max-height: calc(100vh - 24px); }
  .cookie-banner-akcje { flex-direction: column; }
}
