/*
 * Liste d'attente des tailles en rupture (1.11.0) : « Prévenez-moi ».
 * Couleurs du theme, avec des valeurs de repli.
 */

.sbg-alerte {
	--al-pine: var(--sbg-pine, #046865);
	--al-encre: var(--sbg-encre, #372D33);
	--al-ligne: var(--sbg-pine-100, #D8E2DC);
	--al-gris: #5A6B66;
	position: relative;
	z-index: 2; /* devant le lien qui couvre la carte */
	margin: 0;
	color: var(--al-encre);
}

.sbg-alerte__ouvrir {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 40px;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--al-pine);
	border-radius: 999px;
	color: var(--al-pine);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	list-style: none;
	text-align: center;
}

.sbg-alerte__ouvrir::-webkit-details-marker {
	display: none;
}

.sbg-alerte__ouvrir::before {
	content: "";
	width: 1em;
	height: 1em;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sbg-alerte__ouvrir:hover,
.sbg-alerte__ouvrir:focus-visible,
.sbg-alerte[open] .sbg-alerte__ouvrir {
	background: var(--al-pine);
	color: #fff;
}

.sbg-alerte__form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0.75rem 0 0;
}

.sbg-alerte__champ {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
}

.sbg-alerte__champ label {
	font-size: 0.8rem;
	font-weight: 600;
}

.sbg-alerte__champ input,
.sbg-alerte__champ select {
	width: 100%;
	min-height: 42px;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--al-ligne);
	border-radius: 10px;
	background: #fff;
	color: var(--al-encre);
	font: inherit;
	font-size: 16px; /* pas de zoom automatique sur iPhone */
	box-sizing: border-box;
}

.sbg-alerte__champ input:focus,
.sbg-alerte__champ select:focus {
	outline: 2px solid var(--al-pine);
	outline-offset: 1px;
}

.sbg-alerte__envoyer {
	min-height: 42px;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--sbg-berry, #F02848);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
}

.sbg-alerte__envoyer:hover,
.sbg-alerte__envoyer:focus-visible {
	background: #C32C53;
}

.sbg-alerte__aide {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--al-gris);
}

.sbg-alerte__retour {
	margin: 0.6rem 0 0;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	background: #FFF0F3;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.45;
}

.sbg-alerte__retour--ok {
	background: #EFF9EF;
}

.sbg-alerte__piege {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Sur la fiche : un encart sous le configurateur. */
.sbg-alerte--fiche {
	max-width: 420px;
	margin-top: 1rem;
}

.sbg-alerte--fiche .sbg-alerte__ouvrir {
	justify-content: flex-start;
	border-style: dashed;
}
