/* eT Essentials - baner zgód cookies. Bez zewnętrznych zasobów (fonty systemowe). */

#et-consent,
.et-consent-fab,
.et-consent-open {
	--et-consent-btn-bg: #1f2937;
	--et-consent-btn-fg: #ffffff;
}

#et-consent {
	position: fixed;
	z-index: 2147483000;
	left: 0;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
	max-height: 100vh;
	overflow-y: auto;
	padding: 16px;
	background: #ffffff;
	color: #1f2937;
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: left;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

#et-consent.et-consent--bottom-center {
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	margin: 0 auto;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

/* Okno na środku: wymaga wyboru, pod nim nakładka na całą stronę. */
#et-consent.et-consent--center-modal {
	top: 50%;
	left: 50%;
	right: auto;
	bottom: auto;
	width: calc(100% - 32px);
	max-width: 560px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	transform: translate(-50%, -50%);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

.et-consent-backdrop {
	position: fixed;
	z-index: 2147482999;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(15, 23, 42, 0.55);
}

/* Blokada przewijania strony, dopóki okno na środku jest otwarte. */
html.et-consent-lock,
html.et-consent-lock body {
	overflow: hidden !important;
}

#et-consent[hidden],
#et-consent [hidden],
.et-consent-fab[hidden],
.et-consent-backdrop[hidden] {
	display: none !important;
}

#et-consent *,
#et-consent *::before,
#et-consent *::after {
	box-sizing: border-box;
}

#et-consent:focus {
	outline: none;
}

#et-consent:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: -3px;
}

#et-consent .et-consent__inner {
	max-width: 1100px;
	margin: 0 auto;
}

#et-consent .et-consent__title {
	margin: 0 0 8px;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

#et-consent .et-consent__text,
#et-consent .et-consent__cat-desc {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

#et-consent .et-consent__link {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

#et-consent .et-consent__prefs {
	margin-top: 12px;
	border-top: 1px solid #d1d5db;
}

#et-consent .et-consent__cat {
	padding: 10px 0;
	border-bottom: 1px solid #e5e7eb;
}

#et-consent .et-consent__cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

#et-consent .et-consent__cat-name {
	margin: 0;
	color: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

#et-consent .et-consent__always {
	color: #166534;
	font-size: 13px;
	font-weight: 600;
}

#et-consent .et-consent__cat-desc {
	margin-top: 4px;
	color: #374151;
	font-size: 14px;
}

#et-consent .et-consent__switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 2px solid #4b5563;
	border-radius: 999px;
	background: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s;
}

#et-consent .et-consent__switch::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #4b5563;
	transition: transform 0.15s;
}

#et-consent .et-consent__switch:checked {
	border-color: var(--et-consent-btn-bg);
	background: var(--et-consent-btn-bg);
}

#et-consent .et-consent__switch:checked::before {
	background: var(--et-consent-btn-fg);
	transform: translateX(20px);
}

#et-consent .et-consent__actions {
	display: grid;
	/* Stała szerokość kolumn: trzy przyciski 1. poziomu mają identyczny rozmiar (bez ułamków piksela). */
	grid-template-columns: repeat(3, minmax(0, 240px));
	justify-content: start;
	gap: 8px;
	margin-top: 12px;
}

/* Okno na środku (560px): 3 x 168px + odstępy mieszczą się bez ułamków piksela. */
#et-consent.et-consent--center-modal .et-consent__actions {
	grid-template-columns: repeat(3, minmax(0, 168px));
}

#et-consent .et-consent__btn,
.et-consent-fab,
.et-consent-open {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	border: 2px solid var(--et-consent-btn-bg);
	border-radius: 8px;
	background: var(--et-consent-btn-bg);
	color: var(--et-consent-btn-fg);
	box-shadow: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
}

#et-consent .et-consent__btn {
	width: 100%;
}

#et-consent .et-consent__btn:hover,
.et-consent-fab:hover,
.et-consent-open:hover {
	box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.14);
}

#et-consent .et-consent__btn:focus-visible,
#et-consent .et-consent__switch:focus-visible,
#et-consent .et-consent__link:focus-visible,
.et-consent-fab:focus-visible,
.et-consent-open:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.et-consent-fab {
	position: fixed;
	z-index: 2147482999;
	left: 16px;
	bottom: 16px;
	min-height: 40px;
	padding: 8px 14px;
	font-size: 13px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
	#et-consent .et-consent__actions,
	#et-consent.et-consent--center-modal .et-consent__actions {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	#et-consent .et-consent__switch,
	#et-consent .et-consent__switch::before {
		transition: none;
	}
}
