/* Duplicate Order Guard - checkout popup. Author: Jahidul Islam (https://jahidulislam.site/) */
html.dog-no-scroll {
	overflow: hidden;
}

.dog-overlay {
	--dog-accent: #2563eb;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	animation: dog-fade 0.18s ease-out;
}

.dog-dialog {
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px 28px 24px;
	text-align: center;
	background: #fff;
	color: #1e293b;
	border-radius: 18px;
	box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
	animation: dog-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.dog-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	border-radius: 50%;
	color: var(--dog-accent);
	background: color-mix(in srgb, var(--dog-accent) 14%, #fff);
}

.dog-title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #0f172a;
}

.dog-message {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.6;
	color: #475569;
}

.dog-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dog-btn {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 13px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 12px;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.dog-btn:focus-visible,
.dog-support:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--dog-accent) 45%, transparent);
	outline-offset: 2px;
}

.dog-btn-primary {
	color: #fff;
	background: var(--dog-accent);
}

.dog-btn-primary:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--dog-accent) 35%, transparent);
}

.dog-btn-ghost {
	color: #475569;
	background: #f1f5f9;
}

.dog-btn-ghost:hover {
	background: #e2e8f0;
}

.dog-support {
	display: inline-block;
	margin-top: 16px;
	font-size: 14px;
	color: var(--dog-accent);
	text-decoration: underline;
}

@keyframes dog-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes dog-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

@media (min-width: 480px) {
	.dog-actions {
		flex-direction: row;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dog-overlay,
	.dog-dialog {
		animation: none;
	}
	.dog-btn {
		transition: none;
	}
}
