/*
 * Baner zgód, ustawienia, przycisk „Cookies” i zaślepki multimediów
 * (FotoLady_Core_Consent). Kolory i fonty jak w motywie FotoLady.
 */
.fotolady-cc,
.fotolady-cc-modal,
.fotolady-cc-fab,
.fotolady-cc-toast,
.fotolady-consent-embed {
	--cc-accent: #ff5a36;
	--cc-accent-hover: #e14a2c;
	--cc-ink: #181614;
	--cc-graphite: #232226;
	--cc-paper: #f7f4f0;
	--cc-sand: #e7e0d8;
	--cc-muted: #7a7469;
	--cc-soft: #c8c2ba;
	--cc-display: var(--wp--preset--font-family--display, "Unbounded", Georgia, serif);
	--cc-body: var(--wp--preset--font-family--body, "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	box-sizing: border-box;
	font-family: var(--cc-body);
}

.fotolady-cc *,
.fotolady-cc-modal *,
.fotolady-consent-embed * {
	box-sizing: border-box;
}

.fotolady-cc [hidden],
.fotolady-cc[hidden],
.fotolady-cc-fab[hidden],
.fotolady-cc-toast[hidden] {
	display: none !important;
}

.fotolady-cc__eyebrow {
	margin: 0;
	color: var(--cc-accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Przyciski */
.fotolady-cc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75em 1.1em;
	border: 1.5px solid transparent;
	border-radius: 3px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fotolady-cc__btn--primary {
	background-color: var(--cc-accent);
	color: var(--cc-ink);
}

.fotolady-cc__btn--primary:is(:hover, :focus-visible) {
	background-color: var(--cc-accent-hover);
}

.fotolady-cc__btn--outline {
	border-color: var(--cc-paper);
	background: none;
	color: var(--cc-paper);
}

.fotolady-cc__btn--outline:is(:hover, :focus-visible) {
	background-color: var(--cc-paper);
	color: var(--cc-ink);
}

.fotolady-cc__btn--dark {
	border-color: var(--cc-ink);
	background: none;
	color: var(--cc-ink);
}

.fotolady-cc__btn--dark:is(:hover, :focus-visible) {
	background-color: var(--cc-ink);
	color: var(--cc-paper);
}

:is(.fotolady-cc, .fotolady-cc-modal, .fotolady-cc-fab, .fotolady-consent-embed) :focus-visible {
	outline: 2px solid var(--cc-accent);
	outline-offset: 3px;
}

/* Baner */
.fotolady-cc {
	position: fixed;
	right: clamp(12px, 3vw, 28px);
	bottom: clamp(12px, 3vw, 28px);
	z-index: 1000;
	width: min(440px, calc(100% - 24px));
	padding: 1.5rem 1.5rem 1.3rem;
	border-radius: 6px;
	background-color: var(--cc-graphite);
	box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
	color: var(--cc-paper);
	animation: fotolady-cc-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fotolady-cc-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

.fotolady-cc__title {
	margin: 0.6rem 0 0;
	color: #fff;
	font-family: var(--cc-display);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
}

.fotolady-cc__text {
	margin: 0.7rem 0 0;
	color: var(--cc-soft);
	font-size: 0.9rem;
	line-height: 1.5;
}

.fotolady-cc__text a {
	color: var(--cc-paper);
}

.fotolady-cc__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: 1.2rem;
}

.fotolady-cc__more {
	margin-top: 0.8rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-soft);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.fotolady-cc__more:is(:hover, :focus-visible) {
	color: var(--cc-accent);
}

/* Ustawienia */
.fotolady-cc-modal {
	width: min(560px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 0;
	border: 0;
	border-radius: 6px;
	background-color: var(--cc-paper);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
	color: var(--cc-ink);
}

.fotolady-cc-modal::backdrop {
	background: rgba(14, 13, 12, 0.6);
}

.fotolady-cc-modal__form {
	margin: 0;
}

.fotolady-cc-modal__head {
	position: relative;
	padding: 1.4rem 3.5rem 1rem 1.5rem;
	border-bottom: 1px solid var(--cc-sand);
}

.fotolady-cc-modal__head h2 {
	margin: 0.6rem 0 0;
	color: var(--cc-ink);
	font-family: var(--cc-display);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
}

.fotolady-cc-modal__head p:not(.fotolady-cc__eyebrow) {
	margin: 0.5rem 0 0;
	color: var(--cc-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.fotolady-cc-modal__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--cc-muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.fotolady-cc-modal__close:is(:hover, :focus-visible) {
	background-color: var(--cc-sand);
	color: var(--cc-ink);
}

.fotolady-cc-modal__cats {
	margin: 0;
	padding: 0 1.5rem;
	list-style: none;
}

.fotolady-cc-modal__cats li {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--cc-sand);
}

.fotolady-cc-modal__cats label {
	cursor: pointer;
}

.fotolady-cc-modal__cats b {
	display: block;
	font-size: 0.98rem;
}

.fotolady-cc-modal__cats small {
	display: block;
	margin-top: 0.3rem;
	color: var(--cc-muted);
	font-size: 0.85rem;
	line-height: 1.45;
}

.fotolady-cc-modal__cats code {
	padding: 0 0.3em;
	border-radius: 3px;
	background-color: var(--cc-sand);
	font-size: 0.78em;
}

.fotolady-cc-switch {
	position: relative;
	width: 46px;
	height: 26px;
}

.fotolady-cc-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.fotolady-cc-switch i {
	position: absolute;
	inset: 0;
	border-radius: 99px;
	background-color: #cfc7bd;
	transition: background-color 0.2s ease;
}

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

.fotolady-cc-switch input:checked + i {
	background-color: var(--cc-accent);
}

.fotolady-cc-switch input:checked + i::after {
	transform: translateX(20px);
}

.fotolady-cc-switch input:disabled {
	cursor: not-allowed;
}

.fotolady-cc-switch input:disabled + i {
	opacity: 0.55;
}

.fotolady-cc-switch input:focus-visible + i {
	outline: 2px solid var(--cc-accent);
	outline-offset: 3px;
}

.fotolady-cc-modal__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 1rem 1.5rem 1.3rem;
}

/* Przycisk „Cookies” po wyborze */
.fotolady-cc-fab {
	position: fixed;
	right: clamp(12px, 3vw, 28px);
	bottom: clamp(12px, 3vw, 28px);
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.9rem 0.5rem 0.55rem;
	border: 0;
	border-radius: 99px;
	background-color: var(--cc-graphite);
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
	color: var(--cc-paper);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.fotolady-cc-fab svg {
	width: 22px;
	height: 22px;
}

.fotolady-cc-fab:is(:hover, :focus-visible) {
	background-color: var(--cc-ink);
}

.fotolady-cc-toast {
	position: fixed;
	left: clamp(12px, 3vw, 28px);
	bottom: clamp(12px, 3vw, 28px);
	z-index: 1000;
	max-width: 280px;
	padding: 0.7rem 1rem;
	border-radius: 4px;
	background-color: var(--cc-ink);
	color: var(--cc-paper);
	font-size: 0.86rem;
}

/* Zaślepka filmu / mapy do zgody na multimedia */
.fotolady-consent-embed {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: radial-gradient(circle at 50% 35%, #3a2a26 0%, #141312 75%);
	color: var(--cc-paper);
	text-align: center;
}

.fotolady-consent-embed__inner {
	display: grid;
	justify-items: center;
	gap: 0.9rem;
	padding: 1.25rem;
}

.fotolady-consent-embed__inner p {
	max-width: 40ch;
	margin: 0;
	color: var(--cc-soft);
	font-size: 0.92rem;
	line-height: 1.5;
}

.fotolady-consent-embed__play {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--cc-accent);
}

.fotolady-consent-embed__play svg {
	width: 22px;
	height: 22px;
	margin-left: 4px;
	fill: var(--cc-ink);
}

/* Osadzenie z proporcjami WordPressa (wrapper z ::before 56.25%). */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .fotolady-consent-embed {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	min-height: 0;
}

@media (max-width: 640px) {
	.fotolady-cc {
		right: 12px;
		left: 12px;
		width: auto;
	}

	.fotolady-cc__buttons {
		grid-template-columns: 1fr;
	}

	.fotolady-consent-embed {
		aspect-ratio: auto;
		min-height: 240px;
	}

	/* Toast nad przyciskiem „Cookies”, nie na nim. */
	.fotolady-cc-toast {
		bottom: calc(clamp(12px, 3vw, 28px) + 52px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fotolady-cc {
		animation: none;
	}

	.fotolady-cc-switch i,
	.fotolady-cc-switch i::after {
		transition: none;
	}
}
