.ns-consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 80;
	padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--ns-line, #e6e8ea);
	box-shadow: 0 -12px 40px rgb(28 31 36 / 10%);
}

html {
	padding-bottom: var(--ns-consent-offset, 0px);
}

.ns-consent__panel {
	display: grid;
	gap: 1rem;
	max-width: 72rem;
	margin: 0 auto;
}

.ns-consent__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--ns-fg, #1b1e23);
}

.ns-consent__text {
	margin: 0;
	color: var(--ns-muted, #5f6368);
	font-size: 0.875rem;
	line-height: 1.5;
}

.ns-consent__text a {
	color: var(--ns-fg, #1b1e23);
}

.ns-consent__actions .ns-btn,
.ns-consent__choices .ns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.7rem 1.1rem;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 550;
	cursor: pointer;
	text-decoration: none;
}

.ns-consent .ns-btn--accent {
	background: var(--ns-accent, #8bc53f);
	color: #fff;
}

.ns-consent .ns-btn--ghost {
	background: transparent;
	color: var(--ns-fg, #1b1e23);
	border-color: #c5c7cb;
}

.ns-consent .ns-btn--primary {
	background: var(--ns-fg, #1b1e23);
	color: #fff;
}

.ns-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ns-consent__choices {
	position: relative;
	margin: 0;
	padding: 0.85rem 1rem 1rem;
	border: 1px solid var(--ns-line, #e6e8ea);
	border-radius: var(--ns-radius-sm, 16px);
	background: var(--ns-surface, #f4f5f2);
}

.ns-consent__choices .ns-check {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin: 0.45rem 0;
	color: var(--ns-fg, #1b1e23);
	font-size: 0.875rem;
}

.ns-consent__choices .ns-check input {
	margin-top: 0.2rem;
}

.ns-consent__choices .ns-btn {
	margin-top: 0.65rem;
}

.ns-consent__legend {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 900px) {
	.ns-consent__panel {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.ns-consent__choices {
		grid-column: 1 / -1;
	}
}

@media print {
	.ns-consent {
		display: none !important;
	}

	html {
		padding-bottom: 0;
	}
}
