/* Prix TTC / HT (AGRI-66) et prix à l'unité (AGRI-65). Variables : modules/charte/charte.css. */

/* Prix en double : le régime choisi en grand, l'autre en petit dessous. */
.ab-px { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ab-px__ttc, .ab-px__ht { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25em; }
.ab-px__lib { font-size: max(12px, .7em); font-weight: 600; color: var(--ab-texte); } /* UXC-21 : jamais sous 12 px */
.ab-px__ht { order: 2; font-size: max(13px, .72em); font-weight: 500; color: var(--ab-texte); }
.ab-px__ht .woocommerce-Price-amount { font-weight: 500; }
.ab-px :is(.ab-px__ht, .ab-px__ttc) .ab-px__lib { font-size: 12px; }
html.ab-regime-ht .ab-px__ht { order: 0; font-size: 1em; font-weight: inherit; color: inherit; }
html.ab-regime-ht .ab-px__ht .woocommerce-Price-amount { font-weight: inherit; }
html.ab-regime-ht .ab-px__ttc { order: 2; font-size: max(13px, .72em); font-weight: 500; color: var(--ab-texte); }
.ab-vue-liste .ab-px { align-items: flex-end; }

.ab-prix-unite { margin: .25rem 0 0; font-size: 14px; color: var(--ab-vert-fonce); font-weight: 600; }
.ab-prix-unite .ab-px { display: inline-flex; flex-direction: row; gap: .4em; vertical-align: baseline; }
.ab-prix-unite .ab-px__ht, .ab-prix-unite .ab-px__ttc { font-size: inherit; }
.ab-prix-unite .ab-px__ht::before { content: "("; } .ab-prix-unite .ab-px__ht::after { content: ")"; }
html.ab-regime-ht .ab-prix-unite .ab-px__ttc::before { content: "("; } html.ab-regime-ht .ab-prix-unite .ab-px__ttc::after { content: ")"; }
html.ab-regime-ht .ab-prix-unite .ab-px__ht::before, html.ab-regime-ht .ab-prix-unite .ab-px__ht::after { content: none; }

/* Bascule : deux boutons segmentés de 44 px */
.ab-regime { display: inline-flex; padding: 2px; border: 1px solid var(--ab-bordure-champ); border-radius: 999px; background: var(--ab-blanc); }
.ab-regime__btn { min-width: 44px; min-height: 40px; padding: 0 .625rem; border: 0; border-radius: 999px; background: transparent; color: var(--ab-texte); font: 600 13px/1 var(--ab-police-texte); cursor: pointer; }
.ab-regime__btn[aria-pressed="true"] { background: var(--ab-encre); color: var(--ab-blanc); }
.ab-regime__btn:focus-visible { outline: 3px solid var(--ab-encre); outline-offset: 2px; }
@media (max-width: 1024px) { .ab-entete__outils .ab-regime { display: none; } } /* téléphone : dans le tiroir */
.ab-tiroir .ab-regime { align-self: flex-start; }
.ab-tiroir .ab-regime__btn { min-height: var(--ab-cible-serree); min-width: 64px; font-size: 15px; }

/* AGRI-130 : panier et paiement — montants alignés à droite ; en mode HT, le HT en grand, le TTC en petit dessous. */
.ab-px--panier { align-items: flex-end; text-align: right; }
.ab-px--panier .ab-px__ttc, .ab-px--panier .ab-px__ht { justify-content: flex-end; }
.ab-px--panier .ab-px__ht { font-size: 13px; }
html.ab-regime-ht .ab-px--panier .ab-px__ht { font-size: 1em; font-weight: 700; color: var(--ab-encre); }
html.ab-regime-ht .ab-px--panier .ab-px__ht .ab-px__lib { color: var(--ab-encre); }
html.ab-regime-ht .ab-px--panier .ab-px__ttc { font-size: 13px; }
html.ab-regime-ht .ab-px--panier .ab-px__ttc :is(del, ins) { font-size: inherit; }
.ab-px-livraison-ht { display: none; font-size: 13px; color: var(--ab-texte); white-space: nowrap; }
html.ab-regime-ht .ab-px-livraison-ht { display: block; font-weight: 700; font-size: 15px; color: var(--ab-encre); }
html.ab-regime-ht .woocommerce-shipping-totals .woocommerce-Price-amount:not(.ab-px-livraison-ht *) { font-weight: 400; }
/* prix unitaire (colonne prix, ou sous le nom dans la carte mobile d'Astra) : aligné à gauche */
.woocommerce-cart-form :is(.product-price, .product-name) .ab-px--panier { align-items: flex-start; text-align: left; }
.woocommerce-cart-form :is(.product-price, .product-name) .ab-px--panier :is(.ab-px__ttc, .ab-px__ht) { justify-content: flex-start; }
/* sous-total d'une ligne au prix d'un palier : montant barré sur sa propre ligne (il chevauchait la quantité) */
.woocommerce-cart .product-subtotal .ab-px--panier del.ab-prix-ancien { flex-basis: 100%; text-align: right; }
/* AGRI-131 (21/10/2026, consigne d'Édouard) : le montant secondaire légèrement plus petit que le principal (85 %), pas en
 * petits caractères ; livraison : même rapport entre le TTC de WooCommerce et le HT ajouté. */
.ab-px--panier .ab-px__ht { font-size: .85em; }
html.ab-regime-ht .ab-px--panier .ab-px__ht { font-size: 1em; }
html.ab-regime-ht .ab-px--panier .ab-px__ttc { font-size: .85em; font-weight: 500; color: var(--ab-texte); }
html.ab-regime-ht .woocommerce-shipping-totals td label { font-size: .85em; }
html.ab-regime-ht .ab-px-livraison-ht { font-size: 1.18em; }

/* AGRI-136 (UXE-02, contrôle téléphone du 21/10/2026) : « dès … TTC (… HT) le … » se repliait comme des blocs (116 px de
 * haut, parenthèses séparées) ; c'est une phrase : affichage en ligne, chaque montant insécable. */
.ab-prix-unite .ab-px, .ab-prix-unite .ab-px__ttc, .ab-prix-unite .ab-px__ht { display: inline; gap: 0; }
.ab-prix-unite .ab-px__ttc, .ab-prix-unite .ab-px__ht { white-space: nowrap; }
.ab-prix-unite .ab-px__ht, html.ab-regime-ht .ab-prix-unite .ab-px__ttc { margin-left: .3em; }
