/* ───────────────────────────────────────────────────────────────────────────
   La fenêtre de conversation de Yuna.

   Une autre surface qui se lève par-dessus la page : coins arrondis en haut,
   fond qui passe du lait au sable, ombre portée vers le haut. Sur téléphone
   elle sort de la colonne et prend toute la largeur ; sur grand écran elle
   reste sous le bloc d'achat.

   Le champ est COLLÉ EN BAS de la fenêtre et suit le défilement tant qu'on est
   dedans : sans cela il faut remonter en haut de page pour poser la deuxième
   question, et c'est ce qui tue la conversation.

   Aucune couleur en dur : tout passe par les variables de zuhae.css.
   ─────────────────────────────────────────────────────────────────────────── */

.yfil {
  margin-block-start: var(--s5);
  padding: 0 var(--s4) var(--s5);
  background: var(--sable);
  border-top: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -14px 30px -24px rgba(62, 36, 48, .55);
}

@media (max-width: 760px) {
  .yfil {
    margin-inline: calc(var(--s4) * -1);
    border-radius: 26px 26px 0 0;
  }
}

/* ── L'en-tête : qui vous parle, et de quoi ───────────────────────────── */

.yfil-tete {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s4) var(--s3);
}

/* Pas de pastille : une conseillère enfermée dans un rond de 44 px ne donne
   envie de parler à personne. Elle tient debout à côté du titre, et elle bouge. */
.yfil-ava {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: transparent;
  border: 0;
}

.yfil-h {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--display);
  font-size: 1.14rem;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

/* ── La fenêtre ───────────────────────────────────────────────────────── */

.yfil-fen {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.yfil-thread {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4);
}

/* ── Les bulles ───────────────────────────────────────────────────────── */

.yfil-moi {
  align-self: flex-end;
  max-width: 84%;
  padding: 10px var(--s4);
  border-radius: 18px 18px 6px 18px;
  background: var(--cta);
  color: var(--blanc);
  font-size: .9rem;
  line-height: 1.45;
}

.yfil-elle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.yfil-ava-s {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--blush);
  border: 1px solid var(--line);
  object-fit: cover;
}

.yfil-bulle {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  background: var(--lait);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
}

.yfil-dit {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

.yfil-dit:empty { display: none; }

.yfil-pense {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-block: 4px;
}

.yfil-pense span {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--ink3);
  animation: yfil-bat 1.2s infinite ease-in-out;
}

.yfil-pense span:nth-child(2) { animation-delay: .15s; }
.yfil-pense span:nth-child(3) { animation-delay: .3s; }

@keyframes yfil-bat {
  0%, 80%, 100% { opacity: .25; }
  40%           { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .yfil-pense span { animation: none; opacity: .6; }
}

.yfil-items {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-block-start: var(--s3);
}

.yfil-items:empty { display: none; }

.yfil-err {
  margin: var(--s2) 0 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--warn);
}

/* ── Un produit dans la conversation ──────────────────────────────────── */

.yc {
  display: flex;
  gap: 10px;
  padding: 9px;
  background: var(--blanc);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.yc-img {
  flex: 0 0 auto;
  display: block;
  width: 56px;
  height: 70px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--sable);
}

.yc-img img { width: 100%; height: 100%; object-fit: cover; }

.yc-b { flex: 1 1 auto; min-width: 0; }

.yc-marque {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink3);
}

.yc-nom {
  display: block;
  margin-block-start: 1px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.yc-nom:hover { text-decoration: underline; }

.yc-why {
  margin: 4px 0 0;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--ink2);
}

.yc-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-block-start: var(--s2);
}

.yc-prix {
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.yc-prix small { font-weight: 400; font-size: .68rem; color: var(--ink3); }

.yc-add {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 var(--s4);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blanc);
  background: var(--cta);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.yc-add:hover { background: var(--cta-h); }

.yc-add--lien { background: transparent; color: var(--cta); border: 1px solid var(--cta); }
.yc-add--lien:hover { background: var(--blush); }

.yc-add.is-ok { background: var(--ok); cursor: default; }
.yc-add:disabled { opacity: .7; cursor: default; }

.yc-deja { font-size: .74rem; color: var(--ok); font-weight: 600; }

/* ── La barre de commande : elle apparaît dès qu'il y a un article ────── */

.yfil-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: 11px var(--s4);
  background: var(--beurre);
  border-radius: var(--r-md);
}

