/* mnstr Consent: baner i ustawienia cookies. Kolory marki: czerwień #E30613, grafit #383838. */
.mnstr-cc, .mnstr-cc-modal, .mnstr-cc-fab {
	--mcc-red: #e30613;
	--mcc-ink: #1d1d1d;
	--mcc-graphite: #383838;
	--mcc-muted: #6b6b6b;
	--mcc-line: #e4e4e4;
	--mcc-bg: #ffffff;
	--mcc-soft: #f7f7f7;
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	color: var(--mcc-ink);
	box-sizing: border-box;
}
.mnstr-cc *, .mnstr-cc-modal * { box-sizing: border-box; }
.mnstr-cc[hidden], .mnstr-cc-modal[hidden], .mnstr-cc-fab[hidden] { display: none !important; }

/* Baner */
.mnstr-cc {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	z-index: 2147483000;
	width: min(460px, calc(100vw - 32px));
	background: var(--mcc-bg);
	border-top: 4px solid var(--mcc-red);
	box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
.mnstr-cc__inner { padding: 22px 24px 20px; }
.mnstr-cc__eyebrow {
	margin: 0 0 6px;
	font: 600 12px/1 "Inter", Arial, sans-serif;
	letter-spacing: .08em;
	color: var(--mcc-red);
}
.mnstr-cc__title {
	margin: 0 0 10px;
	font: 700 20px/1.2 "Inter", Arial, sans-serif;
	letter-spacing: -.01em;
	color: var(--mcc-ink);
	text-transform: none;
}
.mnstr-cc__text {
	margin: 0 0 18px;
	font: 400 14px/1.55 "Inter", Arial, sans-serif;
	color: var(--mcc-graphite);
}
.mnstr-cc__text a, .mnstr-cc-modal a { color: var(--mcc-ink); text-decoration: underline; text-underline-offset: 2px; }
.mnstr-cc__text a:hover, .mnstr-cc-modal a:hover { color: var(--mcc-red); }
.mnstr-cc__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Przyciski „Odrzuć” i „Akceptuj” celowo wyglądają tak samo (wytyczne EROD 03/2022). */
.mnstr-cc__btn {
	flex: 1 1 0;
	min-width: 130px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--mcc-graphite);
	border-radius: 0;
	background: var(--mcc-graphite);
	color: #fff;
	font: 600 14px/1.2 "Inter", Arial, sans-serif;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.mnstr-cc__btn:hover { background: var(--mcc-ink); border-color: var(--mcc-ink); }
.mnstr-cc__link {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 6px;
	border: 0;
	background: none;
	color: var(--mcc-ink);
	font: 600 14px/1.2 "Inter", Arial, sans-serif;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.mnstr-cc__link:hover { color: var(--mcc-red); }
.mnstr-cc__btn:focus-visible, .mnstr-cc__link:focus-visible, .mnstr-cc-fab:focus-visible,
.mnstr-cc-modal__close:focus-visible, .mnstr-cc-switch input:focus-visible + .mnstr-cc-switch__track {
	outline: 2px solid var(--mcc-red);
	outline-offset: 2px;
}

/* Przycisk ponownego otwarcia ustawień */
.mnstr-cc-fab {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	z-index: 2147482000;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--mcc-graphite);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	cursor: pointer;
	opacity: .85;
}
.mnstr-cc-fab:hover { opacity: 1; background: var(--mcc-red); }

/* Okno ustawień */
.mnstr-cc-modal { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 16px; }
.mnstr-cc-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .55); }
.mnstr-cc-modal__box {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 28px 22px;
	background: var(--mcc-bg);
	border-top: 4px solid var(--mcc-red);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
	outline: none;
}
.mnstr-cc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	font: 400 28px/1 Arial, sans-serif;
	color: var(--mcc-graphite);
	cursor: pointer;
}
.mnstr-cc-modal__close:hover { color: var(--mcc-red); }
.mnstr-cc-cats { display: grid; gap: 0; margin: 4px 0 20px; border-top: 1px solid var(--mcc-line); }
.mnstr-cc-cat { padding: 14px 0; border-bottom: 1px solid var(--mcc-line); }
.mnstr-cc-cat__title { font: 600 15px/1.3 "Inter", Arial, sans-serif; color: var(--mcc-ink); }
.mnstr-cc-cat__title small { margin-left: 6px; font-weight: 500; font-size: 12px; color: var(--mcc-muted); }
.mnstr-cc-cat__text { margin: 6px 0 4px 56px; font: 400 13.5px/1.5 "Inter", Arial, sans-serif; color: var(--mcc-graphite); }
.mnstr-cc-cat__cookies { margin: 0 0 0 56px; font: 400 12px/1.5 ui-monospace, Menlo, monospace; color: var(--mcc-muted); }
.mnstr-cc__id { margin: 14px 0 0; font: 400 12px/1.5 "Inter", Arial, sans-serif; color: var(--mcc-muted); }
.mnstr-cc__id code { font-size: 11.5px; background: var(--mcc-soft); padding: 1px 4px; }

/* Przełącznik */
.mnstr-cc-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.mnstr-cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mnstr-cc-switch__track {
	position: relative;
	flex: 0 0 42px;
	height: 24px;
	border-radius: 12px;
	background: #c9c9c9;
	transition: background .15s ease;
}
.mnstr-cc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s ease;
}
.mnstr-cc-switch input:checked + .mnstr-cc-switch__track { background: var(--mcc-red); }
.mnstr-cc-switch input:checked + .mnstr-cc-switch__track::after { transform: translateX(18px); }
.mnstr-cc-switch input:disabled + .mnstr-cc-switch__track { background: #8a8a8a; cursor: not-allowed; }

html.mnstr-cc-open { overflow: hidden; }

@media (max-width: 560px) {
	.mnstr-cc { left: 0; right: 0; bottom: 0; width: 100%; padding-bottom: env(safe-area-inset-bottom, 0px); }
	.mnstr-cc__inner { padding: 18px 16px 16px; }
	.mnstr-cc__title { font-size: 18px; }
	.mnstr-cc__text { font-size: 13.5px; }
	.mnstr-cc-modal { padding: 0; place-items: end stretch; }
	.mnstr-cc-modal__box { max-height: 92vh; padding: 24px 16px 18px; }
	.mnstr-cc-cat__text, .mnstr-cc-cat__cookies { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.mnstr-cc *, .mnstr-cc-modal *, .mnstr-cc-fab { transition: none !important; }
}
