/*
 * Cookie notice banner and the policy links next to the footer copyright.
 * Plain CSS like a11y-fixes.css (the gulp 3 SCSS build is outdated). Markup in footer.php,
 * behaviour in assets/js/cookie-notice.js.
 */

/* Policy links after the copyright line. They inherit its gray, font and size. */
.copyright__sep {
	margin: 0 .5em;
}

.copyright__link {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

.copyright__link:hover {
	color: #151414;
}

/* Banner: fixed to the bottom of the viewport, above the page. */
.cookie-notice {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	background: #151414;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

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

.cookie-notice__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .75rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

@media (min-width: 768px) {
	.cookie-notice__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
		padding: 1rem 1.5rem;
	}
}

.cookie-notice__text {
	margin: 0;
	font-size: .875rem;
	line-height: 1.5;
}

.cookie-notice__text a {
	color: #fff;
	text-decoration: underline;
}

.cookie-notice__text a:hover {
	color: #59bad0;
}

.cookie-notice__dismiss {
	flex-shrink: 0;
	padding: .6rem 1.5rem;
	border: 2px solid #fff;
	border-radius: 0;
	background: #fff;
	color: #151414;
	font-family: inherit;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
}

.cookie-notice__dismiss:hover {
	background: transparent;
	color: #fff;
}

/* While the banner shows, keep the end of the page (the copyright and policy links) clear of it. */
body.has-cookie-notice {
	padding-bottom: var(--cookie-notice-height, 0);
}

@media print {
	.cookie-notice {
		display: none !important;
	}
}
