/* Amazon Affiliate Popup Frontend Styles */
.aap-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	animation: aapFadeIn 0.3s ease forwards;
}
.aap-popup-overlay.aap-active {
	display: flex;
}

.aap-popup {
	position: relative;
	max-width: 92vw;
	max-height: 90vh;
	overflow-y: auto;
	animation: aapScaleIn var(--aap-duration, 400ms) ease forwards;
}
.aap-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: rgba(0,0,0,0.08);
	color: #333;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.2s;
	z-index: 10;
}
.aap-popup-close:hover { background: rgba(0,0,0,0.15); }
.aap-popup-header {
	padding: 18px 24px;
	color: #fff;
	font-weight: 700;
	text-align: center;
}
.aap-popup-title { display: block; }
.aap-popup-body { text-align: center; }
.aap-popup-badge {
	display: inline-block;
	background: #232f3e;
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 12px;
	margin-bottom: 12px;
}
.aap-popup-image-wrap {
	margin: 12px 0;
}
.aap-popup-image {
	max-width: 100%;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}
.aap-popup-image:hover { transform: scale(1.05); }
.aap-popup-product-name {
	margin: 8px 0;
	font-size: 1.3em;
	font-weight: 700;
}
.aap-popup-trust {
	margin: 6px 0 16px;
	font-size: 0.9em;
	opacity: 0.8;
}
.ap-popup-cta {
	display: inline-block;
	padding: 14px 28px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	font-size: 1em;
	transition: all 0.2s ease;
	animation: aapPulse 2s infinite;
}
.ap-popup-cta:hover {
	filter: brightness(1.1);
	text-decoration: none;
	color: #fff;
}
@keyframes aapFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aapScaleIn {
	from { opacity: 0; transform: scale(0.85) translateY(20px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes aapPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255,153,0,0.5); }
	50% { box-shadow: 0 0 0 12px rgba(255,153,0,0); }
}
@media (max-width: 480px) {
	.aap-popup { width: 92vw !important; }
}
