/* ZUPIX PATCH 128 — larger seller/rating footer.
   Keeps title size 17.5px and weight 620 from 127.
   Enlarges only the seller + rating row highlighted by the user. */

/* Product titles: exact desktop size from reference, current weight preserved. */
html body .premium-home .market-products-showcase .market-card-body h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  flex:0 0 42px!important;
  margin:0 0 8px!important;
  padding:0!important;
  color:#172239!important;
  font-size:17.5px!important;
  line-height:21px!important;
  font-weight:620!important;
  letter-spacing:-.04px!important;
}
html body .premium-home .market-products-showcase .market-price-line{
  position:relative!important;
  z-index:1!important;
  margin-top:0!important;
  clear:both!important;
}

/* Preserve the current lighter supporting typography from 122. */
html body .premium-home .market-products-showcase .market-card-tag{font-weight:700!important}
html body .premium-home .market-products-showcase .market-card-delivery{font-weight:600!important}
html body .premium-home .market-products-showcase .market-seller-chip b{font-weight:630!important}

/* Preserve footer/rating polish and native card grid. */
html body .premium-home .market-products-showcase .market-card-body{padding-bottom:13px!important}
html body .premium-home .market-products-showcase .market-card-footer{
  margin-top:8px!important;
  padding-top:9px!important;
  padding-bottom:1px!important;
  gap:9px!important;
}
html body .premium-home .market-products-showcase .market-seller-chip{gap:7px!important}
html body .premium-home .market-products-showcase .market-card-rating{gap:2px!important}
html body .premium-home .market-products-showcase .market-rating-value{
  color:#465168!important;
  font-size:10px!important;
  font-weight:660!important;
  margin-right:1px!important;
}
html body .premium-home .market-products-showcase .market-rating-stars{
  font-size:9.3px!important;
  letter-spacing:.1px!important;
}
html body .premium-home .market-products-showcase .market-review-count{
  color:#9ba4b3!important;
  font-size:8.8px!important;
  margin-left:1px!important;
}

@media (min-width:1361px){
  html body .premium-home .market-products-showcase .market-product-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:12px!important;
  }
  html body .premium-home .market-products-showcase .market-product-grid > .market-card{grid-column:auto!important}
}
@media (min-width:1041px) and (max-width:1360px){
  html body .premium-home .market-products-showcase .market-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:11px!important;
  }
  html body .premium-home .market-products-showcase .market-product-grid > .market-card{grid-column:auto!important}
}

html body .premium-home .market-products-showcase.is-home-feed{padding-bottom:12px!important}
html body .premium-home > .market-trust-strip{margin:8px auto 0!important}

@media (max-width:720px){
  html body .premium-home .market-products-showcase .market-card-body h3{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    flex:0 0 34px!important;
    margin-bottom:6px!important;
    font-size:11.8px!important;
    line-height:17px!important;
    font-weight:660!important;
  }
  html body .premium-home .market-products-showcase .market-card-footer{
    margin-top:6px!important;
    padding-top:7px!important;
  }
  html body .premium-home > .market-trust-strip{margin-top:6px!important}
}


/* PATCH 132 — rating scale refinement.
   Seller name remains 13px / 540.
   Rating value and stars increased by another 1.5px.
   Footer alignment stays on one horizontal line. */
