/**
 * ZZ Cookies — banner + modal + floating button.
 * Brand: navy #0a2540, accent #f5b301.
 * Zasada RODO: przyciski „Odrzuć" i „Akceptuj" wizualnie równe — nie wymuszamy
 * klikania akceptacji przez większy/kolorowy kontrast.
 */

.zz-ck-root {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #2b3a4d;
}

/* ─ Banner ─────────────────────────────────────────────────────────── */
.zz-ck-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	max-width: 920px;
	margin: 0 auto;
	z-index: 2147483000;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(10, 37, 64, 0.2);
	border-top: 4px solid #f5b301;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .25s, transform .25s;
}
.zz-ck-banner--bottom { bottom: 16px; }
.zz-ck-banner--top    { top: 16px; transform: translateY(-20px); }
.zz-ck-banner--center {
	top: 50%; left: 50%;
	transform: translate(-50%, -50%) scale(.95);
	max-width: 560px;
}
.zz-ck-banner.zz-ck-is-visible { opacity: 1; transform: translateY(0); }
.zz-ck-banner--center.zz-ck-is-visible { transform: translate(-50%, -50%) scale(1); }
.zz-ck-banner.zz-ck-is-hidden { opacity: 0; pointer-events: none; }

.zz-ck-banner__inner { padding: 20px 24px; }
.zz-ck-banner__head { margin-bottom: 16px; }
.zz-ck-banner__title {
	margin: 0 0 8px;
	font-family: Georgia, serif;
	font-size: 1.15rem;
	color: #0a2540;
	font-weight: 700;
}
.zz-ck-banner__text {
	font-size: 14px;
	line-height: 1.6;
	color: #4a5b70;
	margin: 0;
}
.zz-ck-banner__text strong { color: #0a2540; }
.zz-ck-link {
	color: #0a2540;
	text-decoration: underline;
	font-weight: 600;
}
.zz-ck-link:hover { color: #f5b301; }
.zz-ck-banner__buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* ─ Buttons ────────────────────────────────────────────────────────── */
.zz-ck-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all .2s;
	font-family: inherit;
	min-width: 140px;
	text-align: center;
}
.zz-ck-btn--primary {
	background: #0a2540;
	color: #fff;
	border-color: #0a2540;
}
.zz-ck-btn--primary:hover {
	background: #f5b301;
	border-color: #f5b301;
	color: #0a2540;
}
.zz-ck-btn--ghost {
	background: transparent;
	color: #0a2540;
	border-color: #d0d5db;
}
.zz-ck-btn--ghost:hover {
	border-color: #0a2540;
	background: #f6f0e3;
}

/* ─ Modal ──────────────────────────────────────────────────────────── */
.zz-ck-modal-backdrop {
	position: fixed; inset: 0;
	background: rgba(10, 37, 64, 0.5);
	z-index: 2147483100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .25s;
}
.zz-ck-modal-backdrop.zz-ck-is-visible { opacity: 1; }
.zz-ck-modal {
	background: #fff;
	border-radius: 14px;
	max-width: 620px;
	width: 100%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(.95);
	transition: transform .25s;
}
.zz-ck-modal-backdrop.zz-ck-is-visible .zz-ck-modal { transform: scale(1); }
.zz-ck-modal__head {
	padding: 20px 24px;
	border-bottom: 1px solid #e0e2e6;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}
.zz-ck-modal__title {
	margin: 0;
	font-family: Georgia, serif;
	font-size: 1.3rem;
	color: #0a2540;
	font-weight: 700;
}
.zz-ck-modal__close {
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #4a5b70;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: background .2s;
}
.zz-ck-modal__close:hover { background: #f6f0e3; color: #0a2540; }
.zz-ck-modal__body {
	padding: 20px 24px;
	overflow-y: auto;
	flex: 1;
}

/* ─ Kategorie w modalu ─────────────────────────────────────────────── */
.zz-ck-cat {
	padding: 16px;
	background: #fafbfc;
	border-radius: 10px;
	margin-bottom: 12px;
}
.zz-ck-cat:last-child { margin-bottom: 0; }
.zz-ck-cat__label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 700;
	color: #0a2540;
	font-size: 15px;
	margin-bottom: 8px;
}
.zz-ck-cat__cb {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 24px;
	background: #cbd0d6;
	border-radius: 12px;
	position: relative;
	cursor: pointer;
	transition: background .2s;
	flex-shrink: 0;
	border: none;
	margin: 0;
}
.zz-ck-cat__cb::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
}
.zz-ck-cat__cb:checked { background: #0a2540; }
.zz-ck-cat__cb:checked::before { transform: translateX(20px); }
.zz-ck-cat__cb:disabled { opacity: 0.6; cursor: not-allowed; }
.zz-ck-cat__cb:disabled:checked { background: #4a5b70; }
.zz-ck-cat__title small {
	color: #4a5b70;
	font-weight: 400;
	font-size: 12px;
	margin-left: 4px;
}
.zz-ck-cat__desc {
	font-size: 13px;
	color: #4a5b70;
	line-height: 1.5;
	padding-left: 54px;
}

.zz-ck-modal__foot {
	padding: 16px 24px;
	border-top: 1px solid #e0e2e6;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	flex-wrap: wrap;
	flex-shrink: 0;
}

/* ─ Floating button (po akceptacji) ───────────────────────────────── */
.zz-ck-floatbtn {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 2147482000;
	background: #fff;
	color: #0a2540;
	border: 1px solid #d0d5db;
	border-radius: 24px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(10, 37, 64, 0.1);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s;
	font-family: inherit;
}
.zz-ck-floatbtn.zz-ck-is-visible { opacity: 0.85; transform: translateY(0); }
.zz-ck-floatbtn:hover {
	opacity: 1;
	border-color: #f5b301;
	color: #0a2540;
}

/* ─ Scroll lock gdy modal otwarty ─────────────────────────────────── */
body.zz-ck-modal-open { overflow: hidden; }

/* ─ Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.zz-ck-banner {
		left: 8px; right: 8px;
		border-radius: 10px;
	}
	.zz-ck-banner--bottom { bottom: 8px; }
	.zz-ck-banner__inner { padding: 16px; }
	.zz-ck-banner__title { font-size: 1rem; }
	.zz-ck-banner__text { font-size: 13px; }
	.zz-ck-banner__buttons { flex-direction: column; }
	.zz-ck-btn { width: 100%; min-width: 0; padding: 12px; }
	.zz-ck-modal {
		max-height: 92vh;
		border-radius: 10px;
	}
	.zz-ck-modal__body { padding: 14px 16px; }
	.zz-ck-modal__head,
	.zz-ck-modal__foot { padding: 14px 16px; }
	.zz-ck-modal__foot { flex-direction: column; }
	.zz-ck-cat__desc { padding-left: 0; margin-top: 4px; }
	.zz-ck-floatbtn { bottom: 10px; left: 10px; font-size: 11px; padding: 6px 10px; }
}

/* ─ Print ─────────────────────────────────────────────────────────── */
@media print {
	.zz-ck-root, .zz-ck-banner, .zz-ck-modal-backdrop, .zz-ck-floatbtn { display: none !important; }
}
