/* --- Sticky mobile "MUA NGAY" bar (see assets/sticky-buy-bar.js). Hidden
   above the same 640px breakpoint where the .pd-btn-group action buttons
   stack vertically (see style.css, .pd-btn-group @media max-width: 640px) —
   the sticky bar only makes sense once the original buttons are stacked and
   can scroll out of view. --- */
.pcseal-buybar {
  display: none;
}

@media (max-width: 640px) {
  .pcseal-buybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    /* Above WooCommerce's own demo-store notice bar (.woocommerce-store-notice,
       z-index: 9998, also fixed to the bottom) — without this the notice paints
       over the buy bar entirely. */
    z-index: 9999;
    padding: 10px 14px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
    transition: bottom .2s ease;
  }
  .pcseal-buybar.is-visible {
    bottom: 0;
  }
  .pcseal-buybar-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pcseal-buybar-buy {
    flex-shrink: 0;
    background: var(--gold);
    color: var(--ink);
    border: 2px solid var(--gold);
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    transition: all .2s ease;
  }
  .pcseal-buybar-buy:hover {
    background: #e64a19;
    border-color: #e64a19;
    box-shadow: var(--glow-orange);
  }
}
