/* BOGO stock guard window (custom-files/bogo-stock-guard.php, assets/js/bogo-stock-guard.js). Loaded on its own, only
   while a buy-X-get-X rule runs. It covers the page and has no close button: the customer has to answer it. */
html.co-bogo-guard-open { overflow: hidden; }

/* the <dialog> itself is the full-screen layer; its box is centered inside */
.co-bogo-guard {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 16px;
	border: 0;
	z-index: 2147483000;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.62);
}
.co-bogo-guard[open] { display: flex; }
.co-bogo-guard::backdrop { background: transparent; }

.co-bogo-guard__box {
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	border-top: 6px solid var(--color-accent, #c13124);
	border-radius: 8px;
	background: var(--color-bg, #fff);
	color: var(--color-ink, #1c1c1c);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	font-family: var(--font-primary, inherit);
}

.co-bogo-guard__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	line-height: 1.25;
	color: var(--color-accent, #c13124);
}

.co-bogo-guard__intro { margin: 0 0 12px; font-size: 1rem; line-height: 1.45; }

.co-bogo-guard__list { margin: 0 0 20px; padding: 0; list-style: none; }
.co-bogo-guard__list li {
	padding: 10px 12px;
	margin-bottom: 8px;
	border-radius: 6px;
	background: var(--color-accent-tint, #fff4f3);
	line-height: 1.4;
}
.co-bogo-guard__list strong { display: block; margin-bottom: 2px; }

.co-bogo-guard__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.co-bogo-guard__actions button {
	min-height: 48px;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
.co-bogo-guard__fix { border: 2px solid var(--color-ink, #1c1c1c); background: var(--color-bg, #fff); color: var(--color-ink, #1c1c1c); }
.co-bogo-guard__go { border: 2px solid var(--color-accent, #c13124); background: var(--color-accent, #c13124); color: #fff; }
.co-bogo-guard__actions button:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.co-bogo-guard__actions button:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 480px) {
	.co-bogo-guard__box { padding: 18px; }
	.co-bogo-guard__actions button { flex: 1 1 100%; }
}
