/*
 * MS Cookie Consent banner. Takes the site's font; colours come from the
 * settings as custom properties on :root (--ms-consent-button,
 * --ms-consent-button-text, --ms-consent-accent). A white bar at the bottom
 * under a hairline, pill buttons, Accept and Reject of equal weight.
 * Logical properties keep it right for RTL and LTR.
 */

.ms-consent {
	--ms-consent-ink: #1a1a1a;
	--ms-consent-muted: #5e5e5e;
	--ms-consent-line: #cfcfcf;
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 99995;
	box-sizing: border-box;
	padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ms-consent-ink);
	text-align: start;
	background: #fff;
	border-block-start: 1px solid var(--ms-consent-line);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

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

.ms-consent *,
.ms-consent *::before,
.ms-consent *::after {
	box-sizing: border-box;
}

.ms-consent__inner {
	display: grid;
	gap: 16px;
	max-width: 1200px;
	margin-inline: auto;
}

@media (min-width: 900px) {
	.ms-consent__inner {
		grid-template-columns: 1fr auto;
		gap: 32px;
		align-items: end;
	}
}

.ms-consent__title {
	margin: 0 0 4px;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ms-consent-ink);
}

.ms-consent__text {
	max-width: 70ch;
	margin: 0;
	font-size: 0.9375rem;
	color: var(--ms-consent-muted);
}

.ms-consent__link {
	font-weight: 600;
	color: var(--ms-consent-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.ms-consent__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ms-consent__prefs {
	display: grid;
	gap: 8px;
	padding: 0;
	margin: 16px 0 0;
	border: 0;
}

.ms-consent__prefs[hidden] {
	display: none;
}

.ms-consent__pref {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-block: 8px;
	font-size: 0.9375rem;
	color: var(--ms-consent-muted);
	border-block-start: 1px solid #e8e8e8;
	cursor: pointer;
}

.ms-consent__pref strong {
	color: var(--ms-consent-ink);
}

.ms-consent__pref input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--ms-consent-button);
}

.ms-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ms-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 24px;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	border: 2px solid var(--ms-consent-button);
	border-radius: 999px;
	transition: background-color 150ms ease-out, color 150ms ease-out;
}

.ms-consent__btn[hidden] {
	display: none;
}

.ms-consent__btn--solid {
	color: var(--ms-consent-button-text);
	background: var(--ms-consent-button);
}

.ms-consent__btn--solid:hover {
	color: var(--ms-consent-button);
	background: transparent;
}

.ms-consent__btn--quiet {
	color: var(--ms-consent-button);
	background: transparent;
}

.ms-consent__btn--quiet:hover {
	color: var(--ms-consent-button-text);
	background: var(--ms-consent-button);
}

.ms-consent :focus-visible {
	outline: 3px solid var(--ms-consent-accent);
	outline-offset: 2px;
}

/* Phones: the buttons share the row. */
@media (max-width: 599px) {
	.ms-consent__btn {
		flex: 1 1 auto;
		padding-inline: 16px;
	}
}
