/* Buď Štědrý – Dary. Breakpointy: 4K ≥ 2400, notebook ≤ 1366, tablet ≤ 1024, mobil ≤ 767. */

.bs-dar {
	--bs-dar-red: var(--c-red, #ee2a24);
	--bs-dar-radius: 24px;
	--bs-dar-shadow: 0 6px 16px 0 rgba(26, 15, 5, .05);
	display: grid;
	grid-template-columns: 360px minmax(0, 520px);
	justify-content: center;
	gap: 64px;
	align-items: center;
	width: 100%;
	font-family: 'Satoshi Variable', sans-serif;
	color: var(--c-black, #000);
	text-align: left;
}

/* QR karta */
.bs-dar-qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 24px 24px 20px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: var(--bs-dar-radius);
	box-shadow: var(--bs-dar-shadow);
}

.bs-dar-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 4px;
	background: #f4f4f4;
	border-radius: 999px;
}

.bs-dar .bs-dar-tab {
	padding: 8px 16px;
	background: transparent;
	border: 0;
	border-radius: 999px;
	font: 500 14px/1.4 'Satoshi Variable', sans-serif;
	letter-spacing: -.02em;
	color: inherit;
	cursor: pointer;
	transition: background-color .3s, color .3s;
}

.bs-dar .bs-dar-tab:hover {
	background: rgba(0, 0, 0, .06);
}

.bs-dar .bs-dar-tab[aria-selected="true"] {
	background: var(--bs-dar-red);
	color: #fff;
}

.bs-dar .bs-dar-tab:focus-visible,
.bs-dar .bs-dar-copy:focus-visible,
.bs-dar-link:focus-visible {
	outline: 2px solid var(--bs-dar-red);
	outline-offset: 2px;
}

.bs-dar-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.bs-dar-panel[hidden] {
	display: none;
}

.bs-dar-code {
	width: 220px;
	aspect-ratio: 1;
	padding: 12px;
	background: #fff;
}

.bs-dar-code svg {
	display: block;
	width: 100%;
	height: 100%;
}

.bs-dar-cap,
.bs-dar-hint {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: -.02em;
	text-align: center;
}

.bs-dar-cap {
	font-weight: 500;
}

.bs-dar-hint {
	font-weight: 300;
	opacity: .6;
}

/* Údaje */
.bs-dar-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bs-dar-mobile {
	display: none;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.bs-dar-row {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "label btn" "value btn";
	align-items: center;
	column-gap: 16px;
	padding: 14px 16px 14px 20px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
}

.bs-dar-label {
	grid-area: label;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	opacity: .6;
}

.bs-dar-value {
	grid-area: value;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -.01em;
	overflow-wrap: anywhere;
}

.bs-dar .bs-dar-copy {
	grid-area: btn;
	padding: 8px 14px;
	background: #f4f4f4;
	border: 0;
	border-radius: 999px;
	font: 500 13px/1.4 'Satoshi Variable', sans-serif;
	color: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .3s, color .3s;
}

.bs-dar .bs-dar-copy:hover {
	background: #e9e9e9;
}

.bs-dar .bs-dar-copy.is-done {
	background: #2f6f2f;
	color: #fff;
}

.bs-dar-link {
	align-self: flex-start;
	margin: 16px 0 12px;
	font-size: 16px;
	font-weight: 500;
	color: var(--bs-dar-red);
	text-decoration: underline;
	text-underline-position: from-font;
	transition: opacity .3s;
}

.bs-dar-link:hover {
	opacity: .7;
	color: var(--bs-dar-red);
}

.bs-dar-note {
	margin: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: -.01em;
}

.bs-dar-note strong {
	font-weight: 500;
}

.bs-dar .bs-dar-note a {
	font-weight: 700;
	color: var(--bs-dar-red);
	text-decoration: underline;
	text-underline-position: from-font;
	transition: opacity .3s;
}

.bs-dar .bs-dar-note a:hover {
	opacity: .7;
	color: var(--bs-dar-red);
}

/* Tlačítko Chci potvrzení o daru (vzhled jako .btn-red na webu) */
.bs-dar .bs-dar-btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 16px 20px;
	background: var(--bs-dar-red);
	border-radius: 8px;
	font: 700 16px/1 'Satoshi Variable', sans-serif;
	letter-spacing: -.02em;
	color: #fff;
	text-decoration: none;
	transition: background-color .3s;
}

.bs-dar .bs-dar-btn:hover {
	background: rgba(238, 42, 36, .85);
	color: #fff;
}

.bs-dar .bs-dar-btn:focus-visible {
	outline: 2px solid var(--bs-dar-red);
	outline-offset: 2px;
}

@media (max-width: 1366px) {
	.bs-dar .bs-dar-btn { padding: 14px 18px; font-size: 15px; }
}

@media (max-width: 767px) {
	.bs-dar .bs-dar-btn { align-self: stretch; }
}

