/* Low-specificity fallback: theme button rules take precedence. */
:where(.dnln-cookie-consent__button) {
	font: inherit;
	letter-spacing: inherit;
}

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

.dnln-cookie-consent {
	position: fixed;
	z-index: 999999;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	font-family: var(--dnln-cookie-font-family, inherit);
	font-size: var(--dnln-cookie-font-size, inherit);
	font-weight: var(--dnln-cookie-font-weight, inherit);
	line-height: var(--dnln-cookie-line-height, inherit);
	color: var(--dnln-cookie-color, inherit);
}

.dnln-cookie-consent__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--wp--style--global--wide-size, 72rem);
	margin-inline: auto;
	padding: 1rem;
	background: var(--dnln-cookie-background, Canvas);
	color: inherit;
	box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 18%);
	gap: 1.5rem;
}

.dnln-cookie-consent__message {
	min-width: 0;
	overflow-wrap: anywhere;
}

.dnln-cookie-consent__message,
.dnln-cookie-consent__message p {
	margin-block: 0;
}

.dnln-cookie-consent__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dnln-cookie-consent__button {
	cursor: pointer;
}

.dnln-cookie-consent__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.dnln-cookie-consent {
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
	}

	.dnln-cookie-consent__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 1rem;
	}

	.dnln-cookie-consent__actions {
		flex-wrap: wrap;
	}
}
