/* RODO Cookie Consent — baner zgodny z RODO / ePrivacy */

.rodo-cc {
	--rodo-cc-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--rodo-cc-radius: 12px;
	--rodo-cc-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	font-family: var(--rodo-cc-font);
}

.rodo-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.35);
}

.rodo-cc-overlay[hidden] {
	display: none !important;
}

.rodo-cc-dialog {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	justify-content: center;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
}

.rodo-cc-dialog[hidden] {
	display: none !important;
}

.rodo-cc-dialog__inner {
	pointer-events: auto;
	width: 100%;
	max-width: 720px;
	max-height: min(85vh, 640px);
	overflow: auto;
	padding: 22px 24px 24px;
	border-radius: var(--rodo-cc-radius);
	background: var(--rodo-cc-banner-bg, #fff);
	color: var(--rodo-cc-banner-text, #1a1a2e);
	box-shadow: var(--rodo-cc-shadow);
	border: 1px solid rgba(0, 0, 0, 0.08);
	-webkit-overflow-scrolling: touch;
}

.rodo-cc-dialog__title {
	margin: 0 0 12px;
	font-size: clamp(1.15rem, 4vw, 1.35rem);
	font-weight: 700;
	line-height: 1.25;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rodo-cc-dialog__icon {
	font-size: 1.25em;
}

.rodo-cc-dialog__text {
	margin: 0 0 14px;
	font-size: clamp(0.875rem, 3.2vw, 0.95rem);
	line-height: 1.55;
}

.rodo-cc-policy-links {
	margin: 0 0 16px;
	font-size: 0.875rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.rodo-cc-policy-links a {
	color: var(--rodo-cc-link, #2563eb);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rodo-cc-policy-links a:hover {
	opacity: 0.85;
}

.rodo-cc-policy-links__sep {
	opacity: 0.45;
}

/* Trzy równorzędne przyciski — ta sama waga wizualna */
.rodo-cc-dialog__actions--triple {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.rodo-cc-dialog__actions--panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.rodo-cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 8px;
	border: 2px solid transparent;
	font-family: inherit;
	font-size: clamp(0.8rem, 2.8vw, 0.9rem);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: filter 0.15s, opacity 0.15s;
}

.rodo-cc-btn:focus-visible {
	outline: 2px solid var(--rodo-cc-link, #2563eb);
	outline-offset: 2px;
}

.rodo-cc-btn--accept {
	background: var(--rodo-cc-btn-accept-bg, #1a1a2e);
	color: var(--rodo-cc-btn-accept-text, #fff);
	border-color: var(--rodo-cc-btn-accept-bg, #1a1a2e);
}

.rodo-cc-btn--reject {
	background: var(--rodo-cc-btn-reject-bg, #fff);
	color: var(--rodo-cc-btn-reject-text, #1a1a2e);
	border-color: var(--rodo-cc-btn-reject-border, #1a1a2e);
}

.rodo-cc-btn--customize {
	background: var(--rodo-cc-btn-customize-bg, #f3f4f6);
	color: var(--rodo-cc-btn-customize-text, #1a1a2e);
	border-color: var(--rodo-cc-btn-customize-bg, #f3f4f6);
}

.rodo-cc-btn:hover {
	filter: brightness(1.05);
}

.rodo-cc-view--settings {
	background: var(--rodo-cc-panel-bg, #fff);
}

.rodo-cc-categories {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rodo-cc-category {
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rodo-cc-category:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.rodo-cc-category__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.rodo-cc-category__title {
	font-size: 0.95rem;
}

.rodo-cc-category__desc {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.45;
	opacity: 0.88;
}

/* Przełącznik */
.rodo-cc-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	flex-shrink: 0;
}

.rodo-cc-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.rodo-cc-toggle__ui {
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #cbd5e1;
	transition: background 0.2s;
	position: relative;
}

.rodo-cc-toggle__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

.rodo-cc-toggle input:checked + .rodo-cc-toggle__ui {
	background: var(--rodo-cc-toggle-on, #16a34a);
}

.rodo-cc-toggle input:checked + .rodo-cc-toggle__ui::after {
	transform: translateX(20px);
}

.rodo-cc-toggle input:disabled + .rodo-cc-toggle__ui {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Przycisk stały */
.rodo-cc-floating {
	position: fixed;
	left: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 999990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: none;
	border-radius: 999px;
	background: var(--rodo-cc-floating-bg, #1a1a2e);
	color: var(--rodo-cc-floating-text, #fff);
	font-family: var(--rodo-cc-font);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s, opacity 0.15s;
}

.rodo-cc-floating:hover {
	transform: translateY(-1px);
}

.rodo-cc-floating:focus-visible {
	outline: 2px solid var(--rodo-cc-link, #2563eb);
	outline-offset: 3px;
}

body.rodo-cc-dialog-open {
	overflow: hidden;
}

body.rodo-cc-dialog-open .rodo-cc-floating {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 640px) {
	.rodo-cc-dialog__actions--triple,
	.rodo-cc-dialog__actions--panel {
		grid-template-columns: 1fr;
	}

	.rodo-cc-dialog__inner {
		padding: 18px 16px 20px;
	}

	.rodo-cc-btn {
		width: 100%;
	}
}
