/* PrecisoCriar Anúncios — front-end */
.pcan-zone {
	--pcan-w: var(--pcan-dw, 100%);
	--pcan-r: var(--pcan-dr, auto);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 24px auto;
	clear: both;
	box-sizing: border-box;
}
.pcan-zone *,
.pcan-zone *::before,
.pcan-zone *::after { box-sizing: border-box; }

.pcan-align-left { align-items: flex-start; }
.pcan-align-right { align-items: flex-end; }

.pcan-label {
	display: block;
	width: 100%;
	max-width: var(--pcan-w);
	margin: 0 0 4px;
	font: 500 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a8f98;
	text-align: center;
}
.pcan-align-left .pcan-label { text-align: left; }
.pcan-align-right .pcan-label { text-align: right; }

.pcan-stage {
	position: relative;
	width: 100%;
	max-width: var(--pcan-w);
	aspect-ratio: var(--pcan-r);
	overflow: hidden;
	line-height: 0;
}
.pcan-stage[data-type="html"] { aspect-ratio: auto; min-height: 0; line-height: normal; overflow: visible; }

.pcan-slide { width: 100%; height: 100%; }
.pcan-slide.pcan-in { animation: pcanFade .5s ease; }
@keyframes pcanFade { from { opacity: 0; } to { opacity: 1; } }

.pcan-stage picture,
.pcan-stage a.pcan-link { display: block; width: 100%; height: 100%; }
.pcan-stage img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.pcan-zone[style*="--pcan-dr:auto"] .pcan-stage img { height: auto; }

.pcan-html { width: 100%; text-align: center; }
.pcan-html iframe { max-width: 100%; }

/* Vários anúncios juntos: colunas ou linhas */
.pcan-zone { --pcan-cols: var(--pcan-dc, 1); }
.pcan-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--pcan-gap, 20px);
	width: 100%;
}
.pcan-align-left .pcan-grid { justify-content: flex-start; }
.pcan-align-right .pcan-grid { justify-content: flex-end; }
.pcan-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	flex: 0 0 calc((100% - (var(--pcan-cols) - 1) * var(--pcan-gap, 20px)) / var(--pcan-cols));
}
.pcan-align-left .pcan-cell { align-items: flex-start; }
.pcan-align-right .pcan-cell { align-items: flex-end; }

/* Indicadores do carrossel */
.pcan-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; line-height: 0; }
.pcan-dots button {
	width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
	background: #cfd3d8; cursor: pointer; transition: all .25s;
}
.pcan-dots button.is-active { width: 18px; border-radius: 4px; background: #0c8a43; }

/* Rodapé fixo */
.pcan-sticky {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 99990;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
	transform: translateY(110%);
	transition: transform .35s ease;
}
.pcan-sticky.is-ready { transform: none; }
.pcan-sticky .pcan-zone { margin: 0 auto; }
.pcan-sticky .pcan-label { display: none; }
.pcan-sticky .pcan-close { top: -26px; right: 8px; border-radius: 6px 6px 0 0; box-shadow: 0 -3px 8px rgba(0,0,0,.1); }

.pcan-close {
	position: absolute;
	z-index: 2;
	width: 28px; height: 26px;
	padding: 0;
	border: 0;
	background: #fff;
	color: #333;
	font: 400 20px/26px Arial, sans-serif;
	cursor: pointer;
}
.pcan-close:hover { color: #000; }

/* Pop-up */
.pcan-popup {
	position: fixed; inset: 0;
	z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	background: rgba(10, 14, 20, .6);
	opacity: 0;
	transition: opacity .25s ease;
}
.pcan-popup[hidden] { display: none; }
.pcan-popup.is-open { opacity: 1; }
.pcan-popup-box {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	padding: 12px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	transform: scale(.94);
	transition: transform .25s ease;
}
.pcan-popup.is-open .pcan-popup-box { transform: none; }
.pcan-popup .pcan-zone { margin: 0; width: min(90vw, var(--pcan-w)); }
.pcan-popup .pcan-close { top: -12px; right: -12px; border-radius: 50%; width: 32px; height: 32px; line-height: 32px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
html.pcan-lock, html.pcan-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.pcan-slide.pcan-in, .pcan-sticky, .pcan-popup, .pcan-popup-box { animation: none; transition: none; }
}

/* Proteção contra estilos de botão do tema */
.pcan-dots button,
.pcan-dots button:hover,
.pcan-dots button:focus {
	min-width: 0 !important; min-height: 0 !important;
	width: 7px !important; height: 7px !important;
	padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important;
	background: #cfd3d8 !important; box-shadow: none !important;
	font-size: 0 !important; line-height: 0 !important;
}
.pcan-dots button.is-active { width: 18px !important; border-radius: 4px !important; background: #0c8a43 !important; }
.pcan-dots button:focus-visible { outline: 2px solid #f7c600 !important; outline-offset: 2px; }
button.pcan-close,
button.pcan-close:hover,
button.pcan-close:focus {
	min-width: 0 !important; min-height: 0 !important;
	padding: 0 !important; margin: 0 !important;
	border: 0 !important;
	background: #fff !important; color: #333 !important;
	font: 400 20px/26px Arial, sans-serif !important;
	text-transform: none !important; letter-spacing: 0 !important;
}
.pcan-popup button.pcan-close { line-height: 32px !important; }
button.pcan-close:focus-visible { outline: 2px solid #f7c600 !important; }

/* Widget do Elementor */
.elementor-widget-pcan-anuncios .pcan-zone { margin-top: 0; margin-bottom: 0; }
.pcan-el-hover-yes .pcan-stage img { transition: transform .35s ease; }
.pcan-el-hover-yes .pcan-stage:hover img { transform: scale(1.03); }
.pcan-el-empty {
	display: flex; align-items: center; gap: 12px;
	padding: 18px 20px;
	border: 2px dashed #b9d9c6; border-radius: 12px;
	background: #f2faf5;
	font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #3d4d45;
}
.pcan-el-empty strong { display: block; color: #0f1a14; font-size: 14px; }
.pcan-el-logo {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 34px; height: 34px; border-radius: 10px;
	background: linear-gradient(135deg, #12a150 0%, #0b7a3e 60%, #075a2d 100%);
	color: #ffd200; font: 800 17px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-shadow: inset 0 -3px 0 #ffd200;
}

/* Ícone do plugin no selo da marca (no lugar da letra P). */
.pcan-el-logo svg { display: block; width: 56%; height: 56%; }
