/**
 * VST43° — Fidélité Zerosix (D-38) : bons du récapitulatif (panier, commande), page Mon compte › Fidélité, code parrain replié.
 * Maquette : refonte-lot3/maquettes/fidelite/ (règles « Fidélité (nouveau, D-38) », reprises telles quelles).
 * Même portée et même spécificité que vst-service.css : « :is(.vst-srv, #vst-x#vst-y) ».
 */
/* Récapitulatif : bloc fidélité, sous les boutons, au-dessus du code promo */
:is(.vst-srv, #vst-x#vst-y) .fid { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--vst-ligne); }
:is(.vst-srv, #vst-x#vst-y) .fid-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--vst-texte); }
:is(.vst-srv, #vst-x#vst-y) .fid-tete b { font: 600 12px/1.2 var(--font-titre); text-transform: uppercase; letter-spacing: .12em; color: var(--vst-encre); }
:is(.vst-srv, #vst-x#vst-y) .fid-tete a, :is(.vst-srv, #vst-x#vst-y) .fid-invite a, :is(.vst-srv, #vst-x#vst-y) .vst-fid .bloc-tete a.petit { display: inline-flex; align-items: center; min-height: 44px; color: var(--vst-encre); text-underline-offset: 3px; }
:is(.vst-srv, #vst-x#vst-y) .bons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
:is(.vst-srv, #vst-x#vst-y) .bon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin: 0; padding: 10px 12px; border: 1px dashed var(--vst-ligne-ui, #9C7763); border-radius: var(--rayon); background: var(--vst-blanc); }
:is(.vst-srv, #vst-x#vst-y) .bon b { font: 600 14px/1.3 var(--font-corps); color: var(--vst-encre); }
:is(.vst-srv, #vst-x#vst-y) .bon > span > span { display: block; font-size: 13px; line-height: 1.4; color: var(--vst-texte); }
:is(.vst-srv, #vst-x#vst-y) .bon-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; border: 1px solid var(--vst-encre); border-radius: var(--rayon); background: transparent; font: 600 12px/1 var(--font-titre); text-transform: uppercase; letter-spacing: .12em; color: var(--vst-encre); text-decoration: none; white-space: nowrap; cursor: pointer; }
:is(.vst-srv, #vst-x#vst-y) .bon-btn:hover { background: var(--vst-encre); color: var(--vst-blanc); }
:is(.vst-srv, #vst-x#vst-y) .bon-btn:disabled { border-color: var(--vst-ligne); color: var(--vst-texte); background: transparent; cursor: default; }
:is(.vst-srv, #vst-x#vst-y) .bon-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
:is(.vst-srv, #vst-x#vst-y) .bon.applique { border-style: solid; border-color: transparent; background: var(--vst-voile); }
:is(.vst-srv, #vst-x#vst-y) .bon-retirer { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font: 400 13px/1 var(--font-corps); color: var(--vst-encre); text-decoration: underline; text-underline-offset: 3px; }
:is(.vst-srv, #vst-x#vst-y) .fid-invite { margin: 0; padding-top: 14px; border-top: 1px solid var(--vst-ligne); font-size: 13px; line-height: 1.5; color: var(--vst-encre); }
:is(.vst-srv, #vst-x#vst-y) .fid-invite a { font-weight: 600; }
/* Commande : le bloc vit dans le récapitulatif rafraîchi par checkout.js */
:is(.vst-srv, #vst-x#vst-y) .woocommerce-checkout-review-order-table .fid, :is(.vst-srv, #vst-x#vst-y) .woocommerce-checkout-review-order-table .fid-invite { margin-top: 14px; }

/* Mon compte › Fidélité */
:is(.vst-srv, #vst-x#vst-y) .vst-fid { display: grid; gap: 0; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .fid-avis { margin-bottom: 16px; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .avis.erreur { grid-template-columns: 20px 1fr; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .avis.info { background: var(--vst-voile); border-color: transparent; }
:is(.vst-srv, #vst-x#vst-y) .carte-fid { background: var(--vst-encre); color: var(--vst-blanc); border-radius: 6px; padding: 18px 18px 20px; display: grid; gap: 14px; max-width: 520px; }
:is(.vst-srv, #vst-x#vst-y) .carte-fid-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font: 600 12px/1.2 var(--font-titre); text-transform: uppercase; letter-spacing: .14em; }
:is(.vst-srv, #vst-x#vst-y) .carte-fid-haut span:last-child { font: 400 13px/1.2 var(--font-corps); letter-spacing: .04em; text-transform: none; }
:is(.vst-srv, #vst-x#vst-y) .carte-fid-solde { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
:is(.vst-srv, #vst-x#vst-y) .carte-fid-solde b { font: 500 32px/1 var(--font-titre); font-variant-numeric: tabular-nums; color: var(--vst-blanc); }
:is(.vst-srv, #vst-x#vst-y) .carte-fid-solde b small { font: 400 15px/1 var(--font-corps); margin-left: 6px; }
:is(.vst-srv, #vst-x#vst-y) .carte-fid-solde span { font-size: 14px; }
:is(.vst-srv, #vst-x#vst-y) .jauge-fid { height: 4px; background: rgba(255,253,252,.25); border-radius: 2px; position: relative; }
:is(.vst-srv, #vst-x#vst-y) .jauge-fid i { position: absolute; inset: 0 auto 0 0; background: var(--vst-blanc); border-radius: 2px; }
:is(.vst-srv, #vst-x#vst-y) .carte-fid p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--vst-blanc); }
:is(.vst-srv, #vst-x#vst-y) .vst-fid > .texte-court { margin: 12px 0 0; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .bloc { margin-top: 24px; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .bons + .petit { margin: 10px 0 0; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .bloc.parrain { display: grid; gap: 12px; margin-top: 0; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .bloc.parrain .bloc-tete { align-items: center; margin-bottom: 4px; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .bloc.parrain .texte-court { margin: 0; }
:is(.vst-srv, #vst-x#vst-y) .parrain-code { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
:is(.vst-srv, #vst-x#vst-y) .parrain-code output { font: 600 18px/1 var(--font-titre); letter-spacing: .14em; color: var(--vst-encre); padding: 12px 14px; border: 1px dashed var(--vst-ligne-ui, #9C7763); border-radius: var(--rayon); background: var(--vst-blanc); }
:is(.vst-srv, #vst-x#vst-y) .parrain-code button, :is(.vst-srv, #vst-x#vst-y) .liens-otp button { font: 400 13px/1 var(--font-corps); color: var(--vst-encre); background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:is(.vst-srv, #vst-x#vst-y) .form-fid { max-width: 440px; }
:is(.vst-srv, #vst-x#vst-y) .liens-otp { display: flex; gap: 4px 20px; flex-wrap: wrap; margin-top: 8px; }
:is(.vst-srv, #vst-x#vst-y) .vst-fid .champ .aide, :is(.vst-srv, #vst-x#vst-y) .parrain-ouvrir .champ .aide { font-size: 13px; line-height: 1.45; color: var(--vst-texte); margin: 0; }
:is(.vst-srv, #vst-x#vst-y) .champ.erreur input { border-color: var(--vst-erreur); border-width: 1.5px; }
:is(.vst-srv, #vst-x#vst-y) .champ .msg { margin: 0; font-size: 13px; font-weight: 600; color: var(--vst-erreur); }

/* « J'ai un code parrain » (création de compte, Fidélité sans carte) */
:is(.vst-srv, #vst-x#vst-y) details.parrain-ouvrir > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--vst-encre); text-decoration: underline; text-underline-offset: 3px; }
:is(.vst-srv, #vst-x#vst-y) details.parrain-ouvrir > summary::-webkit-details-marker { display: none; }
:is(.vst-srv, #vst-x#vst-y) details.parrain-ouvrir > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
:is(.vst-srv, #vst-x#vst-y) details.parrain-ouvrir[open] > summary::before { transform: rotate(45deg); }
:is(.vst-srv, #vst-x#vst-y) details.parrain-ouvrir > .champs { padding: 8px 0 4px 14px; border-left: 2px solid var(--vst-ligne); margin-top: 4px; }

/* Délai de crédit des points (22.10, docs/fidelite-delai-points.md) : estimation, commandes en attente, délai, bons passés */
:is(.vst-srv, #vst-x#vst-y) .fid-estim { margin: 0; font-size: 13px; line-height: 1.45; color: var(--vst-texte); }
:is(.vst-srv, #vst-x#vst-y) .fid-estim b { font-weight: 600; color: var(--vst-encre); }
:is(.vst-srv, #vst-x#vst-y) .fid-attente { max-width: 520px; margin-top: 12px; }
:is(.vst-srv, #vst-x#vst-y) .fid-attente ul { list-style: none; margin: 0 0 4px; padding: 0; }
:is(.vst-srv, #vst-x#vst-y) .fid-attente li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--vst-ligne); font-size: 14px; line-height: 1.45; color: var(--vst-encre); overflow-wrap: anywhere; }
:is(.vst-srv, #vst-x#vst-y) .fid-attente li a { color: var(--vst-encre); text-underline-offset: 3px; }
:is(.vst-srv, #vst-x#vst-y) .fid-delai { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--vst-texte); }
:is(.vst-srv, #vst-x#vst-y) .fid-conf { display: grid; gap: 4px; justify-items: start; }
:is(.vst-srv, #vst-x#vst-y) .fid-conf .fid-estim { font-size: 14px; color: var(--vst-encre); }
:is(.vst-srv, #vst-x#vst-y) .fid-conf .fid-delai { margin: 0; }
:is(.vst-srv, #vst-x#vst-y) details.bons-passes { margin-top: 12px; }
:is(.vst-srv, #vst-x#vst-y) details.bons-passes > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--vst-encre); text-decoration: underline; text-underline-offset: 3px; }
:is(.vst-srv, #vst-x#vst-y) details.bons-passes > summary::-webkit-details-marker { display: none; }
:is(.vst-srv, #vst-x#vst-y) details.bons-passes > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
:is(.vst-srv, #vst-x#vst-y) details.bons-passes[open] > summary::before { transform: rotate(45deg); }
:is(.vst-srv, #vst-x#vst-y) details.bons-passes .bons { margin-top: 4px; }
:is(.vst-srv, #vst-x#vst-y) .bon.passe { grid-template-columns: minmax(0, 1fr); border-style: solid; border-color: var(--vst-ligne); background: transparent; }
:is(.vst-srv, #vst-x#vst-y) .bon.passe b { color: var(--vst-texte); }
:is(.vst-srv, #vst-x#vst-y) details.bons-passes .petit { margin: 10px 0 0; }

@media (min-width: 960px) {
  :is(.vst-srv, #vst-x#vst-y) .carte-fid { padding: 24px 24px 26px; }
}
