/**
 * Gatemi Age Verification — the gate.
 *
 * The gate is rendered for everybody, so a page cache can serve it, and the
 * head snippet adds `gmav-ok` to the root element when the cookie already
 * clears the age this page asks for. Hiding it from a class rather than
 * removing it from a load handler is what keeps a returning visitor from
 * watching it appear and vanish on every page.
 */

.gmav-ok .gmav-gate {
	display: none;
}

.gmav-gate {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(17, 17, 17, 0.86);
	overflow-y: auto;
}

.gmav-gate__panel {
	box-sizing: border-box;
	width: 100%;
	max-width: 28rem;
	padding: 2rem;
	border-radius: 0.75rem;
	background: #fff;
	color: #1e1e1e;
	text-align: center;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.gmav-gate__title {
	margin: 0 0 0.5rem;
	font-size: 1.375rem;
	line-height: 1.25;
}

.gmav-gate__message {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	line-height: 1.5;
}

.gmav-gate__error {
	margin: 0 0 1rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.375rem;
	background: #fdecea;
	color: #8a1c12;
	font-size: 0.875rem;
}

.gmav-gate__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 0;
}

.gmav-gate__field {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.gmav-gate__label {
	font-size: 0.8125rem;
	color: #50575e;
}

.gmav-gate__input {
	box-sizing: border-box;
	width: 4.5rem;
	padding: 0.5rem;
	border: 1px solid #8c8f94;
	border-radius: 0.375rem;
	font-size: 1rem;
	text-align: center;
}

.gmav-gate__button {
	appearance: none;
	padding: 0.7rem 1.35rem;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.gmav-gate__button--yes {
	background: #1e1e1e;
	color: #fff;
}

.gmav-gate__button--no {
	background: transparent;
	border-color: #8c8f94;
	color: #1e1e1e;
}

.gmav-gate__button:focus-visible,
.gmav-gate__input:focus-visible,
.gmav-gate__link:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.gmav-gate--declined .gmav-gate__panel {
	border-top: 4px solid #8a1c12;
}

.gmav-gate__again {
	margin: 1rem 0 0;
	font-size: 0.875rem;
}

.gmav-gate__link {
	color: #2271b1;
}

/* The checkout's own confirmation row. */

.gmav-checkout {
	margin: 0 0 1rem;
}

.gmav-checkout__label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	line-height: 1.4;
}

.gmav-checkout__input {
	margin-top: 0.2rem;
}

.gmav-checkout__text {
	font-size: 0.9375rem;
}

@media ( prefers-color-scheme: dark ) {

	.gmav-gate__panel {
		background: #1e1e1e;
		color: #f0f0f1;
	}

	.gmav-gate__button--yes {
		background: #f0f0f1;
		color: #1e1e1e;
	}

	.gmav-gate__button--no {
		color: #f0f0f1;
	}

	.gmav-gate__label {
		color: #c3c4c7;
	}
}
