/* Statistics consent banner: small, non-modal, both choices equally prominent. */
.kuku-cookie-consent {
	position: fixed;
	inset-inline: 1rem;
	inset-block-end: 1rem;
	z-index: 9999;
	box-sizing: border-box;
	max-inline-size: 46rem;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: 1rem;
	background: #292239;
	color: #fffaf4;
	box-shadow: 0 12px 32px rgb(41 34 57 / 0.28);
	font-family: var(--wp--preset--font-family--dm-sans, system-ui, sans-serif);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.kuku-cookie-consent[hidden] {
	display: none;
}

.kuku-cookie-consent__text {
	flex: 1 1 22rem;
	margin: 0;
}

.kuku-cookie-consent a {
	color: #85d9b7;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.kuku-cookie-consent__actions {
	display: flex;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.kuku-cookie-consent button {
	min-block-size: 44px;
	min-inline-size: 7rem;
	padding: 0.5rem 1.25rem;
	border: 2px solid #fffaf4;
	border-radius: 999px;
	background: #fffaf4;
	color: #292239;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.kuku-cookie-consent button:hover {
	background: #ebe3dc;
	border-color: #ebe3dc;
}

.kuku-cookie-consent a:focus-visible,
.kuku-cookie-consent button:focus-visible {
	outline: 3px solid #85d9b7;
	outline-offset: 2px;
}

[data-theme="kukudark"] .kuku-cookie-consent {
	background: #fffaf4;
	color: #292239;
	box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
}

[data-theme="kukudark"] .kuku-cookie-consent a {
	color: #653469;
}

[data-theme="kukudark"] .kuku-cookie-consent button {
	border-color: #292239;
	background: #292239;
	color: #fffaf4;
}

[data-theme="kukudark"] .kuku-cookie-consent button:hover {
	background: #653469;
	border-color: #653469;
}

[data-theme="kukudark"] .kuku-cookie-consent a:focus-visible,
[data-theme="kukudark"] .kuku-cookie-consent button:focus-visible {
	outline-color: #653469;
}

@media (max-width: 30rem) {
	.kuku-cookie-consent {
		inset-inline: 0.5rem;
		inset-block-end: 0.5rem;
		padding: 0.875rem 1rem;
		font-size: 0.875rem;
	}

	.kuku-cookie-consent__actions {
		flex: 1 1 100%;
	}

	.kuku-cookie-consent button {
		flex: 1 1 0;
		min-inline-size: 0;
	}
}

/* Footer "Cookie settings" link rendered as a link, whatever the footer's button styles. */
[data-kuku-cookie-settings] {
	cursor: pointer;
}
