/*
 * "Continue as guest or log in?" popup — shown once per session to a logged-out visitor
 * leaving the Cart page for Checkout (see includes/checkout-gate.php,
 * assets/checkout-gate.js). Same white-card language as the rest of the site.
 */
.enacoding-checkout-gate[hidden] {
	display: none;
}

.enacoding-checkout-gate {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.enacoding-checkout-gate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
}

.enacoding-checkout-gate__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 26rem;
	padding: 2rem;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 20px 40px rgba( 0, 0, 0, 0.2 );
	box-sizing: border-box;
}

.enacoding-checkout-gate__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: none;
	border: none;
	border-radius: 9999px;
	color: #666;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.enacoding-checkout-gate__close:hover {
	background: #f8f9fa;
	color: #333;
}

.enacoding-checkout-gate__dialog h2 {
	margin: 0 0 0.75rem;
	padding-right: 2rem;
	color: #333;
	font-weight: 800;
	font-size: 1.25rem;
	line-height: 1.3;
}

.enacoding-checkout-gate__dialog p {
	margin: 0 0 1.5rem;
	color: #666;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.enacoding-checkout-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.enacoding-checkout-gate__button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.5rem;
	border-radius: 9999px;
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.enacoding-checkout-gate__button--login {
	background: #008080;
	border: none;
	color: #fff;
}

.enacoding-checkout-gate__button--login:hover {
	background: #006666;
}

.enacoding-checkout-gate__button--guest {
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	color: #333;
}

.enacoding-checkout-gate__button--guest:hover {
	border-color: #008080;
	color: #008080;
}

body.enacoding-checkout-gate-open {
	overflow: hidden;
}
