/* FDC Darowizny */
.fdc {
	--fdc-primary: #d3141c;
	--fdc-accent: #1769c2;
	--fdc-text: #2b2f36;
	--fdc-muted: #6b7280;
	--fdc-line: #d7dbe0;
	--fdc-soft: #f1f4f7;
	--fdc-radius: 12px;
	color: var(--fdc-text);
	max-width: 480px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.45;
	box-sizing: border-box;
}
.fdc *, .fdc *::before, .fdc *::after { box-sizing: border-box; }
.fdc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fdc-card {
	background: #fff;
	border-radius: var(--fdc-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
	padding: 24px;
}
.fdc-card + .fdc-card { margin-top: 16px; }

/* Przełącznik */
.fdc-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--fdc-soft);
	border-radius: 10px;
	padding: 3px;
	margin-bottom: 16px;
}
.fdc .fdc-tab {
	appearance: none;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 11px 8px;
	font: inherit;
	font-weight: 700;
	color: var(--fdc-text);
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.fdc .fdc-tab[aria-pressed="true"] {
	background: #fff;
	border-color: var(--fdc-accent);
	color: var(--fdc-accent);
}

/* Kwoty */
.fdc-amounts {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.fdc-amount { position: relative; margin: 0; cursor: pointer; }
.fdc-amount input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fdc-amount span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 6px;
	border: 1px solid var(--fdc-line);
	border-radius: 10px;
	font-weight: 700;
	font-size: 1.05em;
	text-align: center;
	transition: border-color .15s, color .15s, box-shadow .15s;
}
.fdc-amount--other span { font-size: .92em; }
.fdc-amount:hover span { border-color: #aeb4bc; }
.fdc-amount input:checked + span {
	border-color: var(--fdc-accent);
	box-shadow: inset 0 0 0 1px var(--fdc-accent);
	color: var(--fdc-accent);
}
.fdc-amount input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--fdc-accent) 35%, transparent); outline-offset: 2px; }

.fdc-other { margin-top: 12px; }
.fdc-other label, .fdc-field label { display: block; font-size: .9em; font-weight: 600; margin-bottom: 4px; }
.fdc-other__input { display: flex; align-items: center; gap: 8px; }
.fdc-other__input span { font-weight: 700; }

/* Pola */
.fdc-fields { margin-top: 18px; display: grid; gap: 12px; }
.fdc .fdc-field input,
.fdc .fdc-field textarea,
.fdc .fdc-other input {
	width: 100%;
	font: inherit;
	color: var(--fdc-text);
	background: #fff;
	border: 1px solid var(--fdc-line);
	border-radius: 8px;
	padding: 11px 12px;
	min-height: 46px;
	box-shadow: none;
}
.fdc .fdc-field textarea { resize: vertical; min-height: 70px; }
.fdc .fdc-field input:focus,
.fdc .fdc-field textarea:focus,
.fdc .fdc-other input:focus {
	outline: none;
	border-color: var(--fdc-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fdc-accent) 20%, transparent);
}
.fdc .fdc-field input:disabled { background: var(--fdc-soft); color: var(--fdc-muted); }
.fdc-field small { display: block; color: var(--fdc-muted); font-size: .8em; margin-top: 3px; }
.fdc-field--error input, .fdc-other--error input, .fdc-check--error input { border-color: var(--fdc-primary) !important; outline: 2px solid var(--fdc-primary); }

.fdc-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fdc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9em; cursor: pointer; }
.fdc-check input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; accent-color: var(--fdc-accent); }
.fdc-consents { margin-top: 16px; display: grid; gap: 10px; color: var(--fdc-muted); }
.fdc-consents a { color: var(--fdc-accent); }

.fdc-form[data-type="once"] .fdc-only-monthly,
.fdc-form[data-type="monthly"] .fdc-only-once { display: none; }

.fdc-hp { position: absolute; left: -9999px; }

