/* =========================================================================
   Pop-up de newsletter da home (<dialog>) — inc/forms/popup-newsletter.php.
   Medidas copiadas do JetPopup de produção: 501 px (90% no celular), padding 24,
   cantos de 11, fundo bg-popup.png, campos translúcidos de 48 px e botão laranja.
   ========================================================================= */

.popup-newsletter {
	width: 501px;
	max-width: 90vw;
	max-height: 100dvh;
	padding: 24px;
	border: 0;
	border-radius: 11px;
	background: #fff var(--popup-newsletter-fundo, none) center / cover no-repeat;
	color: var(--branco);
	font-family: var(--fonte-titulo);
	overflow: auto;
}
.popup-newsletter::backdrop { background: rgba(0, 0, 0, .5); }
.popup-newsletter[open] { animation: popup-newsletter-entrar .3s ease-out; }

@keyframes popup-newsletter-entrar { from { opacity: 0; } }

.popup-newsletter__fechar {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--branco);
}
.popup-newsletter__fechar svg { width: 18px; height: 18px; }

.popup-newsletter__titulo {
	margin: 0 0 20px;
	color: var(--branco);
	font-family: var(--fonte-titulo);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.popup-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.popup-newsletter__campo {
	width: 100%;
	height: 48px;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, .3);
	color: var(--branco);
	font-family: inherit;
	font-size: 16px; /* 16px evita o zoom automático do iOS */
	outline: none;
}
.popup-newsletter__campo::placeholder { color: var(--branco); opacity: 1; }
.popup-newsletter__campo:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

.popup-newsletter__aceite {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-bottom: 25px; /* 15 + 25 = 40 até o botão, como em produção */
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.popup-newsletter__aceite input { flex: none; width: 13px; height: 13px; margin: 2px 0 0; accent-color: #ff8b41; }
.popup-newsletter__aceite a { color: var(--branco); text-decoration: underline; }

.popup-newsletter__botao {
	width: 100%;
	height: 56px;
	margin-bottom: 15px; /* produção: 519 px de altura no computador */
	padding: 16px 12px;
	border: 0;
	border-radius: 8px;
	background: #ff8b41;
	color: var(--branco);
	font-family: inherit;
	font-size: 16px;
	cursor: pointer;
	transition: filter .2s ease;
}
.popup-newsletter__botao:hover { filter: brightness(1.06); }
.popup-newsletter__botao:disabled { cursor: wait; opacity: .8; }

@media (max-width: 767px) {
	.popup-newsletter__titulo { font-size: 18px; }
}
