/**
 * Kilowheelz Membership Guard — front-end styles.
 * Goal: impossible to ignore. Big, high-contrast, centered, dimmed backdrop.
 */

.kw-guard-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999; /* Above sticky headers, mini-carts, etc. */
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 12, 20, 0.82);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.kw-guard-overlay.kw-guard-open {
	display: flex;
	animation: kw-guard-fade 0.18s ease-out;
}

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

.kw-guard-modal {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 16px;
	border: 4px solid #d8222a;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
	padding: 36px 34px 30px;
	text-align: center;
	animation: kw-guard-pop 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes kw-guard-pop {
	from { transform: scale(0.88); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.kw-guard-badge {
	width: 74px;
	height: 74px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #d8222a;
	color: #fff;
	font-size: 48px;
	font-weight: 800;
	line-height: 74px;
	font-family: Georgia, "Times New Roman", serif;
}

.kw-guard-heading {
	margin: 0 0 14px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	color: #1a1a1a;
	letter-spacing: 0.2px;
}

.kw-guard-message {
	margin: 0 0 18px;
	font-size: 19px;
	line-height: 1.55;
	color: #333;
}

.kw-guard-item {
	margin: 0 0 26px;
	font-size: 17px;
	color: #555;
}

.kw-guard-item-label {
	font-weight: 700;
	color: #1a1a1a;
}

.kw-guard-item-name {
	font-weight: 600;
}

.kw-guard-actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.kw-guard-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 18px 20px;
	font-size: 19px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.06s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.kw-guard-btn:active {
	transform: translateY(1px);
}

/* Primary intent: knowingly extend the membership. */
.kw-guard-keep {
	background: #1f7a37;
	color: #fff;
	box-shadow: 0 6px 16px rgba(31, 122, 55, 0.35);
}

.kw-guard-keep:hover {
	filter: brightness(1.08);
}

/* Secondary: get it out of the cart. */
.kw-guard-remove {
	background: #fff;
	color: #d8222a;
	border: 3px solid #d8222a;
}

.kw-guard-remove:hover {
	background: #fdecec;
}

.kw-guard-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Phones — keep everything large but fit the viewport. */
@media (max-width: 480px) {
	.kw-guard-modal {
		padding: 28px 20px 24px;
		border-width: 3px;
	}
	.kw-guard-heading { font-size: 24px; }
	.kw-guard-message { font-size: 18px; }
	.kw-guard-btn     { font-size: 18px; padding: 16px; }
}
