/* =====================================================
   Alpax Consent — baner zgód cookie
   ===================================================== */

#alpax-consent {
	--axc-dark: #141c22;
	--axc-dark-2: #0e1418;
	--axc-text: #f2f5f7;
	--axc-muted: #9fb0bc;
	--axc-accent: #c9a24b;
	--axc-accent-2: #e4c87f;
	--axc-radius: 16px;
	font-size: 15px;
	line-height: 1.55;
}

/* ---------- Warstwa 1: baner ---------- */

.axc-banner {
	position: fixed;
	inset: auto 16px 16px 16px;
	z-index: 99998;
	display: flex;
	justify-content: center;
	animation: axc-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes axc-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

.axc-banner__inner {
	max-width: 760px;
	background: var(--axc-dark);
	color: var(--axc-text);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--axc-radius);
	box-shadow: 0 24px 60px rgba(8, 12, 16, 0.45);
	padding: 22px 26px;
}

.axc-banner__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.axc-banner__text {
	margin: 0 0 16px;
	color: var(--axc-muted);
	font-size: 14px;
}

.axc-banner__text a {
	color: var(--axc-accent-2);
	text-decoration: underline;
}

.axc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- Przyciski ---------- */

.axc-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 12px 24px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	font-family: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.axc-btn:hover { transform: translateY(-2px); }
.axc-btn:focus-visible { outline: 2px solid var(--axc-accent-2); outline-offset: 2px; }

.axc-btn--primary {
	background: linear-gradient(120deg, var(--axc-accent), var(--axc-accent-2));
	color: #17130a;
	box-shadow: 0 8px 22px rgba(201, 162, 75, 0.35);
}

/* "Nur notwendige" — celowo ta sama ranga wizualna co akceptacja (wymóg DE). */
.axc-btn--secondary {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: var(--axc-text);
}

.axc-btn--secondary:hover { border-color: var(--axc-accent-2); color: var(--axc-accent-2); }

.axc-btn--ghost {
	background: transparent;
	color: var(--axc-muted);
	text-decoration: underline;
	padding-inline: 10px;
}

.axc-btn--ghost:hover { color: var(--axc-accent-2); }

/* ---------- Warstwa 2: modal ustawień ---------- */

.axc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.axc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 18, 0.65);
	backdrop-filter: blur(4px);
}

.axc-modal__card {
	position: relative;
	width: min(560px, 100%);
	max-height: min(86vh, 720px);
	overflow-y: auto;
	background: var(--axc-dark);
	color: var(--axc-text);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--axc-radius);
	box-shadow: 0 30px 80px rgba(8, 12, 16, 0.55);
	padding: 26px 28px;
	animation: axc-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.axc-modal__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	color: #fff;
}

.axc-modal__text {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--axc-muted);
}

.axc-modal__text a { color: var(--axc-accent-2); }

.axc-cat {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	padding: 14px 16px;
	margin-bottom: 10px;
}

.axc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.axc-cat__name { font-weight: 700; color: #fff; }

.axc-cat__always {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--axc-accent-2);
}

.axc-cat__desc {
	margin: 8px 0 0;
	font-size: 13.5px;
	color: var(--axc-muted);
}

/* ---------- Przełączniki ---------- */

.axc-switch { position: relative; display: inline-block; }

.axc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.axc-switch__track {
	display: block;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	transition: background 0.25s ease;
	pointer-events: none;
}

.axc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.25s ease;
}

.axc-switch input:checked + .axc-switch__track {
	background: linear-gradient(120deg, var(--axc-accent), var(--axc-accent-2));
}

.axc-switch input:checked + .axc-switch__track::after { transform: translateX(20px); }
.axc-switch input:focus-visible + .axc-switch__track { outline: 2px solid var(--axc-accent-2); outline-offset: 2px; }

.axc-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

/* ---------- Przycisk ponownego otwarcia ---------- */

.axc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99997;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	background: var(--axc-dark);
	color: var(--axc-accent-2);
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(8, 12, 16, 0.4);
	transition: transform 0.2s ease, color 0.2s ease;
}

.axc-reopen:hover { transform: scale(1.08); color: #fff; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 560px) {
	.axc-banner { inset: auto 8px 8px 8px; }
	.axc-banner__inner { padding: 18px; }
	.axc-btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.axc-banner, .axc-modal__card { animation: none; }
	.axc-btn, .axc-switch__track, .axc-switch__track::after, .axc-reopen { transition: none; }
}
