.consent {
	position: fixed;
	inset: auto 0 0;
	z-index: 100;
	display: grid;
	gap: 1rem;
	padding: 1rem;
	color: var(--foreground, #000);
	background: var(--background, #fff);
	border-top: 1px solid currentColor;
}

.consent[hidden] {
	display: none;
}

.consent__text {
	margin: 0;
}

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

/* Same weight for both buttons: rejecting must be as easy as accepting. */
.consent__button {
	padding: 0.5rem 1rem;
	font: inherit;
	color: var(--background, #fff);
	background: var(--foreground, #000);
	border: 1px solid var(--foreground, #000);
	cursor: pointer;
}

.consent__button:focus-visible,
.consent-settings:focus-visible {
	outline: 2px solid var(--foreground, #000);
	outline-offset: 2px;
}

.consent-settings {
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}

@media (min-width: 48em) {
	.consent {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}
