/* KTS consent — компактна branded карта */
.kts-consent-root {
	position: fixed;
	left: 1rem;
	right: auto;
	bottom: 1rem;
	top: auto;
	width: min(420px, calc(100vw - 2rem));
	z-index: 100000;
	font-family: inherit;
	color: #101820;
	background: #FFFFFF;
	border: 1px solid rgba(16, 24, 32, 0.2);
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(16, 24, 32, 0.16);
	padding: 0.85rem 0.95rem 0.95rem;
}
.kts-consent-root[hidden],
.kts-consent-reopen[hidden] {
	display: none !important;
}
.kts-consent-inner { max-width: none; margin: 0; }
.kts-consent-title {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	font-weight: 650;
	color: #102E46;
}
.kts-consent-text {
	margin: 0 0 0.45rem;
	font-size: 0.86rem;
	line-height: 1.35;
	color: #596168;
}
.kts-consent-links { margin: 0 0 0.45rem; font-size: 0.8rem; }
.kts-consent-links a { margin-right: 0.75rem; color: #102E46; }
.kts-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.kts-consent-actions button {
	cursor: pointer;
	border: 1px solid #102E46;
	background: #102E46;
	color: #fff;
	padding: 0.42rem 0.65rem;
	font-size: 0.84rem;
	border-radius: 2px;
	font-weight: 600;
}
.kts-consent-actions button.kts-secondary {
	background: transparent;
	color: #102E46;
}
.kts-consent-prefs {
	margin: 0.55rem 0;
	padding: 0.55rem;
	border: 1px solid rgba(16, 24, 32, 0.12);
	background: #F7F6F2;
	border-radius: 6px;
}
.kts-consent-prefs[hidden] { display: none !important; }
.kts-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 0.45rem;
}
.kts-consent-row:last-child { margin-bottom: 0; }
.kts-consent-row label { font-weight: 600; }
.kts-consent-row small { display: block; font-weight: 400; opacity: 0.85; }
.kts-consent-reopen { display: none !important; }
@media (max-width: 560px) {
	.kts-consent-root {
		left: 0.4rem;
		right: 0.4rem;
		width: auto;
		bottom: 0.4rem;
		max-height: min(34vh, 260px);
		overflow: auto;
		padding: 0.65rem 0.7rem;
		/* Под чата по z-index — чатът се вдига с :has() offset в widget.css */
		z-index: 99980;
	}
	.kts-consent-title { font-size: 0.92rem; margin-bottom: 0.2rem; }
	.kts-consent-text {
		font-size: 0.78rem;
		line-height: 1.3;
		margin-bottom: 0.35rem;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.kts-consent-links { display: none; } /* линковете остават в Preferences / footer */
	.kts-consent-actions { gap: 0.3rem; }
	.kts-consent-actions button {
		flex: 1 1 calc(33.33% - 0.3rem);
		padding: 0.4rem 0.25rem;
		font-size: 0.72rem;
		line-height: 1.15;
	}
}
