/**
 * Modal zgody na cookies - natywny, bez wtyczki (2026-09-19: zastąpiono
 * Cookie Law Info / CookieYes - wtyczka wymagała połączenia z kontem
 * chmurowym żeby dostosować język/kolory, więc renderowała domyślny,
 * angielski baner niepasujący do marki - patrz feedback_no_unilateral...
 * to nie regres wsteczny, tylko usunięcie zależności od zewnętrznego
 * konta, którego nie mamy). Ta sama architektura co w innych motywach
 * "iab" tej sesji: modal + reopen FAB + focus trap + scroll-lock.
 */
.nowator-cookies { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.nowator-cookies[hidden] { display: none; }
.nowator-cookies__backdrop { position: absolute; inset: 0; background: rgba(16, 13, 43, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.nowator-cookies__card { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--indigo); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(16, 13, 43, .32); padding: 32px; }
.nowator-cookies__title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 0 0 10px; }
.nowator-cookies__desc { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 24px; }
.nowator-cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nowator-cookies__actions .btn { width: 100%; justify-content: center; white-space: nowrap; }
.nowator-cookies__settings { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.nowator-cookies__settings[hidden] { display: none; }
.nowator-cookies__toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.nowator-cookies__toggle small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.nowator-cookies__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.nowator-cookies__more { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--indigo); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.nowator-cookies__more:hover { color: var(--indigo-dark); }
.nowator-cookies__policy { font-size: 14px; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 4px; }
.nowator-cookies__policy:hover { color: var(--ink); }

/* Przełącznik zamiast gołego pola wyboru */
.nowator-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 24px; margin: 0; border-radius: 12px; background: var(--line); border: 0; box-shadow: inset 0 0 0 1px #C9C6DE; cursor: pointer; transition: background .2s ease; }
.nowator-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 13, 43, .3); transition: transform .2s ease; }
.nowator-switch:checked { background: var(--indigo); box-shadow: none; }
.nowator-switch:checked::after { transform: translateX(20px); }
.nowator-switch:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

@media (max-width: 480px) {
	.nowator-cookies { padding: 16px; }
	.nowator-cookies__card { padding: 24px 20px; }
	.nowator-cookies__actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .nowator-switch, .nowator-switch::after { transition: none; } }

.nowator-cookies-reopen { position: fixed; left: 20px; bottom: 20px; z-index: 250; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(49,39,128,.35); cursor: pointer; }
.nowator-cookies-reopen[hidden] { display: none; }
.nowator-cookies-reopen:hover { background: var(--indigo-dark); }

/* Otwarty drawer/modal ofertowy zasłania FAB cookies, żeby się nie przebijał */
body:has(.nowator-cookies:not([hidden])) { overflow: hidden; }
