/* Simple Consent Banner */
.scb[hidden], .scb-reopen[hidden], .scb [hidden] { display: none !important; }

.scb {
	--scb-bg: #ffffff;
	--scb-fg: #1f2937;
	--scb-muted: #6b7280;
	--scb-border: #e5e7eb;
	position: fixed;
	z-index: 2147483000;
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--scb-fg);
	box-sizing: border-box;
}
.scb *, .scb *::before, .scb *::after { box-sizing: border-box; }

.scb--bottom { left: 16px; right: 16px; bottom: 16px; }
.scb--bottom .scb__box { max-width: 1100px; margin: 0 auto; }

.scb--center { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.45); }
.scb--center .scb__box { max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }

.scb__box {
	background: var(--scb-bg);
	border: 1px solid var(--scb-border);
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,.18);
	padding: 20px 22px;
}
.scb__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.scb__text { margin: 0 0 14px; color: var(--scb-muted); }
.scb__text a { color: var(--scb-primary, #1d4ed8); text-decoration: underline; }

.scb__prefs { display: grid; gap: 10px; margin: 0 0 16px; }
.scb__cat {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 10px 12px; border: 1px solid var(--scb-border); border-radius: 8px; cursor: pointer;
}
.scb__cat input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--scb-primary, #1d4ed8); flex: none; }
.scb__cat input:disabled { cursor: not-allowed; }
.scb__cat strong { display: block; }
.scb__cat small { display: block; color: var(--scb-muted); font-size: 13px; }

.scb__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.scb__btn {
	appearance: none; cursor: pointer; font: inherit; font-weight: 600;
	padding: 10px 18px; border-radius: 8px; line-height: 1.2;
	border: 2px solid var(--scb-primary, #1d4ed8);
	background: var(--scb-primary, #1d4ed8); color: #fff;
}
/* „Odrzuć” i „Akceptuj” mają identyczny wygląd – wymóg równorzędności wyboru */
.scb__btn--outline { background: transparent; color: var(--scb-primary, #1d4ed8); }
.scb__btn--link {
	background: none; border-color: transparent; color: var(--scb-fg);
	text-decoration: underline; margin-right: auto; padding-left: 0;
}
.scb__btn:hover { filter: brightness(.92); }
.scb__btn:focus-visible, .scb-reopen:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

.scb-reopen {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147482999;
	width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	border: 0; cursor: pointer; color: #fff;
	background: var(--scb-primary, #1d4ed8);
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

@media (max-width: 600px) {
	.scb--bottom { left: 8px; right: 8px; bottom: 8px; }
	.scb__box { padding: 16px; }
	.scb__actions { flex-direction: column-reverse; align-items: stretch; }
	.scb__btn { width: 100%; }
	.scb__btn--link { margin: 0; text-align: center; padding-left: 18px; }
}

@media (prefers-color-scheme: dark) {
	.scb { --scb-bg: #1f2937; --scb-fg: #f3f4f6; --scb-muted: #d1d5db; --scb-border: #374151; }
}
