.wk-promo-open {
	overflow: hidden;
}

/* --wk-promo-ratio and --wk-promo-extra are set by promo-popup.js. Min 320px so landscape phones scroll rather than shrink. */
.wk-promo-popup {
	width: clamp(
		min(320px, calc(100vw - 32px)),
		calc((100dvh - 32px - var(--wk-promo-extra, 0px)) * var(--wk-promo-ratio, 10)),
		min(800px, calc(100vw - 32px))
	);
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	background: #fff;
	overflow: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.wk-promo-popup::-webkit-scrollbar {
	display: none;
}

.wk-promo-popup__content img {
	display: block;
	width: 100%;
	height: auto;
}

.wk-promo-popup::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.wk-promo-popup[open],
.wk-promo-popup[open]::backdrop {
	animation: wk-promo-fade 0.3s ease-out;
}

@keyframes wk-promo-fade {
	from {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wk-promo-popup[open],
	.wk-promo-popup[open]::backdrop {
		animation: none;
	}
}

.wk-promo-popup__bar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
	height: 0;
}

.wk-promo-popup__close {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 8px 8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	cursor: pointer;
}

.wk-promo-popup__close:hover,
.wk-promo-popup__close:focus-visible {
	background: #000;
	color: #fff;
}

.wk-promo-popup__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
