/* v130.8 — Transactions : sticky réellement attaché au viewport / safe area. */

/*
 * IMPORTANT : overflow-x:hidden sur un ancêtre peut créer un scroll container
 * et empêcher position:sticky de se référer au viewport, particulièrement sur
 * Safari iOS. clip coupe le débordement horizontal sans créer ce conteneur.
 */
body.transactions-mode,
body.transactions-mode .page {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

html.is-ios body.transactions-mode #transactions-hub,
html.is-macos body.transactions-mode #transactions-hub,
body.transactions-mode #transactions-hub {
  position: sticky !important;
  top: var(--safe-top) !important;
  z-index: 90 !important;
}

/* Une fois collée, la barre couvre proprement la zone de contenu sous le système. */
body.transactions-mode #transactions-hub.is-sticking {
  margin-top: 0 !important;
}