/* Przycisk */
.fdc .fdc-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 20px;
	min-height: 58px;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--fdc-primary);
	color: #fff;
	font: inherit;
	font-size: 1.2em;
	font-weight: 800;
	cursor: pointer;
	transition: filter .15s, transform .1s;
}
.fdc .fdc-submit:hover { filter: brightness(.92); }
.fdc .fdc-submit:active { transform: translateY(1px); }
.fdc .fdc-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--fdc-primary) 40%, transparent); outline-offset: 3px; }
.fdc .fdc-submit[disabled] { opacity: .7; cursor: progress; }
.fdc .fdc-submit--outline { background: #fff; color: var(--fdc-primary); border: 2px solid var(--fdc-primary); font-size: 1em; min-height: 48px; }

.fdc-error {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--fdc-primary) 9%, #fff);
	color: var(--fdc-primary);
	font-size: .9em;
	font-weight: 600;
}

.fdc-methods { margin-top: 12px; text-align: center; font-size: .8em; color: var(--fdc-muted); }
.fdc-methods__label { display: block; margin-bottom: 6px; }
.fdc-chip {
	display: inline-block;
	margin: 0 3px 4px;
	padding: 3px 8px;
	border: 1px solid var(--fdc-line);
	border-radius: 5px;
	color: var(--fdc-text);
	font-weight: 700;
	font-size: .92em;
	background: #fff;
}
.fdc-secure { margin: 6px 0 0; text-align: center; font-size: .75em; color: var(--fdc-muted); }

