.wds-access-gate {
	box-sizing: border-box;
	border: 1px solid currentColor;
	padding: 1.25em 1.5em;
	margin: 1.5em 0;
}

.wds-access-gate__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	align-items: center;
}

.wds-access-gate__form label[for] {
	flex-basis: 100%;
}

.wds-access-gate__form input[type="email"] {
	flex: 1 1 16em;
}

.wds-access-gate__optin {
	flex-basis: 100%;
}

.wds-access-gate__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.wds-access-gate__privacy {
	font-size: 0.875em;
	opacity: 0.8;
	margin-bottom: 0;
}

.wds-access-gate__status:empty {
	display: none;
}

/* L'attribut hidden doit l'emporter sur les règles d'affichage ci-dessus et sur celles du thème. */
.wds-access-gate [hidden] {
	display: none !important;
}

/* Après un envoi réussi : seule la confirmation reste affichée, mise en avant. */
.wds-access-gate--sent > :not(.wds-access-gate__status) {
	display: none !important;
}

.wds-access-gate--sent {
	display: flex;
	align-items: center;
}

.wds-access-gate--sent .wds-access-gate__status {
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-weight: 700;
	font-size: 1.25em;
	margin: 0;
}

/* Coche verte devant la confirmation (décorative). */
.wds-access-gate--sent .wds-access-gate__status::before {
	content: "";
	flex: 0 0 1.6em;
	width: 1.6em;
	height: 1.6em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231e8e3e'/%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-7.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
