/**
 * Buildzair Partners — custom ads: banner and pop-up.
 */

.bzp-banner-slot {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 16px auto;
	padding-inline: 12px;
}

.bzp-banner-slot:empty {
	display: none;
}

.bzp-banner {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 10px 26px -18px rgba(13, 33, 71, 0.55);
	line-height: 0;
}

.bzp-banner img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.bzp-banner:hover img {
	transform: scale(1.01);
}

.bzp-banner__tag,
.bzp-popup__tag {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(13, 33, 71, 0.72);
	color: #fff;
	font: 600 11px/1.6 system-ui, sans-serif;
	letter-spacing: 0.02em;
}

/* Pop-up */

.bzp-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(8, 18, 40, 0.6);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.bzp-popup.is-open {
	opacity: 1;
}

.bzp-popup__box {
	position: relative;
	width: min(520px, 100%);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}

.bzp-popup.is-open .bzp-popup__box {
	transform: none;
}

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

.bzp-popup__link img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
}

.bzp-popup__close {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0d2147;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bzp-popup__close:focus-visible {
	outline: 3px solid #06CE78;
	outline-offset: 2px;
}

.bzp-popup__timer {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 4px;
	background: #06CE78;
	transform-origin: left;
	animation-name: bzp-popup-timer;
	animation-timing-function: linear;
	animation-fill-mode: forwards;
}

[dir="rtl"] .bzp-popup__timer {
	transform-origin: right;
}

@keyframes bzp-popup-timer {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.bzp-popup,
	.bzp-popup__box,
	.bzp-banner img {
		transition: none;
	}
}
