/* Champ téléphone international (intl-tel-input) : compte / panier > coordonnées */

/* Le conteneur de la librairie est inline-block par défaut : le champ doit garder la largeur du formulaire */
.iti {
	display: block;
	width: 100%;
}

.iti input.formattel {
	width: 100%;
}

/* Formulaires du thème (label.floated-label en flex) : le thème dimensionne directement l'input,
   on reporte ses largeurs sur le conteneur de la librairie pour garder l'alignement avec les autres champs */
label.floated-label > .iti {
	flex: 1 1 auto;
	width: auto;
	max-width: 50%;
}

label.floated-label > .iti input.formattel {
	width: 100%;
	max-width: none;
	margin: 0;
}

@media screen and (min-width: 1200px) {
	label.floated-label > .iti {
		width: 60%;
		max-width: 60%;
	}
}

@media screen and (max-width: 780px) {
	label.floated-label > .iti {
		width: 50%;
	}
}

@media screen and (max-width: 580px) {
	label.floated-label > .iti {
		width: 100%;
		max-width: 100%;
		margin: 0.5em 0 0;
	}
}

/* Message d'erreur sur sa propre ligne, aligné sous le champ (classe ajoutée par telephone.js) */
label.floated-label.telephone-label {
	flex-wrap: wrap;
}

label.floated-label > .telephone-erreur {
	margin-left: auto;
	width: 50%;
}

@media screen and (min-width: 1200px) {
	label.floated-label > .telephone-erreur {
		width: 60%;
	}
}

@media screen and (max-width: 580px) {
	label.floated-label > .telephone-erreur {
		width: 100%;
	}
}

/* La liste des pays doit passer au-dessus des blocs suivants du formulaire */
.iti__country-list {
	z-index: 1000;
	max-width: 320px;
	white-space: normal;
}

.formattel.telephone-invalide {
	border-color: #c0392b;
}

.telephone-erreur {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: #c0392b;
}