.bs-dar .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (min-width: 2400px) {
	.bs-dar { grid-template-columns: 440px minmax(0, 640px); gap: 80px; }
	.bs-dar-code { width: 270px; }
	.bs-dar-value { font-size: 22px; }
}

@media (max-width: 1366px) {
	.bs-dar { grid-template-columns: 320px minmax(0, 480px); gap: 48px; --bs-dar-radius: 20px; }
	.bs-dar-code { width: 200px; }
	.bs-dar-value { font-size: 16px; }
}

@media (max-width: 1024px) {
	.bs-dar { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
}

/* Mobil: údaje ke kopírování první (QR na vlastním displeji nenaskenujete) */
@media (max-width: 767px) {
	.bs-dar { grid-template-columns: minmax(0, 1fr); gap: 24px; --bs-dar-radius: 16px; }
	.bs-dar-mobile { display: block; }
	.bs-dar-row { padding: 12px 12px 12px 16px; }
	.bs-dar-qr { padding: 16px; }
	.bs-dar-code { width: 180px; }
}

/* Upozornění pod QR */
.bs-dar .bs-dar-save {
	display: none;
}

.bs-dar-alert {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	width: 100%;
	max-width: 280px;
	opacity: .6;
}

.bs-dar-alert-ico {
	flex-shrink: 0;
	display: block;
	width: 13px;
	height: 13px;
	/* svisle na střed prvního řádku: (12px × 1.5 − 13px) / 2 */
	margin-top: 2.5px;
}

.bs-dar-alert p {
	margin: 0;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: -.01em;
	text-align: left;
}

/* Mobil: tlačítko pro uložení QR do galerie */
@media (max-width: 767px) {
	.bs-dar .bs-dar-save {
		display: block;
		width: 100%;
		padding: 14px 18px;
		background: #000;
		border: 0;
		border-radius: 8px;
		font: 700 15px/1 'Satoshi Variable', sans-serif;
		letter-spacing: -.02em;
		color: #fff;
		cursor: pointer;
	}

	.bs-dar-mobile { margin-top: 8px; }
}

/* ---------- Dvě QR karty: „Přispěju jen tak“ / „Chci být veden jako sponzor“ ([bs_dar pro="sponzori"]) ---------- */
.bs-dar2 {
	--bs-dar-red: var(--c-red, #ee2a24);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	width: 100%;
	font-family: 'Satoshi Variable', sans-serif;
	color: var(--c-black, #000);
}

.bs-dar2-hint {
	margin: -8px 0 0;
	font-size: 15px;
	font-weight: 300;
	opacity: .6;
	text-align: center;
}

.bs-dar2-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 430px));
	justify-content: center;
	align-items: stretch;
	gap: 32px;
	width: 100%;
}

.bs-dar2 .bs-dar--card,
.bs-dar2 .bs-dar--info {
	display: block;
	width: 100%;
}

.bs-dar2 .bs-dar--card .bs-dar-qr {
	height: 100%;
	box-sizing: border-box;
}

.bs-dar2 .bs-dar--sponzor .bs-dar-qr {
	border: 2px solid var(--bs-dar-red);
}

.bs-dar2 .bs-dar2-title {
	margin: 0;
	font-family: 'Satoshi Variable', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
	text-align: center;
	color: inherit;
}

.bs-dar2 .bs-dar-tabs--one .bs-dar-tab {
	background: var(--bs-dar-red);
	color: #fff;
	cursor: default;
}

.bs-dar2-text {
	margin: auto 0 0;
	max-width: 280px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: -.01em;
	text-align: center;
}

.bs-dar2 .bs-dar2-text a {
	font-weight: 700;
	color: var(--bs-dar-red);
	text-decoration: underline;
	text-underline-position: from-font;
	transition: opacity .3s;
}

.bs-dar2 .bs-dar2-text a:hover {
	opacity: .7;
	color: var(--bs-dar-red);
}

.bs-dar2 .bs-dar2-alert {
	max-width: 520px;
	justify-content: center;
}

.bs-dar2 .bs-dar--info {
	max-width: 884px;
	margin-top: 8px;
}

.bs-dar2 .bs-dar--info .bs-dar-info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}

.bs-dar2 .bs-dar--info .bs-dar-mobile,
.bs-dar2 .bs-dar--info .bs-dar-link,
.bs-dar2 .bs-dar--info .bs-dar-note,
.bs-dar2 .bs-dar--info .bs-dar-btn {
	grid-column: 1 / -1;
}

.bs-dar2 .bs-dar--info .bs-dar-link {
	margin: 12px 0 4px;
}

@media (min-width: 2400px) {
	.bs-dar2-cards { grid-template-columns: repeat(2, minmax(0, 530px)); gap: 40px; }
	.bs-dar2 .bs-dar--info { max-width: 1100px; }
	.bs-dar2 .bs-dar2-title { font-size: 25px; }
}

@media (max-width: 1366px) {
	.bs-dar2-cards { grid-template-columns: repeat(2, minmax(0, 400px)); gap: 24px; }
	.bs-dar2 .bs-dar2-title { font-size: 18px; }
}

