/* Súhlas s cookies – okno vľavo dole (na mobile cez celú šírku), farby webu: oranžová #e04a22, tmavá #222529 */

.zs-cookies {
	bottom: 24px;
	left: 24px;
	max-width: calc(100% - 48px);
	opacity: 0;
	position: fixed;
	transform: translateY(20px);
	transition: opacity 0.3s, transform 0.3s;
	width: 440px;
	z-index: 100000;
}

.zs-cookies.is-visible {
	opacity: 1;
	transform: none;
}

.zs-cookies[hidden] {
	display: none;
}

.zs-cookies__box {
	background: #fff;
	border-top: 4px solid #e04a22;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	color: #777;
	font-size: 14px;
	line-height: 1.6;
	max-height: calc(100vh - 48px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 24px 26px 22px;
}

.zs-cookies__title {
	color: #222529;
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 10px;
}

.zs-cookies__title > span {
	color: #e04a22;
}

.zs-cookies__text {
	margin: 0 0 18px;
}

.zs-cookies__text a {
	color: #e04a22;
}

/* nastavenia */
.zs-cookies__settings {
	border-top: 1px solid #e7e7e7;
	margin: 0 0 18px;
}

.zs-cookies__settings[hidden] {
	display: none;
}

.zs-cookies__option {
	align-items: center;
	border-bottom: 1px solid #e7e7e7;
	cursor: pointer;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0;
	padding: 14px 0;
}

.zs-cookies__option p {
	margin: 0;
}

.zs-cookies__option-name {
	color: #222529;
	font-weight: 600;
}

.zs-cookies__option-text {
	font-size: 0.9em;
	line-height: 1.5;
}

.zs-cookies__always {
	color: #e04a22;
	flex-shrink: 0;
	font-size: 0.85em;
	font-weight: 600;
}

/* prepínač */
.zs-cookies__switch {
	flex-shrink: 0;
	height: 24px;
	position: relative;
	width: 44px;
}

.zs-cookies__switch input {
	cursor: pointer;
	height: 100%;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.zs-cookies__switch span {
	background: #ccc;
	border-radius: 24px;
	inset: 0;
	position: absolute;
	transition: background 0.2s;
}

.zs-cookies__switch span::after {
	background: #fff;
	border-radius: 50%;
	content: "";
	height: 18px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform 0.2s;
	width: 18px;
}

.zs-cookies__switch input:checked + span {
	background: #e04a22;
}

.zs-cookies__switch input:checked + span::after {
	transform: translateX(20px);
}

.zs-cookies__switch input:focus-visible + span {
	outline: 2px solid #222529;
	outline-offset: 2px;
}

/* tlačidlá – Prijať a Odmietnuť rovnako výrazné */
.zs-cookies__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.zs-cookies__btn {
	background: #fff;
	border: 2px solid #e04a22;
	border-radius: 0;
	color: #e04a22;
	cursor: pointer;
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	padding: 11px 18px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.zs-cookies__btn:hover,
.zs-cookies__btn:focus-visible {
	background: #e04a22;
	color: #fff;
}

.zs-cookies__btn--primary {
	background: #e04a22;
	color: #fff;
}

.zs-cookies__btn--primary:hover,
.zs-cookies__btn--primary:focus-visible {
	background: #222529;
	border-color: #222529;
}

.zs-cookies__btn--link {
	background: none;
	border-color: transparent;
	color: #222529;
	flex: 1 1 100%;
	padding: 6px;
	text-decoration: underline;
}

.zs-cookies__btn--link:hover,
.zs-cookies__btn--link:focus-visible {
	background: none;
	color: #e04a22;
}

.zs-cookies__btn[hidden] {
	display: none;
}

@media (max-width: 575px) {
	.zs-cookies {
		bottom: 0;
		left: 0;
		max-width: 100%;
		width: 100%;
	}

	.zs-cookies__box {
		max-height: 85vh;
		padding: 20px 18px 18px;
	}

	.zs-cookies__btn {
		flex: 1 1 100%;
	}
}

/* Mapa Google pred súhlasom – zástupný blok na mieste mapy */
.zs-map-host {
	position: relative;
}

.zs-map-consent {
	align-items: center;
	background: #f4f4f4 repeating-linear-gradient(45deg, transparent 0 14px, rgba(0, 0, 0, 0.025) 14px 28px);
	display: flex;
	flex-direction: column;
	gap: 8px;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: absolute;
	text-align: center;
	z-index: 2;
}

.zs-map-consent p {
	margin: 0;
	max-width: 340px;
}

.zs-map-consent__title {
	color: #222529;
	font-weight: 700;
}

.zs-map-consent__text {
	color: #777;
	font-size: 0.9em;
	line-height: 1.5;
}

.zs-map-consent .zs-cookies__btn {
	flex: 0 0 auto;
	margin-top: 6px;
}
