/* Cookie consent banner — SlovoMol */
.sm-cookie {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	max-width: 560px;
	margin: 0 auto;
	padding: 18px 18px 14px;
	background: #1a1f24;
	color: #f2f4f6;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	font-family: "Source Sans 3", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
}

.sm-cookie[hidden] {
	display: none !important;
}

.sm-cookie__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
}

.sm-cookie__text {
	margin: 0 0 12px;
	opacity: 0.92;
}

.sm-cookie__text a {
	color: #9ec5ff;
}

.sm-cookie__cats {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
}

.sm-cookie__cat {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	cursor: pointer;
}

.sm-cookie__cat input {
	margin-top: 3px;
}

.sm-cookie__cat span {
	opacity: 0.9;
}

.sm-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sm-cookie__btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: inherit;
	border-radius: 8px;
	padding: 8px 12px;
	font: inherit;
	cursor: pointer;
}

.sm-cookie__btn--primary {
	background: #e8eef5;
	color: #12161a;
	border-color: transparent;
	font-weight: 600;
}

.sm-cookie__btn:hover {
	opacity: 0.92;
}

.sm-footer-cookie-btn {
	appearance: none;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.85;
}

.sm-footer-cookie-btn:hover {
	opacity: 1;
}

.sm-trial__consent {
	margin: 12px 0 0;
}

/* Чекбокс согласия на главной (home без site-glass) */
.sm-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 10px 0;
	font-size: 0.95rem;
	line-height: 1.4;
	cursor: pointer;
}

.sm-checkbox input {
	width: auto !important;
	margin-top: 3px;
	flex-shrink: 0;
}

.sm-checkbox a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 520px) {
	.sm-cookie {
		left: 10px;
		right: 10px;
		bottom: 10px;
		max-height: min(70vh, 420px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 14px 14px 12px;
	}

	.sm-cookie__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sm-cookie__btn {
		width: 100%;
		min-height: 44px;
		padding: 10px 14px;
	}

	.sm-cookie__cat {
		min-height: 40px;
		align-items: center;
	}

	.sm-cookie__cat input {
		width: 18px;
		height: 18px;
		margin-top: 0;
	}
}
