.ksf-promo-popup[hidden] {
	display: none;
}

.ksf-promo-popup {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ksf-promo-popup.is-open {
	opacity: 1;
}

.ksf-promo-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.68);
	backdrop-filter: blur(2px);
}

.ksf-promo-popup-dialog {
	position: relative;
	z-index: 1;
	max-width: min(460px, 92vw);
	max-height: 90vh;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
	transform: scale(0.95);
	transition: transform 0.25s ease;
}

.ksf-promo-popup.is-open .ksf-promo-popup-dialog {
	transform: scale(1);
}

.ksf-promo-popup-link {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	line-height: 0;
}

.ksf-promo-popup-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 86vh;
	object-fit: contain;
}

.ksf-promo-popup-close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid #ffffff;
	border-radius: 9999px;
	background: #0f172a;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.ksf-promo-popup-close:hover,
.ksf-promo-popup-close:focus-visible {
	background: #008848;
	transform: scale(1.06);
	outline: none;
}

@media (max-width: 480px) {
	.ksf-promo-popup-close {
		top: -10px;
		right: -6px;
		width: 34px;
		height: 34px;
	}
}
