/*
 * A página "em breve" do pré-lançamento e o formulário da newsletter ([fcs_loja_newsletter]), nas duas
 * marcas: as cores vêm do tema (o azul da FCS, o dourado do oconvite.pt e o verde do sitepronto.pt).
 */

body {
	--fcs-pre-azul: var(--fcs-azul, #00095f);
	--fcs-pre-destaque: var(--fcs-dourado, #a8864d);
	--fcs-pre-linha: #e3d8c6;
	--fcs-pre-cartao: #fff;
	--fcs-pre-erro: #a3261b;
}

body.fcs-marca--sitepronto {
	--fcs-pre-destaque: var(--fcs-sp-verde-escuro, #067a55);
	--fcs-pre-linha: var(--fcs-sp-linha, #dfe3f3);
}

/* Os pontos do "o que é", com uma captura de cada. */
.fcs-loja-pre-pontos {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
	padding: 0;
	list-style: none;
}

@media (min-width: 48rem) {
	.fcs-loja-pre-pontos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 72rem) {
	.fcs-loja-pre-pontos {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fcs-loja-pre-ponto {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 1.25rem;
	border: 1px solid var(--fcs-pre-linha, #e3d8c6);
	border-radius: 14px;
	background: var(--fcs-pre-cartao, #fff);
}

.fcs-loja-pre-ponto img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 390 / 520;
	object-fit: cover;
	object-position: top;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgb(0 9 95 / 0.08), 0 8px 24px rgb(0 9 95 / 0.08);
}

.fcs-loja-pre-ponto h3 {
	margin: 0.25rem 0 0;
	font-size: 1.125rem;
	line-height: 1.3;
}

.fcs-loja-pre-ponto p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.fcs-loja-pre-precos {
	margin-top: 1.5rem;
	font-weight: 600;
	text-align: center;
}

/* O passo de uma ligação dos emails (a confirmação ou o cancelamento), sozinho no topo da página: o
   cartão com o botão logo a seguir ao título, com espaço por baixo até ao rodapé. */
.fcs-loja-pre-passo {
	padding-bottom: clamp(2.5rem, 8vw, 4.5rem);
}

.fcs-loja-pre-passo .fcs-loja-newsletter {
	margin-top: 1rem;
}

/* O formulário. */
.fcs-loja-newsletter {
	max-width: 36rem;
	margin: 0 auto;
	scroll-margin-top: 6rem;
}

.fcs-loja-newsletter__chamada {
	margin: 0 0 1.25rem;
	font-size: 1.0625rem;
	line-height: 1.55;
	text-align: center;
}

.fcs-loja-newsletter__formulario,
.fcs-loja-newsletter__passo {
	display: grid;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--fcs-pre-linha, #e3d8c6);
	border-radius: 16px;
	background: #fff;
}

.fcs-loja-newsletter__passo {
	justify-items: center;
}

.fcs-loja-newsletter__linha {
	display: grid;
	gap: 0.375rem;
}

.fcs-loja-newsletter__rotulo {
	font-weight: 600;
}

.fcs-loja-newsletter__email {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid #8a8fa6;
	border-radius: 10px;
	background: #fff;
	color: #1b1f33;
	font: inherit;
}

.fcs-loja-newsletter__email:focus-visible {
	outline: 3px solid var(--fcs-pre-azul, #00095f);
	outline-offset: 2px;
}

.fcs-loja-newsletter__caixa {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 0.75rem;
	align-items: start;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.fcs-loja-newsletter__caixa input {
	width: 1.375rem;
	height: 1.375rem;
	margin: 0.1rem 0 0;
	accent-color: var(--fcs-pre-azul, #00095f);
}

.fcs-loja-newsletter__caixa .fcs-loja-newsletter__erro {
	grid-column: 2;
}

.fcs-loja-newsletter__caixa a {
	color: inherit;
	text-decoration: underline;
}

.fcs-loja-newsletter .wp-block-buttons {
	margin: 0;
}

.fcs-loja-newsletter button.wp-block-button__link {
	min-height: 2.75rem;
	cursor: pointer;
}

.fcs-loja-newsletter__erro {
	margin: 0;
	color: var(--fcs-pre-erro, #a3261b);
	font-size: 0.875rem;
	font-weight: 600;
}

.fcs-loja-newsletter__estado:empty {
	display: none;
}

.fcs-loja-newsletter__estado,
.fcs-loja-newsletter__aviso {
	margin: 0;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: #eef6f1;
	color: #12372a;
	line-height: 1.55;
}

.fcs-loja-newsletter__aviso--erro {
	margin-bottom: 1rem;
	background: #fbeceb;
	color: #5c1610;
}

.fcs-loja-newsletter__condicao {
	margin: 1rem 0 0;
	color: #4a4f66;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
}

/* A armadilha dos robôs fica fora do ecrã e dos leitores de ecrã. */
.fcs-loja-newsletter__armadilha {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