@media (max-width: 767px) {
	.bs-dar2 { gap: 20px; }
	.bs-dar2-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bs-dar2 .bs-dar--info .bs-dar-info { grid-template-columns: minmax(0, 1fr); }
	.bs-dar2 .bs-dar2-title { font-size: 18px; }
}

/* Přepínač částek v kartách: vše na jeden řádek */
.bs-dar2 .bs-dar-tabs {
	flex-wrap: nowrap;
	max-width: 100%;
}

.bs-dar2 .bs-dar-tab {
	white-space: nowrap;
}

@media (max-width: 767px) {
	.bs-dar2 .bs-dar-tabs { gap: 4px; }
	.bs-dar2 .bs-dar-tab { padding: 8px 12px; }
}

/* ---------- Plovoucí tlačítko „Daruj teď“ + tlukoucí srdíčko ---------- */
.bs-sticky-dar {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 20px;
	background: var(--c-red, #ee2a24);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(26, 15, 5, .18);
	font: 700 15px/1 'Satoshi Variable', sans-serif;
	letter-spacing: -.02em;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 24px);
	transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, background-color .3s;
	-webkit-tap-highlight-color: transparent;
}

.bs-sticky-dar.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity .3s ease, transform .3s ease, visibility 0s, background-color .3s;
}

.bs-sticky-dar:hover,
.bs-sticky-dar:focus,
.bs-sticky-dar:active {
	color: #fff;
}

@media (hover: hover) {
	.bs-sticky-dar:hover { background: #d81f19; }
}

.bs-sticky-dar:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.bs-sticky-dar .bs-heart,
.bs-sticky-dar svg {
	display: block;
	width: 13px;
	height: 13px;
}

/* Desktop: po odscrollování zčervená „Darovat“ v hlavičce a přidá se tlukoucí srdíčko */
.hdr-cta .hdr-cta-text {
	transition: background-color .3s;
}

.hdr-cta .hdr-cta-text .bs-heart {
	display: none;
}

.hdr-cta.is-dar .hdr-cta-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--c-red, #ee2a24);
}

.hdr-cta.is-dar .hdr-cta-text .bs-heart {
	display: block;
	width: 12px;
	height: 12px;
	transform-origin: 50% 55%;
	animation: bs-heartbeat 1.6s ease-in-out infinite;
}

.hdr-cta.is-dar .hdr-cta-text .bs-heart svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Srdíčko „tluče“ – v plovoucím i v úvodním tlačítku na Donio */
.bs-sticky-dar .bs-heart,
a.btn-red[href*="donio.cz"] .btn-ico {
	transform-origin: 50% 55%;
	animation: bs-heartbeat 1.6s ease-in-out infinite;
}

@keyframes bs-heartbeat {
	0%, 40%, 100% { transform: scale(1); }
	10% { transform: scale(1.25); }
	20% { transform: scale(.95); }
	30% { transform: scale(1.18); }
}

@media (max-width: 767px) {
	.bs-sticky-dar {
		bottom: 16px;
		width: calc(100% - 32px);
		max-width: 420px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bs-sticky-dar, .bs-sticky-dar.is-visible { transition: none; }
	.bs-sticky-dar .bs-heart, a.btn-red[href*="donio.cz"] .btn-ico, .hdr-cta.is-dar .hdr-cta-text .bs-heart { animation: none; }
}

/* Barvu odkazů přebíjí Elementor kit (.elementor-kit-6 a) – tady vyšší specifičnost */
body a.bs-sticky-dar,
body a.bs-sticky-dar:hover,
body a.bs-sticky-dar:focus,
body a.bs-sticky-dar:active,
body a.bs-sticky-dar:visited {
	color: #fff;
	text-decoration: none;
}

/* Sticky obal místo position: fixed (iPhone Safari jinak obarví spodní lištu na červeno) */
.bs-sticky-wrap {
	position: sticky;
	bottom: 24px;
	z-index: 9990;
	height: 0;
	pointer-events: none;
}

.bs-sticky-wrap .bs-sticky-dar {
	position: absolute;
	bottom: 0;
	pointer-events: auto;
}

.bs-sticky-wrap .bs-sticky-dar:not(.is-visible) {
	pointer-events: none;
}

@media (max-width: 767px) {
	.bs-sticky-wrap { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Dotyková zařízení: plovoucí tlačítko o kus výš od spodního okraje.
   (Bílý pruh pod tlačítkem kvůli liště Safari na iPhonu odstraněn na přání – 18. 11. 2026.) */
@media (hover: none) and (pointer: coarse) {
	.bs-sticky-wrap { bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
}

/* Odkaz „dětských domovů“ v úvodu – podtržený červeně */
body .e-paragraph-base a[href="/podporujeme-2026/"] {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--c-red, #ee2a24);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color .2s;
}
body .e-paragraph-base a[href="/podporujeme-2026/"]:hover,
body .e-paragraph-base a[href="/podporujeme-2026/"]:focus-visible {
	color: var(--c-red, #ee2a24);
}
