/* ==========================================================================
   NOWY BANER ZGODY (18.10.2026, inc/pomiar.php, flaga AH_BANER_NOWY / podglad ?baner=nowy, w ?wow=1 sam).
   Wzorzec: IKEA PL (Akceptuj i Odrzuc tej samej wielkosci - roznica tylko w wypelnieniu) + LEGO PL (ciemny niski pasek przy dole).
   Komputer: jeden niski pasek, zdanie po lewej, przyciski w rzedzie po prawej. Telefon: dolny arkusz ~1/5 ekranu, 2 przyciski obok siebie,
   „Ustawienia” jako link pod spodem; ustawienia rozwijaja sie w tym samym arkuszu (przelaczniki). Ciemny w obu wariantach strony.
   Strony nie blokuje (bez zaciemnienia tla, bez blokady przewijania). Opis do przenoszenia: autohit/baner-cookies-wzorzec.md
   ========================================================================== */
.ah-zg { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; max-height: 85vh; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain;
	background: #141414; color: #fff; border-top: 1px solid #2e2e2e; box-shadow: 0 -12px 40px rgba(0, 0, 0, .35); animation: ah-zg-wjazd .35s cubic-bezier(.2, .7, .2, 1); }
.ah-zg[hidden] { display: none; }
@keyframes ah-zg-wjazd { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ah-zg { animation: none; } }
.ah-zg__in { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ah-zg__p { flex: 1 1 340px; margin: 0; font: 400 15px/1.45 var(--l); color: #e6e6e6; }
.ah-zg__p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ah-zg__akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ah-zg__b { min-width: 136px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff;
	font: 600 15px/1.2 var(--p); white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.ah-zg__b:hover { background: rgba(255, 255, 255, .1); }
.ah-zg__b--tak { background: var(--pom); color: #000; box-shadow: inset 0 0 0 1.5px var(--pom); }
.ah-zg__b--tak:hover { background: #ff9d2e; }
.ah-zg__ust { min-height: 44px; padding: 0 6px; border: 0; background: none; color: #fff; font: 600 15px/1 var(--l); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ah-zg :focus-visible { outline: 2px solid var(--pom); outline-offset: 3px; }
.ah-zg__b--tak:focus-visible { outline-color: #fff; }

/* Ustawienia (rozwijane w tym samym pasku) */
.ah-zg__opcje { flex: 1 0 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ah-zg__opcje[hidden] { display: none; }
.ah-zg__op { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 14px; border: 1px solid #2e2e2e; border-radius: 10px; cursor: pointer; }
.ah-zg__op.is-stala { cursor: default; }
.ah-zg__op-t { display: grid; gap: 2px; }
.ah-zg__op-t b { font: 700 15px/1.25 var(--p); color: #fff; }
.ah-zg__op-t small { font: 400 13px/1.35 var(--l); color: #bdbdbd; }
.ah-zg__op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ah-zg__sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #5a5a5a; transition: background-color .15s; }
.ah-zg__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ah-zg__op input:checked + .ah-zg__sw { background: var(--pom); }
.ah-zg__op input:checked + .ah-zg__sw::after { transform: translateX(18px); }
.ah-zg__op input:disabled + .ah-zg__sw { opacity: .55; }
.ah-zg__op input:focus-visible + .ah-zg__sw { outline: 2px solid var(--pom); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ah-zg__sw, .ah-zg__sw::after { transition: none; } }
.ah-zg__opcje:not([hidden]) ~ .ah-zg__akcje { margin-left: auto; }

/* Telefon: dolny arkusz */
@media (max-width: 599px) {
	.ah-zg { border-radius: 16px 16px 0 0; }
	.ah-zg__in { width: calc(100% - 32px); padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
	.ah-zg__p { flex-basis: 100%; font-size: 14px; }
	.ah-zg__akcje { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
	.ah-zg__b { min-width: 0; padding: 0 10px; }
	.ah-zg__b--zapisz { grid-column: 1 / -1; }
	.ah-zg__ust { grid-column: 1 / -1; justify-self: center; min-height: 36px; font-size: 14px; }
	.ah-zg__opcje { grid-template-columns: 1fr; gap: 8px; }
	.ah-zg__op { min-height: 52px; }
	.ah-zg__opcje:not([hidden]) ~ .ah-zg__akcje { margin-left: 0; }
}
@media (min-width: 600px) and (max-width: 999px) { .ah-zg__opcje { grid-template-columns: 1fr; } }

/* Do czasu decyzji: hero wow na telefonie dostaje odstep na wysokosc arkusza (tytul i glowny przycisk nie sa zasloniete) */
@media (max-width: 899px) { body.ah-z-zgoda .ah-wh .ah-hero__in { padding-bottom: calc(var(--ah-zg-h, 0px) + 16px); } }
@media (max-width: 599px) { body.ah-z-zgoda .ah-ha__tx { padding-bottom: calc(var(--ah-zg-h, 0px) + 20px); } } /* komputer: stały zapas w hero-wow.css (bez skoku przy pokazaniu banera) */
@media (max-width: 759px) { body.ah-z-zgoda .ah-hb__pas { bottom: var(--ah-zg-h, 0px); } }

/* ==========================================================================
   v3 KARTA MARKI (20.10.2026, wybrana przez Danusie z 3 wariantow - „C”): czarna karta z pomaranczowa linia u gory, naglowek „Cookies”
   + jedno zdanie, male przyciski (36 px, 14 px - ciszej niz CTA strony), Akceptuję i Odrzuć rownej wielkosci, „Ustawienia” jako link.
   Komputer: lewy dolny rog, 360 px. Telefon: plywajaca karta 12 px od krawedzi. Dolny pasek „Zadzwoń / Zapytaj o wycenę” schowany,
   dopoki baner jest widoczny. Logika zgody (pomiar.js) bez zmian.
   ========================================================================== */
.ah-zg { left: 20px; right: auto; bottom: 20px; width: 360px; max-width: calc(100% - 24px); border: 1px solid #262626; border-top: 3px solid var(--pom); border-radius: 12px;
	background: #0b0b0b; box-shadow: 0 18px 48px rgba(0, 0, 0, .55); animation: ah-zg-c .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes ah-zg-c { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ah-zg { animation: none; } }
.ah-zg__in { width: auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; padding: 14px 16px; }
.ah-zg__t { margin: 0; font: 700 17px/1.2 var(--p); color: #fff; }
.ah-zg__p { flex: none; font-size: 14px; line-height: 1.4; color: #d9d9d9; }
.ah-zg__p a { font-weight: 600; }
.ah-zg__akcje { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.ah-zg__b { min-width: 0; min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.ah-zg__b--zapisz { grid-column: 1 / -1; }
.ah-zg__ust { grid-column: auto; justify-self: center; min-height: 36px; padding: 0 4px; font: 600 13px/1 var(--l); color: #d9d9d9; }
.ah-zg__ust[hidden] { display: none; }
.ah-zg__opcje { grid-template-columns: 1fr !important; gap: 8px; }
.ah-zg__op { min-height: 50px; }
.ah-zg__opcje:not([hidden]) ~ .ah-zg__akcje { margin-left: 0; }
body.ah-z-zgoda .ah-dolny-pasek { display: none !important; }
@media (min-width: 760px) and (max-width: 1279px) { body.ah-z-zgoda .ah-ha__tx { padding-bottom: 104px !important; } }
@media (max-width: 759px) {
	.ah-zg { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; border-radius: 12px; }
	.ah-zg__in { width: auto; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
	.ah-zg__akcje { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
@media (max-width: 599px) {
	.ah-zg__ust { grid-column: auto; justify-self: center; min-height: 36px; font-size: 13px; }
	body.ah-z-zgoda .ah-ha__tx { padding-bottom: calc(var(--ah-zg-h, 0px) + 28px) !important; }
}
