/* FRGA – baner zgody na cookies. Paleta zgodna z brandbookiem: grafit #272b2e, złoto #c2b697. */
.cookie-banner[hidden], .cookie-modal[hidden], .cookie-embed[hidden] { display: none !important; }

.cookie-banner {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 99990;
	width: calc(100% - 48px);
	max-width: 480px;
	font-family: 'Lato', sans-serif;
	color: #e9e6df;
	background: #202427;
	border: 1px solid rgba(194, 182, 151, .35);
	border-top: 3px solid #c2b697;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	animation: cookie-in .35s ease-out both;
}
.cookie-banner__inner { padding: 26px 28px 24px; }
.cookie-banner__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #c2b697;
	text-align: left;
}
.cookie-banner__title {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
	letter-spacing: -.2px;
}
.cookie-banner__text {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.65;
	color: #cfd1cf;
	text-align: left;
}
.cookie-banner__text a, .cookie-modal__foot a { color: #e5decc; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__text a:hover, .cookie-modal__foot a:hover { color: #fff; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .4px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid #c2b697;
	border-radius: 0;
	transition: background-color .2s, color .2s, border-color .2s;
}
.cookie-btn--primary { background: #c2b697; color: #1c1f21; }
.cookie-btn--primary:hover { background: #d7ccb1; border-color: #d7ccb1; }
.cookie-btn--ghost { background: transparent; color: #e5decc; border-color: rgba(194, 182, 151, .55); }
.cookie-btn--ghost:hover { border-color: #c2b697; color: #fff; }
.cookie-btn:focus-visible, .cookie-modal__x:focus-visible, .cookie-switch input:focus-visible + .cookie-switch__ui {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
.cookie-banner__actions .cookie-btn--primary { flex: 1 1 calc(50% - 5px); }
.cookie-banner__actions .cookie-btn--ghost { flex: 1 1 100%; }

/* Modal ustawień */
html.cookie-lock { overflow: hidden; }
.cookie-modal { position: fixed; inset: 0; z-index: 99995; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Lato', sans-serif; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(12, 14, 15, .72); }
.cookie-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 30px 32px 26px;
	background: #202427;
	color: #e9e6df;
	border-top: 3px solid #c2b697;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.cookie-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-modal__head h2 { margin: 0 0 10px; font-size: 24px; color: #fff; font-weight: 700; }
.cookie-modal__x { background: none; border: 0; color: #c2b697; font-size: 32px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cookie-modal__x:hover { color: #fff; }
.cookie-modal__lead { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: #cfd1cf; text-align: left; }
.cookie-cat { padding: 18px 0; border-top: 1px solid rgba(194, 182, 151, .25); }
.cookie-cat__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.cookie-cat h3 { margin: 0 0 6px; font-size: 16px; color: #fff; font-weight: 700; }
.cookie-cat p { margin: 0; font-size: 13px; line-height: 1.6; color: #b9bcba; text-align: left; }
.cookie-switch { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; cursor: pointer; margin-top: 2px; }
.cookie-switch--locked { cursor: default; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #c2b697; white-space: nowrap; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch__ui { display: block; width: 48px; height: 26px; border-radius: 26px; background: #4a4f52; position: relative; transition: background-color .2s; }
.cookie-switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cookie-switch input:checked + .cookie-switch__ui { background: #c2b697; }
.cookie-switch input:checked + .cookie-switch__ui::after { transform: translateX(22px); background: #1c1f21; }
.cookie-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(194, 182, 151, .25); }
.cookie-modal__foot { margin: 16px 0 0; font-size: 12px; text-align: left; }

/* Zastępnik mapy */
.cookie-embed {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 320px;
	height: 100%;
	padding: 32px;
	background: #272b2e;
	border: 1px solid rgba(194, 182, 151, .3);
	color: #e9e6df;
}
.cookie-embed__title { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #fff; text-align: left; }
.cookie-embed__text { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: #cfd1cf; text-align: left; }
.cookie-embed__actions { display: flex; flex-wrap: wrap; gap: 10px; }

[data-cookie-settings] { cursor: pointer; }

@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.cookie-banner { animation: none; }
	.cookie-switch__ui, .cookie-switch__ui::after, .cookie-btn { transition: none; }
}

/* Mobile: dolny panel na całą szerokość */
@media (max-width: 575px) {
	.cookie-banner { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 92vh; overflow-y: auto; border-left: 0; border-right: 0; border-bottom: 0; }
	.cookie-banner__inner { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
	.cookie-banner__title { font-size: 20px; }
	.cookie-banner__actions .cookie-btn--primary { flex: 1 1 100%; }
	.cookie-modal { padding: 0; align-items: flex-end; }
	.cookie-modal__dialog { max-height: 94vh; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); }
	.cookie-cat__row { gap: 14px; }
	.cookie-modal__actions .cookie-btn { flex: 1 1 100%; }
	.cookie-embed { padding: 24px 20px; min-height: 260px; }
}