.yfil-cmd-t {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.yfil-cmd-b {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 var(--s5);
  display: inline-flex;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
  color: var(--blanc);
  background: var(--cta);
  border-radius: var(--r-pill);
  text-decoration: none;
}

.yfil-cmd-b:hover { background: var(--cta-h); }

/* ── Le champ, collé en bas ───────────────────────────────────────────── */

.yfil-saisie {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: var(--s2);
  padding: 10px;
  background: var(--blanc);
  border-top: 1px solid var(--line);
}

.yfil-champ {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 120px;
  padding: 10px var(--s4);
  border: 1px solid var(--border);
  border-radius: 22px;
  resize: none;
  background: var(--lait);
  font: inherit;
  font-size: 1rem;      /* 16 px : en dessous, iOS zoome sur le champ */
  line-height: 1.4;
  color: var(--ink);
}

.yfil-champ:focus { outline: none; border-color: var(--cta); }

.yfil-envoi {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--cta);
  color: var(--blanc);
  cursor: pointer;
}

.yfil-envoi:hover { background: var(--cta-h); }
.yfil-envoi:disabled { background: var(--ink3); cursor: default; }

.yfil-pied {
  margin: var(--s3) 0 0;
  font-size: .7rem;
  line-height: 1.5;
  color: var(--ink3);
  text-align: center;
}

.yfil-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── L'appel à Yuna, au-dessus des filtres ────────────────────────────────
   Pensé à 390 px d'abord : Yuna à gauche, la phrase et le bouton à droite,
   le tout sur une bande qui tranche avec le fond de page pour qu'on ne puisse
   pas la rater en défilant. */

.ycta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: var(--s4) 0;
  padding: var(--s3) var(--s4);
  background: var(--blush);
  border-radius: var(--r-lg);
}

.ycta-y {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.ycta-b {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
}

.ycta-t {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

.ycta-go {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s5);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  color: var(--blanc);
  background: var(--cta);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}

.ycta-go:hover { background: var(--cta-h); }

@media (min-width: 761px) {
  .ycta { padding: var(--s4) var(--s5); gap: var(--s4); }
  .ycta-y { width: 88px; height: 88px; }
  .ycta-t { font-size: 1.12rem; }
}

/* ── La session, par-dessus la page ───────────────────────────────────────
   Le clic sur l'appel à Yuna n'envoie plus en bas de page : il ouvre la
   conversation comme n'importe quelle application de messagerie. Sur téléphone
   elle prend tout l'écran, sur grand écran elle se pose en colonne au milieu.
   La fenêtre n'est pas dupliquée, elle est DÉPLACÉE ici puis remise en place. */

.yfil-feuille {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: var(--blanc);
}

.yfil-feuille-t {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--sable);
  border-bottom: 1px solid var(--line);
}

.yfil-feuille-n {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
}

.yfil-feuille-x {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
}

.yfil-feuille-x:hover { background: var(--blush); }

/* La fenêtre déplacée occupe tout ce qui reste, et c'est ELLE qui défile. */
.yfil-feuille .yfil-fen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
}

.yfil-feuille .yfil-thread {
  flex: 1 1 auto;
  padding-block-end: var(--s5);
}

.yfil-bloque, .yfil-bloque body { overflow: hidden; }

