/* Cookie lišta — viz inc/cookie-bar.php. Barva přebírá sekundární barvu pobočky (proměnná z functions.php). */
.rosa-cookie-bar {
	--rosa-cookie-accent: var(--rosa-calendar-color-secondary, #333333);
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	max-width: 960px;
	margin: 0 auto;
	background: #ffffff;
	color: #222222;
	border-radius: 8px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
	font-size: 15px;
	line-height: 1.5;
}

.rosa-cookie-bar[hidden] {
	display: none;
}

.rosa-cookie-bar__inner {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 18px 22px;
}

.rosa-cookie-bar__text p {
	margin: 0;
}

.rosa-cookie-bar__text .rosa-cookie-bar__title {
	font-weight: 700;
	margin-bottom: 4px;
}

.rosa-cookie-bar__text a {
	color: var(--rosa-cookie-accent);
	text-decoration: underline;
}

.rosa-cookie-bar__actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

:where(.rosa-cookie-bar, .rosa-consent-placeholder) .rosa-cookie-btn.rosa-cookie-btn {
	--rosa-cookie-accent: var(--rosa-calendar-color-secondary, #333333);
	padding: 10px 18px;
	border: 2px solid var(--rosa-cookie-accent);
	border-radius: 6px;
	background: var(--rosa-cookie-accent);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.rosa-cookie-btn.rosa-cookie-btn:hover,
.rosa-cookie-btn.rosa-cookie-btn:focus-visible {
	background: #ffffff;
	color: var(--rosa-cookie-accent);
}

.rosa-consent-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 250px;
	padding: 20px;
	background: #f2f2f2;
	color: #333333;
	text-align: center;
	/* Elementor má na .elementor-custom-embed (Google Maps widget) line-height: 0 */
	font-size: 15px;
	line-height: 1.5;
}

.rosa-consent-placeholder p {
	margin: 0;
	line-height: inherit;
}

iframe[data-rosa-src] {
	display: none;
}

@media (max-width: 767px) {
	.rosa-cookie-bar {
		left: 8px;
		right: 8px;
		bottom: 8px;
		font-size: 14px;
	}

	.rosa-cookie-bar__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
	}

	.rosa-cookie-bar__actions {
		flex-direction: column;
	}
}
