/* All rules are scoped to .mpg-gate. Global html/body styles are intentionally not touched. */
.mpg-gate {
	--mpg-accent: #b00020;
	--mpg-bg: #fff;
	--mpg-text: #1d2327;

	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow: hidden;
	overscroll-behavior: none;
	background: rgba(0, 0, 0, 0.8);
	box-sizing: border-box;
}

.mpg-gate *,
.mpg-gate *::before,
.mpg-gate *::after {
	box-sizing: border-box;
}

.mpg-gate__dialog {
	width: 100%;
	max-width: 640px;
	max-height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 24px;
	border-radius: 6px;
	background: var(--mpg-bg);
	color: var(--mpg-text);
	font-size: 16px;
	line-height: 1.5;
}

.mpg-gate__dialog:focus {
	outline: none;
}

.mpg-gate__title {
	margin: 0 0 16px;
	font-size: 1.5em;
	line-height: 1.25;
	color: var(--mpg-text);
}

/* Visually emphasised statement. */
.mpg-gate__statement {
	margin: 0 0 24px;
	padding: 16px 0;
/* 	border: 2px solid var(--mpg-accent); */
	border-left-width: 8px;
/* 	background: #fff4f5; */
	font-weight: 600;
}

.mpg-gate__statement > :first-child {
	margin-top: 0;
}

.mpg-gate__statement > :last-child {
	margin-bottom: 0;
}

.mpg-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mpg-gate__btn {
	flex: 1 1 200px;
	min-height: 44px;
	padding: 10px 16px;
	border: 2px solid var(--mpg-text);
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mpg-gate__btn--accept {
	background: var(--mpg-text);
	color: #fff;
}

.mpg-gate__btn--decline {
	background: #fff;
	color: var(--mpg-text);
}

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