/* ==========================================================================
   COOKIE CONSENT — baner + modal ustawień (RODO / ePrivacy)
   Spójne z motywem: granat #1e2d3b, niebieski #0297f1, Oxanium.
   ========================================================================== */

.kanwa-cc { box-sizing: border-box; }
.kanwa-cc *, .kanwa-cc *::before, .kanwa-cc *::after { box-sizing: border-box; }
.kanwa-cc[hidden] { display: none !important; }

/* --- Baner (pierwsza warstwa) --- */
.kanwa-cc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	max-width: 1180px;
	margin: 0 auto;
	background: #1e2d3b;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
	padding: 22px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.kanwa-cc-banner__text { flex: 1 1 420px; min-width: 260px; }
.kanwa-cc-banner__title {
	font-family: "Oxanium", sans-serif;
	font-weight: 700;
	font-size: 18px;
	margin: 0 0 6px;
	color: #fff;
}
.kanwa-cc-banner__desc { font-family: "Lexend Deca", sans-serif; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .82); margin: 0; }
.kanwa-cc-banner__desc a { color: #4bb4f5; text-decoration: underline; }
.kanwa-cc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* --- Przyciski --- */
.kanwa-cc-btn {
	font-family: "Oxanium", sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .02em;
	padding: 12px 20px;
	border-radius: 6px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	line-height: 1;
}
.kanwa-cc-btn--primary { background: #0297f1; color: #fff; }
.kanwa-cc-btn--primary:hover { background: #0079c2; }
.kanwa-cc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.kanwa-cc-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.kanwa-cc-btn--link { background: transparent; color: rgba(255, 255, 255, .85); border: 0; text-decoration: underline; padding: 12px 8px; }
.kanwa-cc-btn--link:hover { color: #fff; }

/* --- Modal ustawień (druga warstwa) --- */
.kanwa-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(12, 21, 29, .6);
	backdrop-filter: blur(2px);
}
.kanwa-cc-modal__box {
	width: 100%;
	max-width: 640px;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	color: #1e2d3b;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
	padding: 32px;
}
.kanwa-cc-modal__title { font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 24px; margin: 0 0 8px; color: #1e2d3b; }
.kanwa-cc-modal__intro { font-family: "Lexend Deca", sans-serif; font-size: 14px; line-height: 1.6; color: #404040; margin: 0 0 20px; }

.kanwa-cc-cat {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 12px;
}
.kanwa-cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kanwa-cc-cat__name { font-family: "Oxanium", sans-serif; font-weight: 700; font-size: 16px; color: #1e2d3b; }
.kanwa-cc-cat__desc { font-family: "Lexend Deca", sans-serif; font-size: 13.5px; line-height: 1.55; color: #525252; margin: 8px 0 0; }
.kanwa-cc-cat__fixed { font-family: "Oxanium", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; color: #0297f1; letter-spacing: .02em; }

/* Przełącznik (switch) */
.kanwa-cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 46px; }
.kanwa-cc-switch input { opacity: 0; width: 0; height: 0; }
.kanwa-cc-switch__slider { position: absolute; inset: 0; background: #cfd6dd; border-radius: 999px; transition: background-color .2s; }
.kanwa-cc-switch__slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.kanwa-cc-switch input:checked + .kanwa-cc-switch__slider { background: #0297f1; }
.kanwa-cc-switch input:checked + .kanwa-cc-switch__slider::before { transform: translateX(20px); }
.kanwa-cc-switch input:focus-visible + .kanwa-cc-switch__slider { outline: 2px solid #0079c2; outline-offset: 2px; }

.kanwa-cc-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.kanwa-cc-modal .kanwa-cc-btn--ghost { color: #1e2d3b; border-color: #cfd6dd; }
.kanwa-cc-modal .kanwa-cc-btn--ghost:hover { border-color: #1e2d3b; background: rgba(30, 45, 59, .05); }
.kanwa-cc-modal .kanwa-cc-btn--link { color: #525252; }
.kanwa-cc-modal .kanwa-cc-btn--link:hover { color: #1e2d3b; }

@media (max-width: 640px) {
	.kanwa-cc-banner { padding: 18px; gap: 16px; }
	.kanwa-cc-banner__actions { width: 100%; }
	.kanwa-cc-banner__actions .kanwa-cc-btn--primary,
	.kanwa-cc-banner__actions .kanwa-cc-btn--ghost { flex: 1 1 auto; text-align: center; }
	.kanwa-cc-modal__box { padding: 22px; }
	.kanwa-cc-modal__actions .kanwa-cc-btn { flex: 1 1 auto; text-align: center; }
}
