.pop-reklam-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 10, 14, 0.65);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pop-reklam-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.pop-reklam-overlay[hidden] {
	display: none !important;
}

.pop-reklam-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: auto;
	max-width: min(340px, calc(100vw - 32px));
	transform: translateY(10px) scale(0.97);
	transition: transform 0.28s ease;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.pop-reklam-overlay.is-visible .pop-reklam-dialog {
	transform: translateY(0) scale(1);
}

.pop-reklam-label {
	display: block;
	padding: 8px 12px;
	background: #1a1a1a;
	color: #f0f0f0 !important;
	font: 600 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pop-reklam-banner-link {
	display: block;
	line-height: 0;
	background: #0d0d0d;
}

.pop-reklam-banner {
	display: block;
	width: 100%;
	height: auto;
	max-width: 340px;
	max-height: min(52vh, 420px);
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
	border: 0;
	background: transparent;
}

.pop-reklam-footer {
	display: flex;
	justify-content: flex-end;
	padding: 10px 10px 12px;
	background: #151515;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

a.pop-reklam-close,
.pop-reklam-close {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 !important;
	padding: 11px 20px !important;
	min-width: 110px;
	background: #e11d2e !important;
	color: #ffffff !important;
	text-decoration: none !important;
	font: 700 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
	border: 2px solid #fff !important;
	border-radius: 4px;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 6px 16px rgba(225, 29, 46, 0.35);
	cursor: pointer;
	float: none !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

a.pop-reklam-close:hover,
a.pop-reklam-close:focus,
.pop-reklam-close:hover,
.pop-reklam-close:focus {
	background: #ff2a3d !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}

a.pop-reklam-close::before {
	content: "✕";
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

body.pop-reklam-lock {
	overflow: hidden;
}

@media (max-width: 640px) {
	.pop-reklam-overlay {
		padding: 12px;
		align-items: center;
	}

	.pop-reklam-dialog {
		max-width: min(300px, calc(100vw - 24px));
	}

	.pop-reklam-banner {
		max-height: min(48vh, 360px);
	}

	.pop-reklam-footer {
		justify-content: stretch;
	}

	a.pop-reklam-close,
	.pop-reklam-close {
		width: 100%;
	}
}
