/* Shared small-screen layout for auction and Buy Now product details. */
@media (max-width:640px){
  .summary{padding:18px}
  .sum-titlerow{flex-direction:column;align-items:stretch;gap:12px}
  .sum-titlewrap,.sum-titlerow>.lot-title{width:100%;min-width:0}
  .sum-titlerow>.chip-status,.sum-titlerow>.badge-status{order:-1;align-self:flex-start}
  .summary .lot-title{font-size:20px;line-height:1.35;overflow-wrap:anywhere}
  .summary .title-location{max-width:100%;line-height:1.35}
  .summary .title-location span{min-width:0;overflow-wrap:anywhere}
  .summary .row>div:last-child{min-width:0;text-align:right;overflow-wrap:anywhere}
  .bid-hero{flex-wrap:wrap}
  .bid-hero .bh-time{text-align:left}
  .bid-hero #highestBid{overflow-wrap:anywhere}
}

@media (max-width:480px){
  .bid-hero{flex-direction:column;gap:16px}
  .bid-form{flex-direction:column}
  .bid-form input{width:100%;font-size:16px}
  .bid-form .btn-primary{min-height:44px}
  .lf-stickybuy .lf-sb-vals{flex-direction:column;align-items:flex-start;gap:2px}
  .lf-stickybuy .lf-sb-price{font-size:18px}
  .lf-stickybuy .lf-sb-time{max-width:100%;font-size:12px}
  .lf-stickybuy .lf-sb-btn{min-height:44px;padding:13px 16px;font-size:14px}
}

@media (max-width:760px){
  /* Keep support reachable without covering the fixed bid / buy action. */
  html body:has(.lf-stickybuy[data-open="1"][data-inview="0"]){
    padding-bottom:calc(88px + env(safe-area-inset-bottom));
  }
  body:has(.lf-stickybuy[data-open="1"][data-inview="0"]) .lfsc:not(.open){
    bottom:calc(100px + env(safe-area-inset-bottom));
  }
}
