/* Ad Popup Banner - Frontend Styles */

.apb-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.apb-popup-overlay.apb-visible {
	display: flex;
	opacity: 1;
}

.apb-popup-box {
	position: relative;
	width: 100%;
	max-width: 96vh;
	max-height: 98vh;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	transform: scale(0.92);
	transition: transform 0.25s ease;
}

.apb-popup-overlay.apb-visible .apb-popup-box {
	transform: scale(1);
}

.apb-popup-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 750px;
	object-fit: contain;
	margin: 0 auto;
}

.apb-popup-box [type=button], 
.apb-popup-box button,
.apb-popup-box .apb-popup-close,
.apb-popup-close {
	position: absolute  !important;
	top: 0px  !important;
	right: 0px  !important;
	width: 36px  !important;
	height: 36px  !important;
	border-radius: 50%  !important;
	border: none;
	background: #ffffff !important;
	color: #222 !important;
	font-size:2.6em !important;
	font-weight: bold  !important;
	line-height: 1  !important;
	cursor: pointer  !important;
	display: flex  !important;
	align-items: center  !important;
	justify-content: center  !important;
	z-index: 2  !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3)  !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease  !important;
	padding:0 !important;
}

.apb-popup-close:hover,
.apb-popup-close:focus {
	background: #ffffff;
	transform: scale(1.08);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Responsive breakpoints */
@media (max-width: 782px) {
	.apb-popup-box {
		max-width: 95%;
	}
	.apb-popup-close {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.apb-popup-overlay {
		padding: 10px;
	}
	.apb-popup-box {
		max-width: 100%;
		border-radius: 4px;
	}
}

body.apb-no-scroll {
	overflow: hidden;
}
