/**
 * Consent banner.
 *
 * The bar keeps the dark ground the previous banner was configured with. The accept button
 * takes the site's brand orange instead of that plugin's stored green, because the chrome
 * mu-plugin was overriding it to exactly this orange with an !important rule — the stored
 * green was never what the site actually showed.
 */

.web-push-consent {
	position: fixed;
	z-index: 99999;
	right: 0;
	bottom: 0;
	left: 0;
	background: #060c17;
	color: #fff;
	box-shadow: 0 -2px 16px rgba( 0, 0, 0, 0.25 );
	transform: translateY( 100% );
	transition: transform 240ms ease;
}

.web-push-consent.is-visible {
	transform: translateY( 0 );
}

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

.web-push-consent__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 20px;
}

.web-push-consent__message {
	flex: 1 1 320px;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.web-push-consent__link {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

.web-push-consent__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

/*
 * Both buttons share every dimension. Only the fill differs, and only enough to mark the
 * affirmative one: a reject that is smaller, greyer or slower to find is not a free choice.
 */
.web-push-consent__button {
	min-width: 104px;
	padding: 9px 18px;
	border: 1px solid #fff;
	border-radius: 3px;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.web-push-consent__button:hover,
.web-push-consent__button:focus-visible {
	background: rgba( 255, 255, 255, 0.14 );
}

.web-push-consent__button--accept {
	border-color: #f06000;
	background: #f06000;
	color: #101318;
	font-weight: 800;
}

.web-push-consent__button--accept:hover,
.web-push-consent__button--accept:focus-visible {
	background: #ff6f0f;
	border-color: #ff6f0f;
}

.web-push-consent__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media ( max-width: 600px ) {
	.web-push-consent__inner {
		padding: 14px 16px;
	}

	.web-push-consent__actions {
		width: 100%;
	}

	.web-push-consent__button {
		flex: 1 1 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.web-push-consent {
		transition: none;
	}

	.web-push-consent__button {
		transition: none;
	}
}
