/* S1 Consent — банер + модал. Минималистичен, тъмен, без рамки. */

#s1-consent-root[hidden] { display: none; }

.s1c-banner {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 99998;
	background: rgba(17, 17, 17, 0.97);
	color: #f5f3ef;
	backdrop-filter: blur(8px);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
	animation: s1c-up 0.35s ease;
	font-size: 14px;
	line-height: 1.5;
}

@keyframes s1c-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

.s1c-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.s1c-text { flex: 1 1 380px; }
.s1c-text strong { display: block; margin-bottom: 4px; font-size: 15px; letter-spacing: 0.01em; }
.s1c-text p { margin: 0; opacity: 0.75; }
.s1c-text a { color: inherit; text-decoration: underline; }

.s1c-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.s1c-btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 10px 20px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}
.s1c-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.s1c-btn-primary { background: #f5f3ef; color: #111; }
.s1c-btn-ghost { background: transparent; color: #f5f3ef; box-shadow: inset 0 0 0 1px rgba(245, 243, 239, 0.35); }

.s1c-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.s1c-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }

.s1c-modal-card {
	position: relative;
	background: #ffffff;
	color: #16161a;
	border-radius: 16px;
	padding: 28px;
	width: min(480px, 100%);
	max-height: 85vh;
	overflow: auto;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	animation: s1c-pop 0.25s ease;
	font-size: 14px;
}

@keyframes s1c-pop {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

.s1c-modal-card h3 { margin: 0 0 16px; font-size: 18px; }
.s1c-close {
	position: absolute;
	top: 12px;
	right: 14px;
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.s1c-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid #eee9e2;
	cursor: pointer;
}
.s1c-row-text small { display: block; color: #6f6a63; margin-top: 2px; }

.s1c-switch { position: relative; flex: 0 0 auto; }
.s1c-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.s1c-switch i {
	display: block;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: #d9d4cc;
	position: relative;
	transition: background 0.2s ease;
}
.s1c-switch i::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.s1c-switch input:checked + i { background: #16161a; }
.s1c-switch input:checked + i::after { transform: translateX(18px); }
.s1c-switch input:disabled + i { opacity: 0.5; }

.s1c-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.s1c-modal-actions .s1c-btn-ghost { color: #16161a; box-shadow: inset 0 0 0 1px rgba(22, 22, 26, 0.25); }
.s1c-modal-actions .s1c-btn-primary { background: #16161a; color: #fff; }

@media (max-width: 600px) {
	.s1c-banner-inner { padding: 10px 14px 12px; gap: 6px; }
	.s1c-text strong { font-size: 12.5px; }
	.s1c-text p { font-size: 11.5px; line-height: 1.35; margin: 2px 0 0; }
	.s1c-actions { width: 100%; gap: 6px; }
	.s1c-btn { flex: 1 1 auto; text-align: center; padding: 7px 8px; font-size: 12px; }
}
