/* =====================================================================
   LE TUNNEL DE LA VITRINE (13/08/2026)

   Deux parcours dans la même feuille, parce que c'est le même geste vu
   du client : « Réserver » ouvre le rendez-vous (prestation, jour et
   heure, coordonnées, paiement), « Ajouter au panier » ouvre la commande
   (panier, mode de retrait, coordonnées, paiement).

   TOUT est scopé sous .cl-tunnel : la feuille se charge sur n'importe
   quelle vitrine sans en déranger le dessin. Les couleurs et les rayons
   viennent du thème (--sc-*), avec un repli neutre quand la variable
   n'existe pas. Sur téléphone, le panneau prend tout l'écran.
   ===================================================================== */
.cl-tunnel { position: fixed; inset: 0; z-index: 950; display: none;
  background: rgba(16, 12, 10, .55); font-family: var(--sc-bf, var(--sc-fb, system-ui, sans-serif)); }
.cl-tunnel.on { display: grid; place-items: center; padding: 24px; }
.cl-t-p { width: min(560px, 100%); max-height: 88dvh; display: flex; flex-direction: column;
  overflow: hidden; background: var(--sc-bg, #fff); color: var(--sc-tx, var(--sc-ink, #17171a));
  border: 1px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.14)));
  border-radius: var(--sc-ri, var(--sc-radius, 16px));
  box-shadow: 0 44px 100px -46px rgba(0,0,0,.7); }
.cl-t-tete { display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  border-bottom: 1px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.1))); }
.cl-t-tete b { flex: 1; font-size: 16.5px; font-family: var(--sc-hf, var(--sc-fd, inherit)); }
.cl-t-tete button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: none;
  color: inherit; cursor: pointer; font-size: 18px; line-height: 1; border-radius: 999px; }
.cl-t-etapes { display: flex; gap: 6px; padding: 0 18px 12px; }
.cl-t-etapes i { flex: 1; height: 3px; border-radius: 99px;
  background: var(--sc-bd, var(--sc-line, rgba(0,0,0,.12))); }
