/* Fix round 1, group fxa: one floating layer at a time (14 Nov 2026). Loaded last, only while the round is on
   (body.chvf1), only on product pages, Build a Stack, the order-received page and signed-in account screens.
   No colour, no size and no word changes here: only when a floating layer is on screen and where the page ends. */

/* 1. Product page, phones: the sticky Add bar stays away until v2-fix1-fxa.js says the buy area's own button has gone up
      past the header and the footer has not arrived (class fxa-on). Same "away" state as the page's own .is-off. */
@media (max-width:899px){
  body.chvf1 .c3-root .p3-pbar:not(.fxa-on){transform:translateY(calc(100% + 1px));visibility:hidden;pointer-events:none}
}
@media (max-width:899.98px) and (min-height:431px){
  body.chvf1.cl3-pb-on .c3-root .p3-pbar:not(.fxa-on){transform:translateY(calc(100% + var(--cl3-pb) + 12px))}
}
@media (prefers-reduced-motion:no-preference) and (max-width:899px){
  body.chvf1 .c3-root .p3-pbar:not(.fxa-on){transition:transform .26s cubic-bezier(.4,0,1,1),visibility 0s linear .26s}
}
/* The page kept room under the footer for the bar (product.css, phone-bar.css: body:has(.p3-pbar)). The bar now leaves at
   the footer, so that room would be an empty band: the page ends like every other page and like a product with no bar.
   Where :has() is not understood the room was never there, so nothing to undo. */
@media (max-width:899px){
  body.chvf1.single-product:has(.c3-root .p3-pbar){padding-bottom:0}
}

/* 2. (The WhatsApp button and its note: two list changes inside assets/v3/chrome/chrome.js and wa-tip.js, no styles.) */

/* 3. Footer, phones. Build a Stack keeps its bar for the whole page, so the footer's last row (copyright, Back to top)
      used to end under it. The footer now ends above the bar with the same space it keeps above the tab bar everywhere
      else: its own 20 px + the tab bar (phone-bar.css) + the bar's height and the 8 px under it. (The cart's Total bar
      leaves by itself once the summary's own Checkout button is on screen, so the cart needs nothing.) */
@media (max-width:899.98px) and (min-height:431px){
  body.chvf1.cl3-pb-on.page-template-template-stack .c3-root.b3-ftr{padding-bottom:calc(20px + var(--cl3-pb) + 72px)} /* stack bar 64 + 8 */
  /* the install hint (72 px card, 10 px above the tab bar): once it has shown on this page the footer keeps that room,
     so nothing jumps when the card is closed */
  html.fxa-hint-room body.chvf1.cl3-pb-on .c3-root.b3-ftr{padding-bottom:calc(20px + var(--cl3-pb) + 82px)}
}

/* 4. Install hint and a message card (.cl-toast) on one screen: one at a time. While the card is up the hint steps aside
      (the state its own script uses while a menu or the cart is open) and comes back when the card has left: a 0.18 s fade
      out, its own 0.22 s fade in. v2-fix1-fxa.js sets html.fxa-toast and the card's height. If the keyboard focus is inside
      the hint it stays, 8 px above the card, so nobody loses their place. */
html.fxa-toast body.chvf1 .ao-hint:not(:focus-within){opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility 0s linear .18s}
html.fxa-toast body.chvf1 .ao-hint.is-in:focus-within{transform:translateY(calc(-12px - var(--fxa-toast-h,64px)))}
@media (max-width:899.98px) and (min-height:431px){
  html.fxa-toast body.chvf1.cl3-pb-on .ao-hint.is-in:focus-within{transform:translateY(calc(-10px - var(--fxa-toast-h,64px)))}
}
@media (prefers-reduced-motion:reduce){
  html.fxa-toast body.chvf1 .ao-hint:not(:focus-within){transition:none}
}