/* Komunikat po powrocie */
.fdc-notice { border-radius: var(--fdc-radius); padding: 14px 16px; margin-bottom: 16px; font-weight: 600; }
.fdc-notice p { margin: 0; }
.fdc-notice--paid { background: #e8f6ec; color: #16662f; }
.fdc-notice--pending { background: #eef4fb; color: #1d4f8a; }
.fdc-notice--pending p { display: flex; gap: 12px; align-items: flex-start; }
.fdc-notice--pending p::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 2.5px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: fdc-spin .8s linear infinite;
}
.fdc-notice--pending.is-timeout p::before { display: none; }
@keyframes fdc-spin { to { transform: rotate(360deg); } }
.fdc-notice--failed { background: color-mix(in srgb, var(--fdc-primary) 9%, #fff); color: var(--fdc-primary); }

/* 1,5% */
.fdc-tax { padding: 0; overflow: hidden; }
.fdc-tax summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 24px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}
.fdc-tax summary::-webkit-details-marker { display: none; }
.fdc-tax summary::after {
	content: "";
	margin-left: auto;
	width: 9px; height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s;
}
.fdc-tax[open] summary::after { transform: rotate(-135deg); }
.fdc-tax__badge {
	font-size: .72em;
	border: 1.5px solid var(--fdc-primary);
	color: var(--fdc-primary);
	border-radius: 4px;
	padding: 1px 4px;
}
.fdc-tax__body { background: var(--fdc-soft); padding: 16px 24px 20px; }
.fdc-tax__body p { margin: 0; }
.fdc-tax__label { font-size: .8em; color: var(--fdc-muted); font-weight: 600; margin-top: 10px !important; }
.fdc-tax__label:first-child { margin-top: 0 !important; }
.fdc-tax__value { font-size: 1.3em; font-weight: 800; color: var(--fdc-primary); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; letter-spacing: .02em; }
.fdc-tax__value--goal { font-size: 1.05em; letter-spacing: 0; }
.fdc-tax__hint { font-size: .8em; color: var(--fdc-muted); margin-top: 6px !important; }
.fdc .fdc-copy {
	font: inherit;
	font-size: .55em;
	font-weight: 700;
	letter-spacing: 0;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--fdc-line);
	background: #fff;
	color: var(--fdc-text);
	cursor: pointer;
}
.fdc-tax__value--goal .fdc-copy { font-size: .7em; }
.fdc-link { color: var(--fdc-primary); font-weight: 700; font-size: .9em; }
.fdc-tax .fdc-link { display: inline-block; margin-top: 12px; }

/* Lista wpłat */
.fdc-list { max-width: 640px; }
.fdc-list__title { margin: 0 0 12px; font-size: 1.2em; }
.fdc-list ul { list-style: none; margin: 0; padding: 0; }
.fdc-list__item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eceef1; }
.fdc-list__item:first-child { border-top: 0; }
.fdc-avatar {
	flex: 0 0 40px; width: 40px; height: 40px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--fdc-primary) 12%, #fff);
	color: var(--fdc-primary);
	font-weight: 800;
}
.fdc-avatar .fdc-ico { width: 18px; height: 18px; }
.fdc-list__main { flex: 1; min-width: 0; }
.fdc-list__head { display: flex; justify-content: space-between; gap: 10px; }
.fdc-list__head strong { overflow-wrap: anywhere; }
.fdc-list__amount { font-weight: 800; white-space: nowrap; color: var(--fdc-primary); }
.fdc-list__meta { font-size: .8em; color: var(--fdc-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fdc-badge { background: var(--fdc-soft); color: var(--fdc-accent); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.fdc-list__msg { margin: 6px 0 0; font-size: .92em; overflow-wrap: anywhere; }
.fdc-list__empty { color: var(--fdc-muted); margin: 0; }

.fdc-cancel { padding: 48px 16px; }
.fdc-cancel h1 { font-size: 1.5em; margin: 0 0 12px; }

@media (max-width: 380px) {
	.fdc-card { padding: 18px; }
	.fdc-amounts { gap: 8px; }
	.fdc .fdc-submit { font-size: 1.05em; }
}
@media (prefers-reduced-motion: reduce) {
	.fdc * { transition: none !important; }
}
.fdc .fdc-other__input input { flex: 1 1 auto; width: auto; min-width: 0; }

/* Rezygnacja */
.fdc .fdc-manage__title { margin: 0 0 8px; font-size: 1.2em; }
.fdc-manage__text { margin: 0 0 16px; color: var(--fdc-muted); font-size: .92em; }
.fdc-manage .fdc-notice { margin: 14px 0 0; font-size: .92em; }
.fdc-secure a { color: var(--fdc-accent); }

/* ================= Strona darowizny [fdc_strona] ================= */
.fdc-page {
	--fdc-text: #2b2f36;
	--fdc-muted: #6b7280;
	--fdc-border: #e4e7eb;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
	grid-template-areas: "head form" "body form";
	grid-template-rows: auto 1fr;
	column-gap: 28px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--fdc-text);
	line-height: 1.6;
	box-sizing: border-box;
}
.fdc-page *, .fdc-page *::before, .fdc-page *::after { box-sizing: border-box; }

.fdc-page__head {
	grid-area: head;
	position: relative;
	background: #fff;
	border: 1px solid var(--fdc-border);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	padding: 28px 28px 0;
}
.fdc-page__brand { display: flex; align-items: center; gap: 24px; padding-right: 130px; }
.fdc-page__logo { width: 190px; height: auto; flex: 0 0 auto; }
.fdc-page .fdc-page__name { margin: 0; font-size: 1.6em; line-height: 1.25; font-weight: 800; color: var(--fdc-text); }
.fdc-page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 40px;
	margin: 24px -28px 0;
	padding: 14px 28px;
	border-top: 1px solid var(--fdc-border);
	color: var(--fdc-muted);
	font-size: .92em;
}
.fdc-page__meta span { display: inline-flex; align-items: center; gap: 8px; }
.fdc-page__meta svg { opacity: .7; }

.fdc-page .fdc-share {
	position: absolute;
	top: 24px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--fdc-accent);
	color: #fff;
	font: inherit;
	font-size: .9em;
	font-weight: 700;
	cursor: pointer;
}
.fdc-page .fdc-share:hover { filter: brightness(.92); }

.fdc-page__form { grid-area: form; position: sticky; top: var(--fdc-sticky-top, 24px); }
.fdc-page__form .fdc { max-width: none; }

.fdc-page__body {
	grid-area: body;
	background: #fff;
	border: 1px solid var(--fdc-border);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .12);
	padding: 28px;
}
.fdc-page__body > * + * { margin-top: 28px; }
.fdc-page__text > :first-child { margin-top: 0; }
.fdc-page__text > :last-child { margin-bottom: 0; }
.fdc-page__text img { max-width: 100%; height: auto; }
.fdc-page .fdc-page__section h2 { font-size: 1.3em; line-height: 1.3; margin: 0 0 12px; font-weight: 800; color: var(--fdc-text); }
.fdc-page__img { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 14px; }

