.stm-cookie {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 6000;
	padding: 16px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.stm-cookie__panel {
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px 22px;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.stm-cookie__head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: flex-start;
	justify-content: space-between;
}

.stm-cookie__content {
	flex: 1 1 280px;
	min-width: 0;
}

.stm-cookie__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.stm-cookie__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
}

.stm-cookie__text a {
	color: #fc6005;
	text-decoration: underline;
}

.stm-cookie__text a:hover {
	color: #e05500;
}

.stm-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
}

.stm-cookie__btn {
	border: 0;
	border-radius: 8px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.stm-cookie__btn--ghost {
	background: #fff;
	color: #333;
	border: 1px solid #c8cdd3;
}

.stm-cookie__btn--ghost:hover {
	border-color: #9aa3ad;
	background: #f5f6f7;
}

.stm-cookie__btn--reject {
	background: #eef0f2;
	color: #333;
}

.stm-cookie__btn--reject:hover {
	background: #e2e5e9;
}

.stm-cookie__btn--accept {
	background: #fc6005;
	color: #fff;
}

.stm-cookie__btn--accept:hover {
	background: #e05500;
}

.stm-cookie.is-hidden {
	display: none;
}

/* Настройки */
.stm-cookie-settings {
	position: fixed;
	inset: 0;
	z-index: 6100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.45);
}

.stm-cookie-settings.is-hidden {
	display: none;
}

.stm-cookie-settings__dialog {
	width: min(520px, 100%);
	max-height: min(90vh, 640px);
	overflow: auto;
	padding: 24px;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.stm-cookie-settings__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
}

.stm-cookie-settings__lead {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.stm-cookie-settings__group {
	margin: 0 0 14px;
	padding: 14px 16px;
	border: 1px solid #e4e7eb;
	border-radius: 10px;
	background: #fafbfc;
}

.stm-cookie-settings__group:last-of-type {
	margin-bottom: 20px;
}

.stm-cookie-settings__label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
}

.stm-cookie-settings__label--locked {
	cursor: default;
	opacity: 0.85;
}

.stm-cookie-settings__label input {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #fc6005;
}

.stm-cookie-settings__name {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 600;
	color: #111;
}

.stm-cookie-settings__desc {
	display: block;
	font-size: 13px;
	line-height: 1.45;
	color: #666;
}

.stm-cookie-settings__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

@media (max-width: 640px) {
	.stm-cookie {
		padding: 12px;
	}

	.stm-cookie__panel {
		padding: 16px;
	}

	.stm-cookie__actions {
		width: 100%;
		justify-content: stretch;
	}

	.stm-cookie__btn {
		flex: 1 1 auto;
		min-width: calc(50% - 5px);
	}

	.stm-cookie__btn--ghost {
		flex: 1 1 100%;
	}
}
