/* Sprint 914 — Supplier sidebar review UI restore/hard-fix */

/* keep the complete right rail compact and card-based */
.tf-supplier-sidebar{
  display:grid!important;
  gap:10px!important;
  position:sticky!important;
  top:92px!important;
  align-self:start!important;
}
.tf-supplier-sidebar .supplier-commerce-card{
  position:static!important;
  top:auto!important;
  margin:0!important;
}

/* Supplier card */
.tf-supplier-reference-card{
  padding:16px!important;
  border:1px solid #dce5ed!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(16,50,82,.05)!important
}
.tf-supplier-reference-card .supplier-card-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important
}
.tf-supplier-reference-card .supplier-card-head img{
  width:50px!important;
  height:50px!important;
  border-radius:10px!important;
  object-fit:cover!important;
  border:1px solid #dfe6ed!important;
  background:#f7f9fb!important
}
.tf-supplier-reference-card .supplier-card-head small{
  display:block!important;
  color:#8495a5!important;
  font-size:7px!important
}
.tf-supplier-reference-card .supplier-card-head h2{
  margin:3px 0 2px!important;
  color:#153957!important;
  font-size:15px!important;
  line-height:1.2!important
}
.tf-gold-supplier{
  display:inline-flex!important;
  align-items:center!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  background:#fff2ca!important;
  color:#9c6b08!important;
  font-size:7px!important;
  font-weight:900!important
}
.tf-supplier-reference-card .supplier-trust-signals{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin:12px 0!important;
  padding-bottom:11px!important;
  border-bottom:1px solid #e8edf2!important
}
.tf-supplier-reference-card .supplier-trust-signals span{
  display:inline-flex!important;
  align-items:center!important;
  padding:5px 7px!important;
  border-radius:999px!important;
  background:#eaf3ff!important;
  color:#2261a1!important;
  font-size:7px!important;
  font-weight:900!important
}
.tf-supplier-reference-card .supplier-trust-signals span.green{
  background:#e9f7ef!important;
  color:#20764f!important
}
.tf-supplier-facts-reference{
  display:block!important;
  margin:0 0 12px!important;
  padding:0!important
}
.tf-supplier-facts-reference>div{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:9px 0!important;
  border-bottom:1px solid #edf1f4!important
}
.tf-supplier-facts-reference dt{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#8494a4!important;
  font-size:7px!important;
  font-weight:700!important
}
.tf-supplier-facts-reference dt svg{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important
}
.tf-supplier-facts-reference dd{
  margin:0!important;
  max-width:58%!important;
  text-align:right!important;
  color:#183a59!important;
  font-size:7px!important;
  font-weight:900!important
}
.tf-supplier-reference-card .button-blue{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:42px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  background:#173e64!important;
  border-color:#173e64!important;
  color:#fff!important;
  font-size:8px!important;
  font-weight:900!important
}

