/* Banner Popup by Dattk + Claude – frontend */
.bpd-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.bpd-overlay *,
.bpd-overlay *::before,
.bpd-overlay *::after {
	box-sizing: border-box;
}
.bpd-overlay.bpd-is-open {
	opacity: 1;
}

.bpd-popup {
	position: relative;
	width: 90vw;
	max-width: 600px;
	margin: 0;
	padding: 0;
	transform: scale(0.95);
	transition: transform 0.25s ease;
}
.bpd-overlay.bpd-is-open .bpd-popup {
	transform: scale(1);
}

.bpd-popup .bpd-link {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	line-height: 0;
	text-decoration: none;
	box-shadow: none;
}
.bpd-popup .bpd-link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}
.bpd-popup picture {
	display: block;
	margin: 0;
}
.bpd-popup .bpd-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 85vh;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.bpd-popup .bpd-image.bpd-fixed-height {
	object-fit: cover;
}

.bpd-popup .bpd-close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.bpd-popup .bpd-close:hover,
.bpd-popup .bpd-close:focus {
	background: #f0f0f0;
	color: #000;
}
.bpd-popup .bpd-close:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.bpd-overlay {
		padding: 16px;
	}
	.bpd-popup .bpd-close {
		top: -12px;
		right: -8px;
	}
}

body.bpd-no-scroll {
	overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
	.bpd-overlay,
	.bpd-popup {
		transition: none;
	}
	.bpd-popup {
		transform: none;
	}
}