@media (min-width: 761px) {
  .yfil-feuille {
    inset: 5vh 50% auto 50%;
    width: min(520px, 92vw);
    transform: translateX(-50%);
    height: 90vh;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -30px rgba(62, 36, 48, .55);
    overflow: hidden;
  }
  .yfil-feuille-t { border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ── Qui vous parle, et à quel titre ──────────────────────────────────────
   Mêmes codes que l'appel posé au-dessus des filtres : la bande rose, Yuna à
   gauche, le texte à droite. Une photo seule ne dit rien ; ici on nomme. */

.yfil-bandeau {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-block-end: var(--s3);
  padding: var(--s2) var(--s4) var(--s2) var(--s2);
  background: var(--blush);
  border-radius: var(--r-lg);
}

.yfil-bandeau .yfil-ava {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.yfil-bandeau-b {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.yfil-bandeau-n {
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.15;
  color: var(--ink);
}

.yfil-bandeau-r {
  font-size: .82rem;
  line-height: 1.35;
  color: var(--ink2);
}

/* ── Corrections de recette ───────────────────────────────────────────────
   Le centrage par `inset: 5vh 50% auto 50%` collait la feuille au bord droit
   du centre : `right: 50%` et une largeur fixe se battaient. On ancre à
   gauche et on recule de la moitié, ce qui centre vraiment.
   Et la feuille masque le lanceur flottant : deux Yuna à l'écran en même
   temps, c'en est un de trop. */

@media (min-width: 761px) {
  .yfil-feuille {
    inset: auto;
    position: fixed;
    top: 5vh;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(520px, 92vw);
    height: 88vh;
  }
}

.yfil-bloque .yfab { display: none; }

/* Le fil occupe la hauteur disponible : sans cela le champ remontait au milieu
   de la feuille dès que la conversation était courte. */
.yfil-feuille .yfil-thread { justify-content: flex-start; }

/* ── La commande, dans le fil ─────────────────────────────────────────────
   Des champs, pas une page. Mêmes codes que le reste de la conversation :
   fond clair, coins ronds, un seul bouton. 16 px sur chaque champ, sinon iOS
   zoome à la saisie et la cliente perd la fenêtre de vue. */

.ycmd {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--lait);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.ycmd-t {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
}

.ycmd-r { display: flex; gap: var(--s3); }
.ycmd-r > .ycmd-c { flex: 1 1 0; min-width: 0; }
.ycmd-c--cp { flex: 0 0 38% !important; }

.ycmd-c { display: flex; flex-direction: column; gap: 3px; }

.ycmd-c > span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink3);
}

.ycmd-c input,
.ycmd-c select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 var(--s3);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--blanc);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.ycmd-c input:focus,
.ycmd-c select:focus { outline: none; border-color: var(--cta); }

.ycmd-c input.is-ko { border-color: var(--danger); background: #FFF6F7; }

.ycmd-err {
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--danger);
}

.ycmd-go {
  min-height: 50px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--blanc);
  background: var(--cta);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}

.ycmd-go:hover { background: var(--cta-h); }
.ycmd-go:disabled { background: var(--ink3); cursor: default; }

.ycmd-note {
  margin: 0;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--ink3);
  text-align: center;
}

/* ── Le pas d'après : payer, ailleurs ─────────────────────────────────── */

.ypay {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-block-start: var(--s3);
}

.ypay-b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: 0 var(--s5);
  font-size: .95rem;
  font-weight: 700;
  color: var(--blanc);
  background: var(--cta);
  border-radius: var(--r-pill);
  text-decoration: none;
}

.ypay-b:hover { background: var(--cta-h); color: var(--blanc); }

.ypay-n {
  font-size: .72rem;
  line-height: 1.45;
  color: var(--ink3);
  text-align: center;
}

/* ── Le panier, dans la conversation ──────────────────────────────────────
   Les mêmes gestes que n'importe quel panier — moins, plus, retirer — mais
   sans quitter le fil. Les cibles font 36 px de côté au minimum : c'est le
   geste qu'on répète le plus, et il se fait au pouce. */

.ypan {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3) var(--s4) var(--s4);
  background: var(--beurre);
  border-radius: 18px;
}

.ypan-t {
  margin: 0 0 var(--s1);
  font-family: var(--display);
  font-size: .95rem;
  color: var(--ink);
}

.ypan-l {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2);
  background: var(--blanc);
  border-radius: var(--r-md);
}

.ypan-img {
  flex: 0 0 auto;
  width: 44px;
  height: 55px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--sable);
}

.ypan-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.ypan-m {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink3);
}

