/*
 * Champs de formulaire : apparence d'avant la mise à jour Astra 4.14.3 / Astra Pro 4.13.13 (issue #29).
 * Chargé après les feuilles d'Astra Pro (functions.php), sinon le bloc C ne l'emporte pas.
 * Si l'option d'accessibilité d'Astra (mise en évidence des champs) est activée un jour, la règle :focus
 * du bloc A masquera sa couleur de bordure.
 */

/* A — Astra 4.14 a limité ces règles aux pages .woocommerce : hors boutique (commande rapide, contact,
   recherche de l'en-tête), les champs passaient en fond #F9FAFB, ou transparent. Portée .woocommerce-js d'avant. */
.woocommerce-js form .form-row textarea,.woocommerce-js input[type="email"],.woocommerce-js input[type="number"],.woocommerce-js input[type="password"],.woocommerce-js input[type="reset"],.woocommerce-js input[type="search"],.woocommerce-js input[type="tel"],.woocommerce-js input[type="text"],.woocommerce-js input[type="url"],.woocommerce-js textarea{border-color:var(--ast-border-color);background-color:var(--ast-global-dark-bg-style);box-shadow:none;border-radius:0}
.woocommerce-js form .form-row textarea:focus,.woocommerce-js input[type="email"]:focus,.woocommerce-js input[type="number"]:focus,.woocommerce-js input[type="password"]:focus,.woocommerce-js input[type="reset"]:focus,.woocommerce-js input[type="search"]:focus,.woocommerce-js input[type="tel"]:focus,.woocommerce-js input[type="text"]:focus,.woocommerce-js input[type="url"]:focus,.woocommerce-js textarea:focus{box-shadow:none;border-color:var(--ast-border-color)}
.woocommerce-js .select2-container .select2-dropdown,.woocommerce-js .select2-container .select2-search__field{border:1px solid var(--ast-border-color);z-index:98}
.woocommerce-js .select2-container .select2-selection--single,.woocommerce-js select{padding:.5em .8em;line-height:normal;padding-right:2em;appearance:none;background-position:98% 50%;background-color:var(--ast-global-dark-bg-style,#fff);border-color:var(--ast-border-color);border-radius:3px;box-shadow:none}
.woocommerce-js .select2-container .select2-selection--single:focus,.woocommerce-js select:focus{outline:0}
.woocommerce-js .select2-container .select2-selection--single b,.woocommerce-js select b{display:none}
.woocommerce-js .woocommerce-ordering select{background-color:transparent;border:transparent;border-radius:0}

/* B — Panier : Astra 4.14 a retiré le plafond du champ « Code promo » (49,6 px imposés par le snippet
   forms_css) et le bouton « Appliquer » n'était plus aligné avec « Mettre à jour » et « Vider ». */
.woocommerce-js #content table.cart [name="coupon_code"],.woocommerce-page #content table.cart [name="coupon_code"]{max-height:35px}

/* C — Astra Pro 4.13 (woo-modern-input.css) fixe les champs de formulaire WooCommerce à 3em
   (connexion, inscription, commande). Retour à la hauteur naturelle. */
body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=text],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=number],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=email],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=url],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=password],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=search],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=reset],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row input[type=tel],body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row select{height:auto}
body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row select{line-height:normal}
body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row .select2-container--default .select2-selection--single{height:auto;display:block;padding-right:.8em}
body:not(.cartflows-canvas):not(.cartflows-default):not(.cartflows-instant-checkout) .woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:1.35;padding-right:20px}
