/* First-bid path (2026-11-10): on a phone the price and Add to cart stay on the first screen.
   The bar carries the price in words and a labelled button, so nothing rests on colour.
   Margins, not flex gap, for the Safari 13 bidder floor. Shared by the single Marketplace
   listing and the grouped-offer page (templates/auctions/_phone_buy_bar.html). */
.market-sticky-buy, .market-sticky-buy-spacer { display:none; }
@media (max-width:640px) {
  .market-sticky-buy { display:flex; flex-wrap:wrap; align-items:center; position:fixed; left:0; right:0; bottom:0; z-index:60;
    box-sizing:border-box; padding:.55rem .9rem; padding-bottom:calc(.55rem + env(safe-area-inset-bottom, 0px));
    background:var(--card, #fff); color:var(--ink, #172b43); border-top:2px solid var(--ink, #172b43);
    box-shadow:0 -4px 14px rgba(0,0,0,.25); }
  /* The bar gives way while the page's own Add to cart control is on screen. */
  .market-sticky-buy.is-covered { display:none; }
  /* Room at the page end, so the last line is never under the bar. */
  .market-sticky-buy-spacer { display:block; height:6.5rem; }
  /* The price asks for 7rem and grows, so it shares the row with the button on an ordinary
     phone. When the row cannot hold both (large text on a narrow phone) the button takes
     the next row; neither is squeezed or clipped. Equal top and bottom margins keep the two
     centred on a shared row and apart on separate rows. */
  .market-sticky-price { flex:1 1 7rem; min-width:0; margin:.15rem .7rem .15rem 0; line-height:1.2; }
  .market-sticky-price strong { display:block; font-size:1.35rem; font-weight:850; }
  .market-sticky-price span { display:block; font-size:.74rem; }
  /* No fixed width: the button is as wide as its words, never wider than the bar, and its
     words may wrap. A fixed rem width ran off a 320px screen at double text size. */
  .market-sticky-buy button { flex:0 1 auto; min-width:0; max-width:100%; min-height:48px; margin:.15rem 0;
    padding:.6rem 1rem; white-space:normal;
    border:2px solid var(--ink, #172b43); border-radius:10px; background:var(--ink, #172b43);
    color:var(--card, #fff); font:inherit; font-weight:800; cursor:pointer; }
  .market-sticky-buy button:focus { outline:3px solid var(--ink, #172b43); outline-offset:3px; }
  .market-sticky-buy button[disabled] { border-style:dashed; cursor:progress; }
  /* What the cart form just reported, repeated here because its own line is off screen. */
  .market-sticky-status { flex:1 1 100%; margin:.4rem 0 0; font-size:.82rem; font-weight:650; line-height:1.3; }
  .market-sticky-status:empty { display:none; }
}
