/* WK-Reifen Promotional Radwechsel Popup
 * Layout matches client flyer; red → brand blue.
 */

.wk-promo-popup {
	--wk-promo-accent: #2b6def;
	--wk-promo-accent-dark: #1f5ad4;
	--wk-promo-dark: #1f1f1f;
	--wk-promo-text: #1a1a1a;
	--wk-promo-muted: #333333;
	--wk-promo-line: #e5e5e5;
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: Montserrat, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.wk-promo-popup[hidden] {
	display: none !important;
}

.wk-promo-popup *,
.wk-promo-popup *::before,
.wk-promo-popup *::after {
	box-sizing: border-box;
}

.wk-promo-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.wk-promo-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 500px;
	max-height: calc(100vh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 6px;
	border: 1px solid #d0d0d0;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
	animation: wk-promo-in 0.3s ease-out;
}

@keyframes wk-promo-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.wk-promo-popup .wk-promo-popup__close,
.wk-promo-popup button.wk-promo-popup__close {
	position: absolute !important;
	top: 2px !important;
	right: 2px !important;
	left: auto !important;
	z-index: 5;
	width: 36px !important;
	height: 36px !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #ffffff;
	font-size: 32px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.wk-promo-popup .wk-promo-popup__close:hover,
.wk-promo-popup .wk-promo-popup__close:focus {
	color: #2b6def !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* ===== TOP: left copy + right diagonal-cut image ===== */
.wk-promo-popup__top {
	display: grid;
	grid-template-columns: 1.15fr 0.95fr;
	align-items: stretch;
	min-height: 0;
	background: #fff;
	overflow: hidden;
	border-bottom: 1px solid var(--wk-promo-line);
}

.wk-promo-popup__top-left {
	padding: 16px 12px 14px 18px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	text-align: left;
	gap: 8px;
	z-index: 2;
}

.wk-promo-popup__logo {
	display: flex;
	justify-content: center;
	width: 100%;
}

.wk-promo-popup__logo img {
	display: block;
	height: 48px;
	width: auto;
	max-width: 190px;
	border-radius: 5px;
	padding: 0;
}

.wk-promo-popup__headline {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wk-promo-text);
}

.wk-promo-popup__headline span {
	color: var(--wk-promo-accent);
}

.wk-promo-popup__sub {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.4;
	color: var(--wk-promo-muted);
}

.wk-promo-popup__sub span {
	color: var(--wk-promo-accent);
	font-weight: 700;
}

.wk-promo-popup__top-right {
	position: relative;
	min-height: 196px;
	clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
	-webkit-clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.wk-promo-popup__top-right img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ===== BODY: offer + checklist ===== */
.wk-promo-popup__body {
	padding: 14px 20px 4px;
	position: relative;
	z-index: 1;
	background: #fff;
}

/* Offer banner with curved right edge + curved accent join */
.wk-promo-popup__offer {
	display: flex;
	align-items: stretch;
	background: var(--wk-promo-dark);
	border-radius: 0 40px 40px 0;
	overflow: visible;
	margin: 0 0 4px;
	min-height: 70px;
	position: relative;
}

.wk-promo-popup__offer-accent {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	flex-shrink: 0;
	background: var(--wk-promo-accent);
	border-radius: 0 28px 28px 0;
	position: relative;
	z-index: 1;
	margin-right: -10px;
}

.wk-promo-popup__offer-accent svg {
	width: 28px;
	height: 28px;
	display: block;
}

.wk-promo-popup__offer-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px 22px 10px 22px;
	color: #fff;
}

.wk-promo-popup__offer-label {
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.2;
}

.wk-promo-popup__offer-amount {
	font-size: 1.95rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wk-promo-accent);
	margin: 1px 0 2px;
}

.wk-promo-popup__offer-note {
	font-size: 0.7rem;
	line-height: 1.3;
	opacity: 0.92;
}

.wk-promo-popup__list {
	list-style: none;
	margin: 0;
	padding: 2px 0 6px;
}

.wk-promo-popup__list li {
	display: grid;
	grid-template-columns: 26px 1fr 30px;
	gap: 10px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid var(--wk-promo-line);
}

.wk-promo-popup__list li:last-child {
	border-bottom: 1px solid var(--wk-promo-line);
}

.wk-promo-popup__check {
	color: #2b6def !important;
	width: 26px;
	height: 26px;
	display: block;
}

.wk-promo-popup__check svg {
	width: 26px;
	height: 26px;
	display: block;
	fill: currentColor;
}

.wk-promo-popup__list-text {
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--wk-promo-text);
}

.wk-promo-popup__list-text strong {
	color: var(--wk-promo-accent);
	font-weight: 800;
}

.wk-promo-popup__list-icon {
	color: #2b6def !important;
	justify-self: end;
	width: 28px;
	height: 28px;
}

.wk-promo-popup__list-icon svg {
	width: 28px;
	height: 28px;
	display: block;
	stroke: #2b6def !important;
	color: #2b6def !important;
}

/* ===== USP bar: icon LEFT + text RIGHT, with separators ===== */
.wk-promo-popup__features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--wk-promo-dark);
	padding: 0;
	border-top: 1px solid #2e2e2e;
}

.wk-promo-popup__feature {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 4px;
	color: #fff;
	font-size: 0.52rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: left;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.wk-promo-popup__feature:last-child {
	border-right: none;
}

.wk-promo-popup__feature-icon {
	color: #5b9cff !important;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.wk-promo-popup__feature-icon svg {
	width: 22px;
	height: 22px;
	display: block;
	color: #5b9cff !important;
	stroke: #5b9cff !important;
	fill: none !important;
}

.wk-promo-popup__feature-icon svg path,
.wk-promo-popup__feature-icon svg circle,
.wk-promo-popup__feature-icon svg rect {
	stroke: #5b9cff !important;
}

/* ===== Footer ===== */
.wk-promo-popup__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px 11px;
	background: #fff;
	border-top: 1px solid var(--wk-promo-line);
}

.wk-promo-popup__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--wk-promo-accent);
}

.wk-promo-popup__badge svg {
	width: 22px;
	height: 22px;
	display: block;
}

.wk-promo-popup__tagline {
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wk-promo-text);
	line-height: 1.3;
}

@media (max-width: 520px) {
	.wk-promo-popup__top-left {
		padding: 12px 8px 12px 12px;
		gap: 6px;
	}

	.wk-promo-popup__logo img {
		height: 40px;
		max-width: 160px;
	}

	.wk-promo-popup__headline {
		font-size: 0.88rem;
	}

	.wk-promo-popup__sub {
		font-size: 0.7rem;
	}

	.wk-promo-popup__top-right {
		min-height: 170px;
		clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
		-webkit-clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
	}

	.wk-promo-popup__body {
		padding: 12px 12px 2px;
	}

	.wk-promo-popup__offer {
		border-radius: 0 32px 32px 0;
		min-height: 64px;
	}

	.wk-promo-popup__offer-amount {
		font-size: 1.7rem;
	}

	.wk-promo-popup__feature {
		font-size: 0.45rem;
		gap: 4px;
		padding: 10px 2px;
	}

	.wk-promo-popup__feature-icon,
	.wk-promo-popup__feature-icon svg {
		width: 16px;
		height: 16px;
	}

	.wk-promo-popup__tagline {
		font-size: 0.5rem;
	}
}

body.wk-promo-open {
	overflow: hidden;
}

.wk-cookie-popup:not([hidden]) ~ .wk-promo-popup,
body:has(.wk-cookie-popup:not([hidden])) .wk-promo-popup {
	z-index: 999980;
}