.ypan-n {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.ypan-v { font-size: .7rem; color: var(--ink2); }

.ypan-d {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ypan-q {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--lait);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px;
}

.ypan-pm {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.ypan-pm:hover { background: var(--blush); }
.ypan-pm:disabled { opacity: .4; cursor: default; }

.ypan-n2 {
  min-width: 22px;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ypan-p {
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ypan-x {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink3);
  cursor: pointer;
}

.ypan-x:hover { background: var(--blush); color: var(--danger); }
.ypan-x:disabled { opacity: .4; cursor: default; }

.ypan-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-block-start: var(--s1);
}

.ypan-c {
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ypan-go {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--s5);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blanc);
  background: var(--cta);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}

.ypan-go:hover { background: var(--cta-h); }

.ypan-fr {
  margin: 0;
  font-size: .74rem;
  line-height: 1.4;
  color: var(--ink2);
}

/* ── La conversation dans le panneau d'ajout ──────────────────────────────
   Au pouce d'abord : quasiment personne n'arrive ici sur un ordinateur.
   Champ à 16 px — en dessous, iOS zoome à la saisie et fait sortir le panneau
   de l'écran — et cible d'envoi à 44 px. */

.ymini {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-block-start: var(--s4);
  padding: var(--s3);
  background: var(--blush);
  border-radius: 18px;
}

.ymini-y {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.ymini-b { flex: 1 1 auto; min-width: 0; }

.ymini-t {
  margin: 0 0 var(--s2);
  font-size: .88rem;
  line-height: 1.4;
  color: var(--ink);
}

.ymini-f {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px var(--s4);
}

.ymini-f:focus-within { border-color: var(--cta); }

.ymini-c {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  min-height: 40px;
}

.ymini-c:focus { outline: none; }

.ymini-go {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--cta);
  color: var(--blanc);
  cursor: pointer;
}

.ymini-go:hover { background: var(--cta-h); }

/* ── Yuna dans le panneau d'ajout : un outil, pas une mention ─────────────
   Elle était en pied de panneau, après la réassurance et les moyens de
   paiement : il fallait défiler deux écrans pour la trouver, donc personne ne
   la trouvait. Elle est remontée sous le total, et elle prend la place d'un
   bloc à part entière — un liseré, un nom, une phrase, un champ. */

.ymini {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-block: var(--s4);
  padding: var(--s4) var(--s4) var(--s4) var(--s3);
  background: var(--blush);
  border: 1px solid var(--bonbon);
  border-radius: 18px;
}

.ymini-y {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.ymini-h {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--ink);
}

.ymini-h span {
  display: block;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 400;
  color: var(--ink2);
}

.ymini-t {
  margin: var(--s2) 0;
  font-size: .86rem;
  line-height: 1.4;
  color: var(--ink);
}

.ymini-f {
  background: var(--blanc);
  border-width: 1px;
}

/* Au pouce : sous 420 px, Yuna passe au-dessus et le champ prend la largeur. */
@media (max-width: 420px) {
  .ymini {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
    padding: var(--s3);
  }
  .ymini-y { width: 56px; height: 56px; }
  .ymini-t { margin-block-start: var(--s1); }
}

.ycmd-estim {
  margin: 0;
  padding: var(--s2) var(--s3);
  background: var(--beurre);
  border-radius: 11px;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── Le bas de la fenêtre : barre de commande + composeur ─────────────────
   Un seul bloc collé. La barre était dans le panier, réinséré en bas du fil,
   donc elle descendait avec la conversation : au troisième échange il fallait
   défiler pour la retrouver. Vingt-cinq rejeux de caisses abandonnées montrent
   exactement ce geste, répété et sans issue. Elle ne bouge plus. */

.yfil-bas {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--blanc);
  border-top: 1px solid var(--line);
}

/* Le composeur n'a plus à se coller lui-même : son parent le fait. */
.yfil-bas .yfil-saisie {
  position: static;
  border-top: 0;
}

.yfil-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) var(--s3) 0;
}

.yfil-barre[hidden] { display: none; }

.yfil-barre-t {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.yfil-barre-b {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--s5);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  color: var(--blanc);
  background: var(--cta);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}

.yfil-barre-b:hover { background: var(--cta-h); }

/* Le bloc panier garde ses lignes et son total ; le seul bouton de commande
   vit dans la barre, pour qu'il n'y en ait pas deux à l'écran. */
.ypan-f .ypan-go { display: none; }

/* ── Quand la conversation est à l'écran, rien ne flotte dessus ───────────
   Le lanceur rond de Yuna recouvrait le bouton « Ajouter » des cartes qu'elle
   venait de proposer : le geste qu'on attend de la cliente était le seul qu'on
   lui rendait impossible. La barre d'achat de la fiche mangeait le reste.
   Les deux s'effacent, et reviennent quand on remonte. */

.yfil-vu .yfab,
.yfil-vu #pdp-bar,
.yfil-vu .pdp-bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .yfab, #pdp-bar, .pdp-bar { transition: opacity .18s ease; }
}

/* Une carte ne doit jamais déborder de sa bulle : sur 390 px le nom du produit
   et le bouton se partagent la ligne au pixel près. */
.yc-bas { flex-wrap: wrap; row-gap: var(--s2); }
.yc-add { max-width: 100%; }

@media (max-width: 400px) {
  .yc { gap: 8px; padding: 8px; }
  .yc-img { width: 48px; height: 60px; }
  .yc-add { padding: 0 var(--s3); font-size: .78rem; }
}
