/* Cerko Black Week 2026 - popup kampanii. */

.cerko-bw-popup[hidden] {
	display: none !important;
}

.cerko-bw-popup {
	position: fixed;
	inset: 0;
	z-index: 100000001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cerko-bw-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.cerko-bw-popup__dialog {
	position: relative;
	max-width: min(520px, 90vw);
	max-height: 90vh;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
	animation: cerko-bw-popup-in 0.25s ease-out;
}

.cerko-bw-popup__link {
	display: block;
	line-height: 0;
}

.cerko-bw-popup__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 90vh;
	object-fit: contain;
}

.cerko-bw-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #FFF;
	font-size: 28px;
	line-height: 38px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cerko-bw-popup__close:hover,
.cerko-bw-popup__close:focus-visible {
	background: rgba(0, 0, 0, 0.85);
	outline: 2px solid #FFF;
	outline-offset: 2px;
}

@keyframes cerko-bw-popup-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cerko-bw-popup__dialog {
		animation: none;
	}
}

@media (max-width: 575px) {
	.cerko-bw-popup {
		padding: 16px;
	}
	.cerko-bw-popup__close {
		width: 36px;
		height: 36px;
		font-size: 24px;
		line-height: 34px;
	}
}