/* Supplier reviews card */
.tf-supplier-review-card{
  display:block!important;
  margin:0!important;
  padding:15px!important;
  border:1px solid #dce5ed!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 9px 26px rgba(16,50,82,.045)!important;
  color:#173957!important
}
.tf-supplier-review-card>header{
  display:flex!important;
  align-items:flex-start!important;
  gap:9px!important;
  margin:0 0 12px!important;
  padding:0 0 10px!important;
  border-bottom:1px solid #edf1f4!important
}
.tf-review-star{
  display:grid!important;
  place-items:center!important;
  width:30px!important;
  height:30px!important;
  flex:0 0 30px!important;
  border-radius:9px!important;
  background:#fff4cf!important;
  color:#d69300!important;
  font-size:16px!important;
  line-height:1!important
}
.tf-supplier-review-card h3{
  margin:0!important;
  color:#173957!important;
  font-size:13px!important;
  line-height:1.25!important
}
.tf-supplier-review-card header small{
  display:block!important;
  margin-top:3px!important;
  color:#8796a5!important;
  font-size:6.5px!important;
  line-height:1.4!important
}
.tf-review-summary{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  margin:0 0 12px!important
}
.tf-review-summary>strong{
  display:block!important;
  color:#153a5d!important;
  font-size:25px!important;
  line-height:1!important
}
.tf-review-summary>strong small{
  font-size:10px!important;
  color:#8191a0!important
}
.tf-review-stars{
  color:#efb223!important;
  font-size:13px!important;
  letter-spacing:1px!important
}
.tf-review-summary div span{
  display:block!important;
  margin-top:3px!important;
  color:#8292a1!important;
  font-size:7px!important
}
.tf-review-distribution{
  display:grid!important;
  gap:6px!important
}
.tf-review-distribution>div{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 28px!important;
  align-items:center!important;
  gap:7px!important;
  color:#738597!important;
  font-size:6.5px!important
}
.tf-review-distribution i{
  display:block!important;
  height:6px!important;
  border-radius:999px!important;
  background:#edf1f4!important;
  overflow:hidden!important
}
.tf-review-distribution i b{
  display:block!important;
  height:100%!important;
  border-radius:999px!important;
  background:#efb223!important
}
.tf-review-distribution em{
  font-style:normal!important;
  text-align:right!important;
  color:#304e68!important
}
.tf-review-empty{
  display:block!important;
  padding:12px!important;
  border:1px solid #e5ebf0!important;
  border-radius:9px!important;
  background:#f8fafc!important
}
.tf-review-empty strong{
  display:block!important;
  color:#294963!important;
  font-size:8px!important
}
.tf-review-empty span{
  display:block!important;
  margin-top:4px!important;
  color:#8091a0!important;
  font-size:7px!important;
  line-height:1.45!important
}
.tf-review-foot{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-top:11px!important;
  padding-top:10px!important;
  border-top:1px solid #edf1f4!important
}
.tf-review-foot span{
  color:#788b9c!important;
  font-size:7px!important
}
.tf-review-foot a{
  color:#1b5e9d!important;
  text-decoration:none!important;
  font-size:7px!important;
  font-weight:900!important
}

/* Why choose supplier */
.tf-why-supplier-card{
  display:block!important;
  margin:0!important;
  padding:15px!important;
  border:1px solid #dce5ed!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 9px 26px rgba(16,50,82,.045)!important;
  color:#173957!important
}
.tf-why-supplier-card h3{
  margin:0 0 12px!important;
  color:#173957!important;
  font-size:13px!important;
  line-height:1.25!important
}
.tf-why-supplier-card ul{
  display:grid!important;
  gap:10px!important;
  list-style:none!important;
  margin:0!important;
  padding:0!important
}
.tf-why-supplier-card li{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  color:#294966!important;
  font-size:8px!important;
  line-height:1.3!important
}
.tf-why-supplier-card li::marker{display:none!important;content:""!important}
.tf-why-supplier-card li>span{
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:28px!important;
  flex:0 0 28px!important;
  border-radius:9px!important;
  background:#fff4cf!important;
  color:#c98900!important;
  font-size:13px!important;
  font-weight:900!important
}
.tf-why-supplier-card li>b{
  color:#294966!important;
  font-size:8px!important;
  font-weight:800!important
}

/* prevent inherited giant typography from global/legacy PDP rules */
.tf-supplier-sidebar,
.tf-supplier-sidebar *{
  box-sizing:border-box!important
}
.tf-supplier-sidebar p,
.tf-supplier-sidebar span,
.tf-supplier-sidebar small,
.tf-supplier-sidebar b,
.tf-supplier-sidebar strong,
.tf-supplier-sidebar a,
.tf-supplier-sidebar dt,
.tf-supplier-sidebar dd,
.tf-supplier-sidebar li{
  letter-spacing:normal!important
}

@media(max-width:1180px) and (min-width:761px){
  .tf-supplier-sidebar{
    grid-column:1/-1!important;
    position:static!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important
  }
}
@media(max-width:760px){
  .tf-supplier-sidebar{
    position:static!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-top:8px!important
  }
  .tf-supplier-reference-card,
  .tf-supplier-review-card,
  .tf-why-supplier-card{
    border-radius:12px!important;
    box-shadow:none!important
  }
}
