/* =========================================================
   Chico Popups — Frontend CSS v1.0.1
   ========================================================= */

#cp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.35s ease;
	padding: 16px;
	box-sizing: border-box;
}
#cp-overlay.cp-visible { opacity: 1; }

/* Box sem background — evita borda branca nas quinas */
#cp-modal-box {
	position: relative;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
	background: transparent;
	transform: translateY(22px) scale(0.96);
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
}
#cp-overlay.cp-visible #cp-modal-box {
	transform: translateY(0) scale(1);
}

/* Imagem clicável — ocupa todo o box, sem gaps */
#cp-modal-link {
	display: block;
	line-height: 0;
	flex: 1;
}
#cp-modal-img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 85vh;
	object-fit: contain;
}

/* Botão fechar — grande e bem visível */
#cp-close-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	border: 2px solid rgba(255, 255, 255, 0.7);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: background 0.15s, transform 0.15s, border-color 0.15s;
	padding: 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
#cp-close-btn:hover {
	background: rgba(0, 0, 0, 0.92);
	border-color: #fff;
	transform: scale(1.1);
}
#cp-close-btn:active {
	transform: scale(0.96);
}

/* Indicadores de progresso — sobre fundo escuro, sobreposto na imagem */
#cp-dots {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 7px;
	padding: 10px 0 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.cp-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,0.45);
	transition: background 0.2s, transform 0.2s;
}
.cp-dot.active {
	background: #fff;
	transform: scale(1.3);
}

/* Mobile */
@media (max-width: 480px) {
	#cp-modal-box { border-radius: 10px; max-width: 100%; }
	#cp-close-btn { width: 36px; height: 36px; font-size: 16px; top: 8px; right: 8px; }
}