.cl-t-etapes i.on { background: var(--sc-ac, var(--sc-accent, currentColor)); }
.cl-t-corps { flex: 1; overflow-y: auto; padding: 16px 18px 18px; }
.cl-t-pied { border-top: 1px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.1)));
  padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.cl-t-tot { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.cl-t-tot b { display: block; font-size: 17px; }
.cl-t-tot span { opacity: .7; }
.cl-t-go { border: 0; cursor: pointer; min-height: 48px; padding: 0 22px; font: 700 14.5px inherit;
  border-radius: var(--sc-rb, var(--sc-ri, var(--sc-radius, 999px)));
  background: var(--sc-pr, var(--sc-ac, var(--sc-accent, #17171a)));
  color: var(--sc-pt, var(--sc-accent-ink, #fff)); }
.cl-t-go[disabled] { opacity: .45; cursor: not-allowed; }
.cl-t-retour { border: 0; background: none; cursor: pointer; color: inherit; opacity: .7;
  font: 600 13.5px inherit; min-height: 44px; padding: 0 4px; }

/* une ligne cliquable : prestation, créneau, mode de retrait */
.cl-t-l { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; cursor: pointer;
  min-height: 58px; padding: 13px 15px; margin-bottom: 9px; color: inherit; font: inherit;
  background: var(--sc-sf, var(--sc-surface, rgba(0,0,0,.03)));
  border: 1.5px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.12)));
  border-radius: var(--sc-ri, var(--sc-radius, 12px)); }
.cl-t-l:hover { border-color: var(--sc-ac, var(--sc-accent, currentColor)); }
.cl-t-l.on { border-color: var(--sc-ac, var(--sc-accent, currentColor));
  box-shadow: 0 0 0 2px var(--sc-ac, var(--sc-accent, currentColor)) inset; }
.cl-t-l .z { flex: 1; min-width: 0; }
.cl-t-l .n { display: block; font-weight: 700; font-size: 15px; }
.cl-t-l .d { display: block; font-size: 12.5px; opacity: .72; margin-top: 2px; line-height: 1.4; }
.cl-t-l .p { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
/* La ligne du panier porte le nom, la quantité et le prix : sur un
   téléphone étroit elle se replie plutôt que de pousser le prix dehors. */
.cl-t-l { flex-wrap: wrap; }
.cl-t-q { display: flex; align-items: center; gap: 4px; }
.cl-t-q button { width: 40px; min-height: 40px; border: 0; background: none; cursor: pointer;
  color: inherit; font: 700 18px inherit; border-radius: 999px; }
.cl-t-q b { min-width: 20px; text-align: center; font-size: 15px; }
@media (max-width: 540px) { .cl-t-l .z { flex: 1 1 100%; } }

/* Le choix de la personne : des pastilles, comme le reste du tunnel. */
.cl-t-qui { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-t-qui button { min-height: 44px; padding: 0 16px; cursor: pointer; color: inherit; font: 600 14px inherit;
  background: var(--sc-sf, var(--sc-surface, rgba(0,0,0,.03)));
  border: 1.5px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.12)));
  border-radius: 999px; }
.cl-t-qui button.on { border-color: var(--sc-ac, var(--sc-accent, currentColor));
  background: var(--sc-ac, var(--sc-accent, currentColor)); color: var(--sc-accent-ink, #fff); }
.cl-t-lbl { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .6; margin: 16px 0 8px; }
.cl-t-lbl:first-child { margin-top: 0; }
.cl-t-jours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cl-t-j { flex: 0 0 auto; min-width: 62px; min-height: 62px; cursor: pointer; color: inherit;
  background: var(--sc-sf, var(--sc-surface, rgba(0,0,0,.03)));
  border: 1.5px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.12)));
  border-radius: var(--sc-ri, var(--sc-radius, 12px)); font: inherit; padding: 8px 10px; text-align: center; }
.cl-t-j small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.cl-t-j b { display: block; font-size: 17px; margin-top: 2px; }
.cl-t-j.on { border-color: var(--sc-ac, var(--sc-accent, currentColor));
  background: var(--sc-ac, var(--sc-accent, currentColor)); color: var(--sc-accent-ink, #fff); }
.cl-t-j[disabled] { opacity: .35; cursor: not-allowed; }
.cl-t-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cl-t-h button { min-height: 44px; cursor: pointer; color: inherit; font: 700 13.5px inherit;
  background: var(--sc-sf, var(--sc-surface, rgba(0,0,0,.03)));
  border: 1.5px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.12)));
  border-radius: var(--sc-ri, var(--sc-radius, 10px)); }
.cl-t-h button.on { border-color: var(--sc-ac, var(--sc-accent, currentColor));
  background: var(--sc-ac, var(--sc-accent, currentColor)); color: var(--sc-accent-ink, #fff); }
.cl-t-h button[disabled] { opacity: .3; cursor: not-allowed; }

.cl-t-champ { display: block; width: 100%; box-sizing: border-box; margin-bottom: 10px;
  min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px; color: inherit;
  background: var(--sc-bg, #fff);
  border: 1.5px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.14)));
  border-radius: var(--sc-ri, var(--sc-radius, 12px)); }
.cl-t-champ:focus { outline: 2px solid var(--sc-ac, var(--sc-accent, currentColor)); outline-offset: 1px; }
.cl-t-note { font-size: 12.5px; opacity: .7; line-height: 1.5; margin-top: 10px; }
.cl-t-recap { display: flex; justify-content: space-between; gap: 12px; font-size: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.08))); }
.cl-t-recap:last-of-type { border-bottom: 0; }
.cl-t-recap b { font-weight: 700; }
.cl-t-info { font-size: 13px; line-height: 1.5; padding: 11px 13px; margin-top: 12px;
  background: var(--sc-sf, var(--sc-surface, rgba(0,0,0,.04)));
  border-radius: var(--sc-ri, var(--sc-radius, 10px)); }
.cl-t-ok { text-align: center; padding: 22px 6px 8px; }
.cl-t-ok .rond { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid;
  place-items: center; font-size: 30px; background: var(--sc-sf, var(--sc-surface, rgba(0,0,0,.05))); }
.cl-t-ok h3 { font-size: 20px; margin: 0 0 8px; font-family: var(--sc-hf, var(--sc-fd, inherit)); }
.cl-t-ok p { font-size: 14px; line-height: 1.55; opacity: .8; margin: 0; }

/* la barre du panier, en bas de la vitrine */
.cl-panier-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none;
  align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--sc-bg, #fff); border-top: 1px solid var(--sc-bd, var(--sc-line, rgba(0,0,0,.12)));
  box-shadow: 0 -18px 40px -30px rgba(0,0,0,.6); font-family: var(--sc-bf, var(--sc-fb, system-ui, sans-serif)); }
.cl-panier-bar.on { display: flex; }
.cl-panier-bar .z { flex: 1; min-width: 0; font-size: 13.5px; color: var(--sc-tx, var(--sc-ink, #17171a)); }
.cl-panier-bar .z b { display: block; font-size: 16px; }

@media (max-width: 1024px) {
  .cl-tunnel.on { padding: 0; }
  .cl-t-p { width: 100%; max-height: none; height: 100dvh; border: 0; border-radius: 0; }
  .cl-t-h { grid-template-columns: repeat(3, 1fr); }
}