.fdc-taxbanner {
	position: relative;
	border-radius: 12px;
	padding: 24px 24px 22px;
	color: #fff;
	background: linear-gradient(120deg, #0d4f9f 0%, #1a8fd6 60%, #20b1e6 100%);
	overflow: hidden;
}
.fdc-taxbanner__badge {
	display: inline-block;
	border: 2px solid #fff;
	border-radius: 6px;
	padding: 0 6px;
	font-weight: 800;
	font-size: .9em;
	margin-bottom: 10px;
}
.fdc-page .fdc-taxbanner h2 { color: #fff; font-size: 1.25em; line-height: 1.3; margin: 0 0 14px; font-weight: 700; max-width: 30em; }
.fdc-taxbanner dl { margin: 0; display: grid; gap: 10px; }
.fdc-taxbanner dt { font-size: .8em; opacity: .85; }
.fdc-taxbanner dd { margin: 0; font-size: 1.45em; font-weight: 800; letter-spacing: .02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; line-height: 1.3; }
.fdc-taxbanner div + div dd { font-size: 1.1em; letter-spacing: 0; }
.fdc-taxbanner p { margin: 14px 0 0; font-size: .88em; opacity: .9; }
.fdc-page .fdc-taxbanner .fdc-copy {
	font: inherit;
	font-size: .55em;
	font-weight: 700;
	letter-spacing: 0;
	padding: 4px 12px;
	border-radius: 999px;
	border: 0;
	background: #fff;
	color: #0d4f9f;
	cursor: pointer;
}
.fdc-taxbanner div + div .fdc-copy { font-size: .7em; }

@media (max-width: 960px) {
	.fdc-page {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "form" "body";
		grid-template-rows: auto;
	}
	.fdc-page__head { border-bottom: 1px solid var(--fdc-border); border-radius: 12px; }
	.fdc-page__form { position: static; margin: 16px 0; }
	.fdc-page__body { border-radius: 12px; }
}
@media (max-width: 600px) {
	.fdc-page__head { padding: 20px 20px 0; }
	.fdc-page__brand { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 0; }
	.fdc-page__logo { width: 150px; }
	.fdc-page .fdc-page__name { font-size: 1.35em; }
	.fdc-page .fdc-share { position: static; margin-top: 14px; }
	.fdc-page__meta { margin: 16px -20px 0; padding: 12px 20px; gap: 6px 24px; }
	.fdc-page__body { padding: 20px; }
}

/* ================= Pływający przycisk „Wesprzyj” ================= */
.fdc-float {
	--fdc-float-bg: #ffd21f;
	--fdc-float-text: #1f2937;
	--fdc-float-top: 50%;
}
.fdc-float .fdc-float__btn {
	position: fixed;
	right: 0;
	top: var(--fdc-float-top);
	transform: translateY(-50%);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 78px;
	height: 78px;
	margin: 0;
	padding: 6px 4px;
	border: 0;
	border-radius: 14px 0 0 14px;
	background: var(--fdc-float-bg);
	color: var(--fdc-float-text);
	box-shadow: -4px 6px 20px rgba(16, 24, 40, .22);
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: none;
	text-align: center;
	cursor: pointer;
	transition: width .2s ease, box-shadow .2s ease;
}
.fdc-float .fdc-float__btn:hover,
.fdc-float .fdc-float__btn:focus-visible {
	width: 88px;
	background: var(--fdc-float-bg);
	color: var(--fdc-float-text);
	box-shadow: -6px 8px 26px rgba(16, 24, 40, .3);
}
.fdc-float .fdc-float__btn:focus-visible { outline: 3px solid var(--fdc-float-text); outline-offset: -6px; }
.fdc-float .fdc-float__btn svg { color: #d3141c; animation: fdc-beat 4s ease-in-out infinite; }
@keyframes fdc-beat {
	0%, 80%, 100% { transform: scale(1); }
	85% { transform: scale(1.22); }
	90% { transform: scale(1); }
	95% { transform: scale(1.15); }
}
.fdc-float.is-open .fdc-float__btn { opacity: 0; pointer-events: none; }

.fdc-float__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(15, 23, 42, .45);
	opacity: 0;
	transition: opacity .2s ease;
}
.fdc-float.is-open .fdc-float__backdrop { opacity: 1; }

.fdc-float__panel {
	position: fixed;
	z-index: 99992;
	right: 16px;
	top: 50%;
	width: min(470px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	background: #f4f6f8;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
	overflow: hidden;
	opacity: 0;
	transform: translate(32px, -50%);
	transition: opacity .22s ease, transform .22s ease;
	color: #2b2f36;
	text-align: left;
}
.fdc-float.is-open .fdc-float__panel { opacity: 1; transform: translate(0, -50%); }
.fdc-float__panel[hidden], .fdc-float__backdrop[hidden] { display: none !important; }

.fdc-float__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 18px;
	background: var(--fdc-float-bg);
	color: var(--fdc-float-text);
	flex: 0 0 auto;
}
.fdc-float__logo { height: 38px !important; width: auto !important; max-width: 110px; background: #fff; border-radius: 8px; padding: 3px 6px; }
.fdc-float .fdc-float__title { margin: 0; flex: 1; font-size: 16px; line-height: 1.25; font-weight: 800; color: inherit; }
.fdc-float .fdc-float__close {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	color: inherit;
	cursor: pointer;
}
.fdc-float .fdc-float__close:hover { background: #fff; color: inherit; }

.fdc-float__body {
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 14px;
}
.fdc-float__body .fdc { max-width: none; }
.fdc-float__body .fdc-card { box-shadow: 0 1px 2px rgba(16, 24, 40, .06); padding: 20px; }

@media (max-width: 640px) {
	.fdc-float .fdc-float__btn { width: 64px; height: 64px; font-size: 11.5px; border-radius: 12px 0 0 12px; }
	.fdc-float .fdc-float__btn svg { width: 22px; height: 22px; }
	.fdc-float .fdc-float__btn:hover { width: 64px; }
	.fdc-float--no-mobile { display: none !important; }
	.fdc-float__backdrop { display: none !important; }
	.fdc-float__panel {
		inset: 0;
		width: 100%;
		max-height: none;
		height: 100%;
		border-radius: 0;
		transform: translateY(24px);
	}
	.fdc-float.is-open .fdc-float__panel { transform: none; }
	.fdc-float__body { padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
	.fdc-float__body .fdc-card { padding: 16px; }
	html.fdc-float-lock, html.fdc-float-lock body { overflow: hidden !important; }
}
@media print { .fdc-float { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
	.fdc-float .fdc-float__btn svg { animation: none; }
	.fdc-float__panel, .fdc-float__backdrop, .fdc-float .fdc-float__btn { transition: none; }
}

/* Podstrona rezygnacji */
.fdc-manage-page { max-width: 560px; }
.fdc-manage-page .fdc-card + .fdc-card { margin-top: 16px; }
.fdc .fdc-cancel-box h2.fdc-manage__title, .fdc .fdc-manage h2.fdc-manage__title { margin: 0 0 10px; font-size: 1.3em; line-height: 1.3; }
.fdc-manage__hint { margin: 12px 0 0; font-size: .82em; color: var(--fdc-muted); text-align: center; }
.fdc-sub-summary { margin: 0 0 16px; display: grid; gap: 0; border: 1px solid var(--fdc-line); border-radius: 10px; overflow: hidden; }
.fdc-sub-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.fdc-sub-summary div + div { border-top: 1px solid var(--fdc-line); }
.fdc-sub-summary dt { color: var(--fdc-muted); font-size: .9em; }
.fdc-sub-summary dd { margin: 0; font-weight: 700; text-align: right; }
.fdc-cancel-actions { display: grid; gap: 12px; justify-items: center; margin: 0; }
.fdc-cancel-actions .fdc-submit { margin-top: 4px; }
.fdc-cancel-box .fdc-notice { margin-bottom: 12px; }
.fdc-cancel { max-width: 560px; margin: 0 auto; }
