/**
 * Cookie banner (see includes/consent.php). Colours and fonts come from the
 * active theme's presets when it has them, with plain fallbacks.
 */
.wdc-consent {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	max-width: 44rem;
	margin-inline: auto;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--dark, #1c1a1f);
	border-radius: 6px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	color: var(--wp--preset--color--on-dark, #f4efe8);
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.5;
}

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

.wdc-consent__text {
	flex: 1 1 18rem;
	margin: 0;
}

.wdc-consent__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

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

/* Both choices look the same: refusing must be as easy as accepting. */
.wdc-consent__button {
	padding: 0.55em 1.2em;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wdc-consent__button:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--on-dark, #f4efe8);
	color: var(--wp--preset--color--dark, #1c1a1f);
}

.wdc-consent__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--on-dark, #f4efe8);
	outline-offset: 2px;
}

@media (max-width: 599px) {
	.wdc-consent__actions {
		flex: 1 1 100%;
	}

	.wdc-consent__button {
		flex: 1 1 0;
	}
}
