.bid-app .store-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.bid-app .store-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e9f3;border-radius:13px;overflow:hidden;color:#15243a}.bid-app .store-card:hover{border-color:#123be3}.store-photo{height:155px;padding:12px;background:#fff;display:grid;place-items:center}.store-photo img,.detail-photo img{width:100%;height:100%;object-fit:contain}.store-copy{display:flex;flex-direction:column;gap:5px;padding:13px;flex:1}.store-copy strong{font-size:14px;overflow-wrap:anywhere}.store-copy .btn{margin-top:auto;text-align:center}.store-price{font-weight:750;font-size:18px;margin-top:8px}.detail-photo{height:230px;padding:15px;margin:0 0 18px;background:white;display:grid;place-items:center}.product-description{white-space:pre-line;overflow-wrap:anywhere}.spec-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f6}.order-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.order-state{font-size:12px;color:#53647e;background:#edf2fa;padding:5px 9px;border-radius:20px}.order-title{font-weight:650;color:#15243a;display:block;line-height:1.45}.order-values{display:flex;gap:30px;margin:16px 0}.order-values strong{display:block;font-size:20px}.order-card form{margin:0}.order-card button{width:100%;color:#b42318!important}.bid-app .order-card{padding:18px}.store-grid .simple-empty{grid-column:1/-1}@media(max-width:850px){.bid-app .store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.bid-app .store-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.store-photo{height:125px;padding:8px}.store-copy{padding:10px}.store-copy strong{font-size:13px}.store-price{font-size:16px}.detail-photo{height:210px}.order-title{font-size:15px}.bid-app .order-card{padding:15px}}
/* Explicitly constrain replaced elements despite legacy storefront img rules.
   Absolute positioning inside a clipped, fixed-size box prevents grid
   intrinsic image dimensions from overflowing into adjacent text. */
body.bid-app .store-card > .store-photo,
body.bid-app .terminal-product > .detail-photo {
  position:relative; display:block; flex:none; width:100%; min-width:0;
  overflow:hidden; box-sizing:border-box; isolation:isolate;
  padding:0; background:#fff; aspect-ratio:auto;
}
body.bid-app .store-card > .store-photo {height:170px; min-height:170px; max-height:170px;}
body.bid-app .terminal-product > .detail-photo {height:clamp(220px,45vw,360px); margin:0 0 22px; border:1px solid #edf1f6; border-radius:10px;}
body.bid-app .store-card > .store-photo > img,
body.bid-app .terminal-product > .detail-photo > img {
  position:absolute !important; inset:12px !important; display:block !important;
  width:calc(100% - 24px) !important; height:calc(100% - 24px) !important;
  max-width:calc(100% - 24px) !important; max-height:calc(100% - 24px) !important;
  min-width:0 !important; min-height:0 !important; object-fit:contain !important;
  object-position:center; margin:0 !important; padding:0 !important; transform:none !important;
  aspect-ratio:auto !important;
}
body.bid-app .store-card > .store-copy {position:relative; min-width:0; padding:14px; gap:6px;}
body.bid-app .store-copy > strong {display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; line-height:1.45; min-height:4.35em;}
body.bid-app .store-copy > small {overflow-wrap:anywhere;}
body.bid-app .store-copy > .btn {margin-top:auto; white-space:normal;}
body.bid-app .store-grid {align-items:stretch;}
body.bid-app .store-photo .image-unavailable,body.bid-app .detail-photo .image-unavailable {position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; background:#f7f9fd; color:#66758d; font-size:12px; text-align:center;}
body.bid-app .image-unavailable svg {width:32px; height:32px; color:#94a3b8;}
body.bid-app #price-chart {scroll-margin-top:86px;}
@media(max-width:600px) {
 body.bid-app .store-card > .store-photo {height:126px; min-height:126px; max-height:126px;}
 body.bid-app .terminal-product > .detail-photo {height:230px;}
 body.bid-app .store-card > .store-copy {padding:10px;}
 body.bid-app .store-copy > strong {font-size:13px;}
 body.bid-app #price-chart {scroll-margin-top:72px;}
}

body.bid-app .store-card[hidden]{display:none!important;}

body.bid-app #bid-confirmation{scroll-margin-top:86px;border-color:#b7dfcb;background:#f0faf5;color:#145c3a}body.bid-app #bid-confirmation p{margin:8px 0}body.bid-app #bid-confirmation strong{font-size:17px}
