#consent-window {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	width: auto;
	max-width: 1100px;
	margin: 0 auto;
	background: #ffffff;
	color: #1f2937;
	padding: 20px 22px;
	z-index: 2147483000;
	display: none;
	justify-content: space-between;
	align-items: stretch;
	gap: 18px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
}

#consent-window.is-hidden {
	display: none !important;
}

#consent-window-content {
	flex: 1 1 auto;
	min-width: 0;
}

#consent-window-title {
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 8px;
	display: block;
	font-weight: 700;
}

.consent-window-text {
	font-size: 14px;
	line-height: 1.55;
	opacity: 0.92;
	margin-bottom: 12px;
}

.consent-window-text p {
	margin: 0 0 8px;
}

#consent-window-buttons {
	width: 220px;
	flex: 0 0 220px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#consent-window-link {
	width: 100%;
	margin-top: 4px;
}

#consent-window-link a {
	color: #b91c1c;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
}

#consent-window-collapse {
	display: none;
	margin-bottom: 10px;
}

.consent-window-button {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.consent-window-button:hover {
	transform: translateY(-1px);
}

#consent-window-switches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.consent-window-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f8fafc;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	user-select: none;
}

.consent-window-switch input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #16a34a;
}

.consent-window-switch span {
	line-height: 1.2;
}

@media screen and (max-width: 900px) {
	#consent-window {
		left: 10px;
		right: 10px;
		bottom: 10px;
		flex-direction: column;
		padding: 16px;
		gap: 14px;
	}

	#consent-window-buttons {
		width: 100%;
		flex: none;
	}

	.consent-window-switch {
		width: 100%;
		border-radius: 12px;
	}
}
