/*! ugm-sticky-buy-CTqInc14 — mobile sticky Buy/Cart (selection-ready)
 * UGM_STICKY_BUY:CTqInc14
 */

@media (max-width: 960px) {
  /* Boost native sticky: selection-ready (JS toggles .ugm-boost-sticky-on) */
  .boost-detail-page .boost-checkout-sticky {
    bottom: calc(3.65rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 56 !important;
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .boost-detail-page.ugm-boost-sticky-on .boost-checkout-sticky {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  /* Item / money desk clone bar */
  .ugm-sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(3.55rem + env(safe-area-inset-bottom, 0px));
    z-index: 58;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 12, 16, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .ugm-sticky-buy.is-on {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .ugm-sticky-buy__price {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
  }

  .ugm-sticky-buy__price span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .ugm-sticky-buy__price strong {
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
  }

  .ugm-sticky-buy__actions {
    display: flex;
    gap: 0.4rem;
    flex: 0 0 auto;
  }

  .ugm-sticky-buy__actions .btn {
    min-height: 42px;
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .ugm-sticky-buy__actions .btn-ghost {
    min-width: 4.2rem;
  }

  html.ugm-sticky-buy-on .buy-panel,
  html.ugm-sticky-buy-on .shop-buy,
  html.ugm-sticky-buy-on .money-desk-buy {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 961px) {
  .ugm-sticky-buy {
    display: none !important;
  }
}
