.cookie-consent {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 16px 24px;
	max-width: 960px;
	margin-inline: auto;
	padding: 18px 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: #1d1e2e;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	color: #e8e8f0;
	font: 400 15px/1.55 'Open Sans', system-ui, sans-serif;
}

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

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

.cookie-consent__text a {
	color: #ffb43d;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-consent__actions {
	display: flex;
	flex: none;
	gap: 10px;
}

/* Both choices look the same: refusing must be as easy as accepting. */
.cookie-consent__button {
	min-width: 116px;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: #f2f2f6;
	color: #1d1e2e;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cookie-consent__button:hover {
	background: #fff;
}

.cookie-consent__button:focus-visible {
	outline: 2px solid #ffaa00;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.cookie-consent {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		font-size: 14px;
	}

	.cookie-consent__button {
		flex: 1;
		min-width: 0;
	}
}
