/**
 * La Barbotte — réservation en ligne.
 * Chargé uniquement quand la prise de réservation est active.
 */

.bw-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 480;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 100px;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .38);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease,
              background var(--fast), box-shadow var(--fast);
}
.bw-fab:hover { background: var(--beige-deep); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.bw-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.bw-fab[hidden] { display: none; }
.bw-fab.is-hidden {
  opacity: 0;
  transform: translateY(10px) scale(.9);
  pointer-events: none;
}

/* Sur téléphone, la barre d'appel porte déjà un bouton « Réserver » en bas de
   l'écran : un second bouton flottant faisait doublon et masquait le contenu.
   C'est celui de la barre qui ouvre le formulaire.

   Mais cette barre est propre à nos sites. Ailleurs — WordPress, hébergeur
   classique — elle n'existe pas, et masquer le bouton flottant supprimait le
   seul moyen d'ouvrir le formulaire sur téléphone : le widget n'était donc
   utilisable qu'au clavier et à la souris, là où l'essentiel des réservations
   se prend au pouce.

   Le widget pose donc `bw-seul` quand la page n'offre aucun autre point
   d'entrée. On ne masque plus à l'aveugle, on masque quand un remplaçant
   existe. */
@media (max-width: 960px) {
  .bw-fab:not(.bw-seul) { display: none; }
}

.bw-backdrop {
  position: fixed; inset: 0; z-index: 490;
  background: rgba(11, 10, 9, .62);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.bw-backdrop.is-open { opacity: 1; pointer-events: auto; }

.bw-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 500;
  width: min(400px, calc(100vw - 2rem));
  /* Pas de plafond fixe : le formulaire complet demande environ 800 px, et un
     panneau bridé à 680 px cachait le bouton de validation même sur un écran
     de 1440. Il occupe donc la hauteur libre, moins la marge du coin. */
  max-height: calc(100vh - 2 * clamp(1rem, 3vw, 2rem));
  max-height: calc(100dvh - 2 * clamp(1rem, 3vw, 2rem));
  display: flex;
  flex-direction: column;
  background: var(--ink-2, #16140f);
  color: var(--cream, #f6f3ef);
  border: 1px solid var(--ink-3, #262218);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  /* Le panneau naît du bouton — même coin, même mouvement — et monte.
     La position est décalée vers le bas au repos pour que l'ouverture se
     lise comme une montée, pas comme une apparition. */
  transform-origin: bottom right;
  transform: translateY(28px) scale(.94);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.bw-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

/* Le double-appui zoome et fait glisser le panneau sous le doigt au moment de
   choisir un créneau. `manipulation` le supprime ; le pincement reste. */
.bw-panel, .bw-fab { touch-action: manipulation; }

/* Écran d'ordinateur portable : on récupère la marge du coin plutôt que de
   faire défiler un formulaire qui tient presque. */
@media (min-width: 621px) and (max-height: 880px) {
  .bw-panel {
    bottom: 0.6rem;
    max-height: calc(100vh - 1.2rem);
    max-height: calc(100dvh - 1.2rem);
  }
}

/* Fermeture plus vive que l'ouverture : on ne fait pas attendre pour partir */
.bw-panel:not(.is-open) { transition-duration: 180ms, 260ms; }

.bw-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--ink-3, #262218);
}
.bw-head h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  /* Couleur explicite : sans elle, la règle `h2` du site s'applique et le
     titre passe en beige sombre sur le panneau — 3,45:1, sous le seuil. */
  color: var(--cream, #f6f3ef);
}
.bw-back, .bw-close {
  border: none; background: none; color: inherit; cursor: pointer;
  padding: 0.3rem; line-height: 0; opacity: .7; transition: opacity var(--fast);
  border-radius: 4px;
}
.bw-back:hover, .bw-close:hover { opacity: 1; }
.bw-back, .bw-close { opacity: .85; }
.bw-close { margin-left: auto; }
.bw-back[hidden] { display: none; }
.bw-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.bw-steps { display: flex; gap: 4px; padding: 0 1.15rem; margin-top: 0.9rem; }
.bw-steps span { flex: 1; height: 2px; background: var(--ink-3, #262218); border-radius: 2px; transition: background var(--fast); }
.bw-steps span.done { background: var(--beige); }

/* `min-height: 0` : sans lui, un élément flexible refuse de descendre sous la
   hauteur de son contenu — le corps débordait du panneau au lieu de défiler,
   et le bouton de validation passait sous le bord sur les écrans peu hauts. */
.bw-body { padding: 1.15rem; overflow-y: auto; flex: 1; min-height: 0; }
.bw-body > * { animation: bw-step 300ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes bw-step {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.bw-body h3 {
  margin: 0 0 0.9rem; font-family: var(--body); font-size: 0.95rem; font-weight: 600;
}
.bw-intro { margin: 0 0 1rem; font-size: 0.86rem; line-height: 1.6; color: rgba(246, 243, 239, .78); }

.bw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.5rem; }
.bw-opt {
  padding: 0.75rem 0.4rem;
  border: 1px solid var(--ink-3, #262218);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast), color var(--fast);
}
.bw-opt:hover:not(:disabled) { border-color: var(--beige); background: rgba(226, 202, 178, .08); }
.bw-opt.is-active { background: var(--beige); border-color: var(--beige); color: var(--ink); font-weight: 600; }
.bw-opt.is-active small { color: rgba(11, 10, 9, .72); }
/* `:hover:not(:disabled)` l'emporte sur `.is-active` par spécificité : sans
   cette règle, survoler le choix sélectionné le repeignait en fond translucide
   avec un texte sombre — illisible. */
.bw-opt.is-active:hover:not(:disabled) { background: var(--beige-deep); border-color: var(--beige-deep); color: var(--ink); }
.bw-calday.is-active:hover:not(:disabled) { background: var(--beige-deep); color: var(--ink); }
.bw-day.is-active:hover:not(:disabled) { background: rgba(226, 202, 178, .18); }
.bw-opt:disabled { opacity: 1; cursor: not-allowed; text-decoration: line-through;
  color: rgba(246, 243, 239, .42); border-color: rgba(255,255,255,.06); }
.bw-opt small { display: block; font-size: 0.7rem; color: rgba(246, 243, 239, .72); margin-top: 2px; }

.bw-days { display: flex; flex-direction: column; gap: 0.4rem; }
.bw-day {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink-3, #262218); border-radius: 6px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
  text-align: left; transition: border-color var(--fast), background var(--fast);
}
.bw-day:hover:not(:disabled) { border-color: var(--beige); background: rgba(226, 202, 178, .06); }
.bw-day.is-active { border-color: var(--beige); background: rgba(226, 202, 178, .12); }
.bw-day:disabled { opacity: 1; cursor: not-allowed; color: rgba(246, 243, 239, .45); border-color: rgba(255,255,255,.06); }
.bw-day:disabled b { color: rgba(246, 243, 239, .55); }
.bw-day:disabled span { opacity: 1; color: rgba(246, 243, 239, .5); }
.bw-day b { font-weight: 600; text-transform: capitalize; }
.bw-day span { margin-left: auto; font-size: 0.8rem; color: rgba(246, 243, 239, .68); }

/* Bascule liste ↔ calendrier */
.bw-toggle {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; margin-top: 0.9rem; padding: 0.7rem;
  border: 1px dashed var(--ink-3, #262218); border-radius: 6px;
  background: transparent; color: var(--beige); font: inherit; font-size: 0.85rem;
  cursor: pointer; transition: border-color var(--fast), background var(--fast);
}
.bw-toggle:hover { border-color: var(--beige); background: rgba(226, 202, 178, .06); }
.bw-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.bw-calhead { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.bw-calhead h3 { margin: 0 auto; text-transform: capitalize; }
.bw-calnav {
  border: 1px solid var(--ink-3, #262218); border-radius: 6px; background: transparent;
  color: inherit; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center;
  transition: border-color var(--fast), opacity var(--fast);
}
.bw-calnav:hover:not(:disabled) { border-color: var(--beige); }
.bw-calnav:disabled { opacity: 1; cursor: not-allowed; color: rgba(246, 243, 239, .3); border-color: rgba(255,255,255,.06); }
.bw-calnav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bw-next svg { transform: rotate(180deg); }

.bw-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bw-caldow {
  text-align: center; font-size: 0.7rem; letter-spacing: 0.08em;
  color: rgba(246, 243, 239, .68); padding-bottom: 0.3rem;
}
.bw-calday {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: 6px;
  background: rgba(255, 255, 255, .03); color: inherit; font: inherit; font-size: 0.88rem;
  cursor: pointer; transition: background var(--fast), border-color var(--fast);
}
.bw-calday:hover:not(:disabled) { background: rgba(226, 202, 178, .14); border-color: var(--beige); }
.bw-calday.is-active { background: var(--beige); color: var(--ink); font-weight: 600; }
/* Un jour non réservable reste une date qu'on doit pouvoir lire pour se
   repérer dans le mois — 4,9:1, au-dessus du seuil de lecture. */
.bw-calday:disabled {
  opacity: 1; cursor: not-allowed; background: transparent;
  color: rgba(246, 243, 239, .56); text-decoration: line-through;
  text-decoration-thickness: 1px; text-decoration-color: rgba(246, 243, 239, .3);
}

.bw-service { margin-bottom: 1.1rem; }

/**
 * Petit mot du restaurant, sous les heures de son service.
 *
 * Il s'adresse à celui qui vient de constater que l'heure voulue n'est pas
 * proposée — c'est pourquoi il vit ici, et non dans la phrase d'accueil que
 * tout le monde lit sans être concerné.
 *
 * Le ton visuel est donc mesuré : même taille que les mentions du formulaire,
 * un filet beige pour le rattacher au service au-dessus, aucun fond ni cadre
 * qui en ferait une alerte. On l'aperçoit en descendant, on ne bute pas dessus.
 */
/* `.bw-note` était déjà pris par trois messages du widget — grands groupes,
   dernière date réservable, récapitulatif. Réutiliser ce nom leur aurait ajouté
   un filet beige à tous. D'où un nom distinct. */
.bw-mot {
  margin: 0.7rem 0 0;
  padding: 0.1rem 0 0.1rem 0.7rem;
  border-left: 2px solid var(--beige, #E2CAB2);
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(246, 243, 239, .74);
}
/* Un numéro qui ne se distingue que par sa teinte n'invite personne à le
   toucher : sur ce fond, l'écart entre le beige et le texte est trop faible.
   Le soulignement fait le travail — c'est ce qui dit « ceci s'active ».
   La règle couvre les quatre textes libres du formulaire, pour qu'un numéro
   ait la même allure où qu'il soit écrit. */
.bw-mot a, .bw-intro a, .bw-note a, .bw-done h3 a, .bw-error a {
  color: var(--beige, #E2CAB2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(226, 202, 178, .45);
}
.bw-mot a:hover, .bw-intro a:hover, .bw-note a:hover, .bw-done h3 a:hover, .bw-error a:hover {
  text-decoration-color: currentColor;
}
.bw-service h4 {
  margin: 0 0 0.5rem; font-family: var(--body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--beige);
}

.bw-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.8rem; }
.bw-field label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246, 243, 239, .72); }
/* Champs de saisie : sur un fond aussi sombre, un fond à 3 % et une bordure
   ardoise se confondaient avec le panneau — on ne voyait pas où écrire.
   Le fond est éclairci et la bordure prend une pointe de beige. */
.bw-field input, .bw-field textarea, .bw-field select {
  width: 100%; padding: 0.7rem 0.8rem;
  border: 1px solid rgba(226, 202, 178, .28); border-radius: 6px;
  background: rgba(255, 255, 255, .075);
  color: var(--cream, #f6f3ef); font: inherit; font-size: 0.95rem;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.bw-field textarea { min-height: 72px; resize: vertical; }

/* Indication de saisie : assez claire pour se lire, assez discrète pour ne pas
   passer pour du texte déjà saisi. */
.bw-field input::placeholder, .bw-field textarea::placeholder {
  color: rgba(246, 243, 239, .58);
  opacity: 1;   /* Firefox l'atténue par défaut */
}

.bw-field input:hover, .bw-field textarea:hover, .bw-field select:hover {
  border-color: rgba(226, 202, 178, .5);
}
.bw-field input:focus, .bw-field textarea:focus, .bw-field select:focus {
  outline: none;
  border-color: var(--beige);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(226, 202, 178, .18);
}
.bw-field select { display: none; }   /* remplacé par la liste ci-dessous */

/* Liste déroulante maison : le menu natif s'affiche aux couleurs du système
   (bleu vif sur fond clair), étranger au reste du formulaire. */
.bw-select { position: relative; }
.bw-select__button {
  width: 100%; padding: 0.7rem 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(226, 202, 178, .28); border-radius: 6px;
  background: rgba(255, 255, 255, .075);
  color: var(--cream, #f6f3ef); font: inherit; font-size: 0.95rem;
  cursor: pointer; text-align: left;
  transition: border-color var(--fast), background var(--fast);
}
.bw-select__button:hover { border-color: rgba(226, 202, 178, .5); }
.bw-select__button[aria-expanded="true"] { border-color: var(--beige); background: rgba(255, 255, 255, .1); }
.bw-select__button svg {
  width: 14px; height: 14px; margin-left: auto; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  transition: transform var(--fast);
}
.bw-select__button[aria-expanded="true"] svg { transform: rotate(180deg); }

.bw-select__list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10;
  padding: 4px; margin: 0; list-style: none;
  background: #221e18; border: 1px solid rgba(226, 202, 178, .3); border-radius: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.bw-select__list.is-open { opacity: 1; transform: none; pointer-events: auto; }
.bw-select__option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.7rem; border-radius: 4px;
  font-size: 0.92rem; cursor: pointer;
}
.bw-select__option:hover, .bw-select__option.is-focus { background: rgba(226, 202, 178, .14); }
.bw-select__option[aria-selected="true"] { color: var(--beige); font-weight: 600; }
.bw-select__option::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: transparent; border: 1px solid rgba(246, 243, 239, .35);
}
.bw-select__option[aria-selected="true"]::before { background: var(--beige); border-color: var(--beige); }
.bw-field .bw-hint { font-size: 0.74rem; color: rgba(246, 243, 239, .6); }
.bw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Récapitulatif : c'est ce que le client relit avant de valider. Il doit se
   lire d'un coup d'œil, et chaque case ramène à l'étape correspondante. */
.bw-recap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem;
  margin-bottom: 0.5rem;
  /* Le formulaire est plus haut que l'écran : le récapitulatif reste visible
     pendant la saisie, sinon on ne sait plus ce qu'on est en train de réserver.
     Le fond est opaque et déborde jusqu'aux bords du corps — sans cela, une
     bande de la hauteur du padding laisse voir les champs passer dessous. */
  /* Le décalage annule le padding du corps : sans lui, le bloc se fige 18 px
     plus bas et une bande laisse voir les champs défiler par-dessous. */
  position: sticky; top: -1.15rem; z-index: 3;
  margin: -1.15rem -1.15rem 0.5rem;
  padding: 1.15rem 1.15rem 0.55rem;
  background: var(--ink-2, #16140f);
}
/* Le dégradé masque la coupure nette du contenu qui passe dessous */
.bw-recap::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  background: linear-gradient(var(--ink-2, #16140f), transparent);
  pointer-events: none;
}
.bw-recap-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.75rem 0.4rem;
  border: 1px solid var(--ink-3, #262218); border-radius: 8px;
  background: rgba(226, 202, 178, .07);
  color: inherit; font: inherit; cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
.bw-recap-item:hover { border-color: var(--beige); background: rgba(226, 202, 178, .14); }
.bw-recap-val {
  font-family: var(--display); font-size: 1.25rem; line-height: 1.15;
  color: var(--beige); text-align: center;
}
.bw-recap-cle {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: lowercase;
  color: rgba(246, 243, 239, .7); text-align: center;
}
.bw-recap-aide {
  margin: 0 0 1.1rem; text-align: center;
  font-size: 0.74rem; color: rgba(246, 243, 239, .55);
}

@media (max-width: 400px) {
  .bw-recap-val { font-size: 1.05rem; }
}

/* Le bouton de validation de l'étape « couverts » suit la note, avec de l'air */
#bwNext { margin-top: 1rem; }

.bw-foot { padding: 0 1.15rem 1.15rem; }
.bw-submit {
  width: 100%; padding: 0.85rem 1rem;
  border: none; border-radius: 6px;
  background: var(--beige); color: var(--ink);
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: background var(--fast);
}
.bw-submit:hover:not(:disabled) { background: var(--beige-deep); }
.bw-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Le bouton reste au bas du panneau, même quand le formulaire déborde : c'est
   la seule action de l'étape, elle ne doit jamais demander à faire défiler. */
.bw-valider {
  position: sticky; bottom: -1.15rem; z-index: 3;
  margin: 0.2rem -1.15rem -1.15rem;
  padding: 0.7rem 1.15rem 1.15rem;
  background: var(--ink-2, #16140f);
}
.bw-valider::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px;
  background: linear-gradient(transparent, var(--ink-2, #16140f));
  pointer-events: none;
}

.bw-error {
  margin: 0 0 0.9rem; padding: 0.65rem 0.8rem;
  background: rgba(217, 119, 108, .14); border: 1px solid rgba(217, 119, 108, .4);
  border-radius: 4px; font-size: 0.84rem; color: #f3c9c3;
}
.bw-note { margin: 0.9rem 0 0; font-size: 0.8rem; line-height: 1.6; color: rgba(246, 243, 239, .7); }
.bw-note a { color: var(--beige); }

.bw-done { text-align: center; padding: 0.6rem 0 0.2rem; }
.bw-done .bw-check {
  width: 46px; height: 46px; margin: 0 auto 0.9rem;
  border-radius: 50%; border: 1px solid var(--beige);
  display: grid; place-items: center;
}
.bw-done .bw-check svg { width: 22px; height: 22px; fill: none; stroke: var(--beige); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bw-done h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 400; letter-spacing: 0.02em; }
.bw-done .bw-ref {
  display: inline-block; margin: 0.4rem 0 0.9rem; padding: 0.3rem 0.7rem;
  border: 1px dashed var(--ink-3, #262218); border-radius: 4px;
  font-family: ui-monospace, monospace; font-size: 0.9rem; color: var(--beige);
}

/* Fermeture en cours : dite avant la liste, avec la date de réouverture —
   sans quoi le visiteur voit une suite de « fermé » sans comprendre pourquoi. */
.bw-ferme {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin: 0 0 0.9rem; padding: 0.7rem 0.8rem;
  background: rgba(226, 202, 178, .1);
  border: 1px solid rgba(226, 202, 178, .3); border-radius: 8px;
  font-size: 0.85rem; line-height: 1.55; color: rgba(246, 243, 239, .9);
}
.bw-ferme svg {
  flex: none; width: 17px; height: 17px; margin-top: 1px;
  fill: none; stroke: var(--beige); stroke-width: 1.7; stroke-linecap: round;
}
.bw-ferme b { color: var(--beige); font-weight: 600; }

/* Jour complet : refusé comme un jour fermé, mais dit autrement — « fermé »
   et « complet » n'appellent pas la même réaction du visiteur. */
.bw-day[disabled] span { opacity: .75; }

.bw-empty { padding: 1.4rem 0.5rem; text-align: center; font-size: 0.88rem; line-height: 1.6; color: rgba(246, 243, 239, .8); }
.bw-empty a { color: var(--beige); }

.bw-loading { padding: 1.6rem; text-align: center; color: rgba(246, 243, 239, .72); font-size: 0.85rem; }

/* Sur téléphone, le widget occupe l'écran : quatre étapes et un formulaire ne
   tiennent pas dans une feuille de 88 % de hauteur — on scrollait dans un
   panneau qui scrollait lui-même dans la page. `dvh` tient compte des barres
   du navigateur, qui apparaissent et disparaissent au défilement. */
@media (max-width: 620px) {
  .bw-panel {
    right: 0; left: 0; top: 0; bottom: 0; width: 100%;
    height: 100vh; height: 100dvh; max-height: none;
    border-radius: 0; border-left: none; border-right: none;
    transform-origin: bottom center;
    transform: translateY(100%);
  }
  .bw-panel.is-open { transform: none; }
  /* L'en-tête ne défile pas : la croix reste atteignable partout */
  .bw-head { position: sticky; top: 0; z-index: 4; background: var(--ink-2, #16140f); }
  .bw-body { padding-bottom: max(1.15rem, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .bw-panel, .bw-backdrop, .bw-fab { transition: none; }
  .bw-body > * { animation: none; }
}
