/* Phone-only price + Buy Now bar for product pages. Hidden on wider screens and
   whenever the page's own Buy Now button is on screen (see mobile-buy-bar.js). */
.h2a-mobile-buy-bar { display: none; }

@media (max-width: 760px) {
  .h2a-mobile-buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fffdf9; border-top: 1px solid #e3d9c8;
    box-shadow: 0 -6px 18px rgba(15, 36, 46, .12);
    transform: translateY(110%); transition: transform .2s ease;
  }
  .h2a-mobile-buy-bar.is-visible { transform: translateY(0); }
  .h2a-mobile-buy-bar__info { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
  .h2a-mobile-buy-bar__name {
    display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-size: .8rem; color: #52616b;
  }
  .h2a-mobile-buy-bar__price { display: block; font-size: 1.15rem; font-weight: 700; color: #1d2f36; }
  .h2a-mobile-buy-bar__shipping { display: block; font-size: .72rem; color: #52616b; }
  .h2a-mobile-buy-bar .h2a-mobile-buy-bar__buy {
    flex: 0 0 auto; width: auto; min-height: 46px; margin: 0; padding: 10px 22px;
    border-radius: 999px; font-weight: 700; white-space: nowrap;
  }
  body.h2a-has-mobile-buy-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .h2a-mobile-buy-bar { transition: none; }
}
