/**
 * =============================================================================
 * PROBAR - AVVISAMI QUANDO TORNA DISPONIBILE (Back in Stock Alert)
 * -----------------------------------------------------------------------------
 * Caricato solo nella scheda prodotto (esaurito o variabile). Estetica
 * nero + oro #FFCE53 + Playfair, coerente con il resto del tema.
 * =============================================================================
 */

.abm-bis {
	margin: 18px 0 10px;
	padding: 20px 22px;
	border: 1px solid #4a3f1e;
	border-radius: 14px;
	background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Prodotto variabile: nasconde il modulo finche' il JS non lo accende
   (variante esaurita selezionata). */
.abm-bis--hidden {
	display: none;
}

.abm-bis__title {
	margin: 0 0 6px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #FFCE53;
}

.abm-bis__lead {
	margin: 0 0 16px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #b9b9b9;
}

/* --- Campo email --- */
.abm-bis-field {
	margin-bottom: 12px;
}

.abm-bis-email {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	border: 1px solid #3a3a3a;
	border-radius: 10px;
	background-color: #050505;
	color: #f2f2f2;
	font-size: 0.98rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.abm-bis-email::placeholder {
	color: #7d7d7d;
}

.abm-bis-email:focus {
	outline: none;
	border-color: #FFCE53;
	box-shadow: 0 0 0 3px rgba(255, 206, 83, 0.18);
}

/* Autofill di Chrome: niente lampo bianco sul tema scuro */
.abm-bis-email:-webkit-autofill,
.abm-bis-email:-webkit-autofill:focus {
	-webkit-text-fill-color: #f2f2f2;
	box-shadow: 0 0 0 1000px #050505 inset;
	transition: background-color 9999s ease-in-out 0s;
}

/* --- Consenso privacy --- */
.abm-bis-consent {
	position: relative;
	display: block;
	padding-left: 30px;
	margin-bottom: 16px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #a9a9a9;
	cursor: pointer;
}

.abm-bis-consent input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid #5a5136;
	border-radius: 6px;
	background-color: #050505;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.abm-bis-consent input[type="checkbox"]:checked {
	border-color: #FFCE53;
	background:
		radial-gradient(circle at center, #FFCE53 42%, transparent 46%),
		#050505;
}

.abm-bis-consent input[type="checkbox"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 206, 83, 0.25);
}

.abm-bis-consent__text a {
	color: #FFCE53;
	text-decoration: underline;
}

/* --- Pulsante --- */
.abm-bis-submit {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 26px;
	background-color: #FFCE53;
	color: #0a0a0a;
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.abm-bis-submit:hover {
	background-color: #ffd873;
	box-shadow: 0 8px 22px rgba(255, 206, 83, 0.25);
}

.abm-bis-submit:active {
	transform: translateY(1px);
}

.abm-bis-submit[disabled] {
	opacity: 0.6;
	cursor: default;
	box-shadow: none;
}

/* --- Messaggio di esito --- */
.abm-bis-msg {
	margin: 12px 0 0;
	font-size: 0.88rem;
	line-height: 1.4;
	min-height: 1em;
}

.abm-bis-msg:empty {
	margin: 0;
}

.abm-bis-msg.is-ok {
	color: #7dd58f;
}

.abm-bis-msg.is-error {
	color: #ff9b8a;
}

/* Stato "invio in corso" sull'intero modulo */
.abm-bis.is-loading .abm-bis-submit {
	opacity: 0.6;
	pointer-events: none;
}

/* Dopo il successo il modulo si compatta: resta solo il messaggio verde */
.abm-bis.is-done .abm-bis-field,
.abm-bis.is-done .abm-bis-consent,
.abm-bis.is-done .abm-bis-submit {
	display: none;
}

/* --- Mobile --- */
@media (max-width: 600px) {
	.abm-bis {
		padding: 18px 16px;
	}
	.abm-bis__title {
		font-size: 1.05rem;
	}
}
