.nekai-consent,
.nekai-consent-dialog {
	--nekai-consent-ink: #0f1a14;
	--nekai-consent-paper: #ffffff;
	--nekai-consent-muted: #4b5a52;
	--nekai-consent-line: #d6ddd8;
	--nekai-consent-accent: #135f41;
	--nekai-consent-accent-ink: #ffffff;
	font-family: inherit;
	color: var(--nekai-consent-ink);
}

.nekai-consent[hidden],
.nekai-consent-dialog[hidden] {
	display: none !important;
}

.nekai-consent {
	position: fixed;
	inset: auto 16px 16px 16px;
	z-index: 99999;
	display: flex;
	justify-content: center;
}

.nekai-consent__inner,
.nekai-consent-dialog__panel {
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	padding: 20px 22px;
	background: var(--nekai-consent-paper);
	border: 1px solid var(--nekai-consent-line);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(15, 26, 20, 0.18);
}

.nekai-consent__title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 700;
}

.nekai-consent__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--nekai-consent-muted);
}

.nekai-consent__text a,
.nekai-consent-footer-link a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nekai-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 16px;
}

/* Accept and reject share one style so neither choice is nudged. */
.nekai-consent__button {
	flex: 1 1 180px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--nekai-consent-accent);
	border-radius: 8px;
	background: var(--nekai-consent-accent);
	color: var(--nekai-consent-accent-ink);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.nekai-consent__link {
	min-height: 44px;
	padding: 10px 4px;
	border: 0;
	background: none;
	color: var(--nekai-consent-ink);
	font: inherit;
	font-size: 0.9rem;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.nekai-consent__button:focus-visible,
.nekai-consent__link:focus-visible,
.nekai-consent-dialog input:focus-visible {
	outline: 3px solid #f2b705;
	outline-offset: 2px;
}

.nekai-consent-dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 26, 20, 0.55);
}

.nekai-consent-dialog__panel {
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

.nekai-consent-dialog__row {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid var(--nekai-consent-line);
	cursor: pointer;
}

.nekai-consent-dialog__row strong {
	display: block;
	font-size: 0.95rem;
}

.nekai-consent-dialog__row small {
	display: block;
	margin-top: 2px;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--nekai-consent-muted);
}

.nekai-consent-dialog__row input {
	flex: none;
	width: 22px;
	height: 22px;
	accent-color: var(--nekai-consent-accent);
}

.nekai-consent-dialog__always {
	flex: none;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--nekai-consent-accent);
}

.nekai-consent-footer-link {
	margin: 12px 0 0;
	font-size: 0.85rem;
}

@media (max-width: 520px) {
	.nekai-consent {
		inset: auto 0 0 0;
	}

	.nekai-consent__inner {
		border-radius: 12px 12px 0 0;
	}
}