html body .premium-home .market-products-showcase .market-card-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  min-height:38px!important;
  margin-top:8px!important;
  padding-top:8px!important;
  padding-bottom:2px!important;
  gap:10px!important;
}
html body .premium-home .market-products-showcase .market-card-seller{
  display:flex!important;
  align-items:center!important;
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
html body .premium-home .market-products-showcase .market-seller-chip{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
  gap:7px!important;
  line-height:1!important;
}
html body .premium-home .market-products-showcase .market-seller-avatar{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  flex:0 0 26px!important;
  font-size:8.5px!important;
}
html body .premium-home .market-products-showcase .market-seller-chip b{
  display:block!important;
  min-width:0!important;
  max-width:118px!important;
  margin:0!important;
  color:#354159!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:540!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body .premium-home .market-products-showcase .market-seller-chip em{
  display:inline-flex!important;
  align-items:center!important;
  font-size:10px!important;
  line-height:1!important;
}
html body .premium-home .market-products-showcase .market-card-rating{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex:0 0 auto!important;
  flex-wrap:nowrap!important;
  min-width:max-content!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  gap:2px!important;
  line-height:1!important;
  white-space:nowrap!important;
  align-self:center!important;
}
html body .premium-home .market-products-showcase .market-rating-value{
  margin:0 2px 0 0!important;
  color:#465168!important;
  font-size:13.7px!important;
  line-height:1!important;
  font-weight:620!important;
}
html body .premium-home .market-products-showcase .market-rating-stars{
  margin:0!important;
  font-size:13.5px!important;
  line-height:1!important;
  letter-spacing:.08px!important;
  vertical-align:middle!important;
}
html body .premium-home .market-products-showcase .market-review-count{
  margin:0 0 0 2px!important;
  color:#9ba4b3!important;
  font-size:9px!important;
  line-height:1!important;
}
html body .premium-home .market-products-showcase .market-rating-new{
  margin-left:auto!important;
  font-size:11.7px!important;
  line-height:1!important;
  font-weight:540!important;
}

@media(max-width:720px){
  html body .premium-home .market-products-showcase .market-card-footer{
    min-height:34px!important;
    margin-top:6px!important;
    padding-top:7px!important;
    padding-bottom:1px!important;
    gap:6px!important;
  }
  html body .premium-home .market-products-showcase .market-seller-avatar{
    width:23px!important;
    height:23px!important;
    min-width:23px!important;
    flex-basis:23px!important;
  }
  html body .premium-home .market-products-showcase .market-seller-chip b{
    max-width:72px!important;
    font-size:9.4px!important;
    font-weight:540!important;
  }
  html body .premium-home .market-products-showcase .market-rating-value,
  html body .premium-home .market-products-showcase .market-rating-new{
    font-size:11.3px!important;
  }
  html body .premium-home .market-products-showcase .market-rating-stars{
    font-size:10.7px!important;
  }
  html body .premium-home .market-products-showcase .market-review-count{
    font-size:8.4px!important;
  }
}


/* PATCH 133 — enforce actual rating/star sizes.
   PATCH 132 changed the parent sizes, but stronger legacy !important rules
   target the <b> rating node and inner star spans directly. Override those
   exact nodes so the requested 13.7px / 13.5px is actually rendered. */
html body .premium-home .market-products-showcase .market-card-rating > b.market-rating-value{
  font-size:13.7px!important;
  line-height:1!important;
  font-weight:620!important;
}
html body .premium-home .market-products-showcase .market-card-rating > span.market-rating-stars{
  font-size:13.5px!important;
  line-height:1!important;
  letter-spacing:.08px!important;
}
html body .premium-home .market-products-showcase .market-card-rating > span.market-rating-stars > span.market-rating-stars-base,
html body .premium-home .market-products-showcase .market-card-rating > span.market-rating-stars > span.market-rating-stars-fill{
  font-size:13.5px!important;
  line-height:1!important;
  letter-spacing:.08px!important;
}

/* PATCH 135 — set Robux/category chip to 12.2px.
   Manual delivery remains 12.2px.
   Other card typography and geometry preserved. */
@media (min-width:721px){
  html body .premium-home .market-products-showcase .market-card-meta-chips .market-card-tag{
    font-size:12.2px!important;
  }
  html body .premium-home .market-products-showcase .market-card-meta-chips .market-card-delivery.is-manual{
    font-size:12.2px!important;
  }
}


/* PATCH 137 — vertically center seller + rating in the whole bottom area.
   Keep all current typography/sizes. Desktop only. */
@media (min-width:721px){
  html body .premium-home .market-products-showcase .market-card-body{
    padding-bottom:0!important;
  }
  html body .premium-home .market-products-showcase .market-card-footer{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:nowrap!important;
    width:100%!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    margin-top:8px!important;
    padding:0!important;
    border-top:1px solid #edf0f5!important;
    box-sizing:border-box!important;
    gap:10px!important;
  }
  html body .premium-home .market-products-showcase .market-card-seller,
  html body .premium-home .market-products-showcase .market-seller-chip,
  html body .premium-home .market-products-showcase .market-card-rating{
    align-self:center!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  html body .premium-home .market-products-showcase .market-card-seller{
    display:flex!important;
    align-items:center!important;
  }
  html body .premium-home .market-products-showcase .market-seller-chip{
    display:flex!important;
    align-items:center!important;
  }
  html body .premium-home .market-products-showcase .market-card-rating{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    margin-left:auto!important;
  }
}


/* PATCH 137 — compact seller card on product detail page.
   Keep the inline price/seller layout from product patch 098, but prevent the
   seller card from overflowing the right information panel. */
@media (min-width:721px){
  html body.z78-product-page .z97-commerce-head{
    grid-template-columns:minmax(0,1fr) 184px!important;
    column-gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  html body.z78-product-page .z97-price-area{
    min-width:0!important;
    max-width:100%!important;
  }
  html body.z78-product-page .z97-seller-inline{
    width:184px!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:54px!important;
    justify-self:end!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    padding:7px 8px!important;
    grid-template-columns:32px minmax(0,1fr) 12px!important;
    gap:7px!important;
    border-radius:13px!important;
  }
  html body.z78-product-page .z97-seller-inline .z14-seller-avatar{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    flex-basis:32px!important;
  }
  html body.z78-product-page .z97-seller-inline>div:nth-child(2){
    min-width:0!important;
    overflow:hidden!important;
  }
  html body.z78-product-page .z97-seller-inline small{
    font-size:8.5px!important;
    line-height:1.05!important;
  }
  html body.z78-product-page .z97-seller-inline b{
    max-width:100%!important;
    font-size:11px!important;
    line-height:1.15!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body.z78-product-page .z97-seller-inline span{
    max-width:100%!important;
    font-size:8.5px!important;
    line-height:1.15!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body.z78-product-page .z97-seller-inline em{
    width:12px!important;
    max-width:12px!important;
    overflow:hidden!important;
    font-size:14px!important;
    line-height:1!important;
  }
}

@media (min-width:721px) and (max-width:1280px){
  html body.z78-product-page .z97-commerce-head{
    grid-template-columns:minmax(0,1fr) 174px!important;
    column-gap:8px!important;
  }
  html body.z78-product-page .z97-seller-inline{
    width:174px!important;
  }
}
