/**
 * Charte v2 — bouton « afficher le mot de passe »
 * Découpé de charte.css (Phase 16 sexdecies F1, vitesse) : cette feuille n'est chargée que sur les écrans qui en ont besoin
 * (voir Charte\Module::satellite), pour ne pas alourdir le premier affichage des autres. Chargée sur les pages compte et commande, et partout où WooCommerce dessine un champ de mot de passe.
 */

/* ---------------------------------------------------------------- bouton « afficher le mot de passe » (WooCommerce)
 * WooCommerce dessine l'œil avec sa police d'icônes, que le site ne charge pas : sans cette règle il ne reste qu'un
 * petit rectangle vide à droite du champ (connexion de la page commande, compte client). Œil en SVG (masque, couleur
 * du texte), barré quand le mot de passe est affiché (classe display-password posée par WooCommerce). */
.password-input { position: relative; display: block; }
.password-input input.input-text,
.df-commande-page form.login .password-input input.input-text { width: 100%; padding-right: 48px; }
.password-input .show-password-input {
	position: absolute; top: 0; right: 0; bottom: 0; width: 46px; margin: 0; padding: 0; border: 0; border-radius: 0 6px 6px 0;
	background: none; box-shadow: none; color: var(--df-texte-doux, #5a615c); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.password-input .show-password-input::before,
.password-input .show-password-input::after { content: none; }
.password-input .show-password-input::before {
	content: ""; display: block; width: 20px; height: 20px; 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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.password-input .show-password-input.display-password::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
}
.password-input .show-password-input:hover { color: var(--df-encre, #1b2522); }
.password-input .show-password-input:focus-visible { outline: 2px solid var(--df-vert, #294c45); outline-offset: -4px; }
