/* AdeptDEV × NANU Market — credit card overlay + rating restore v7.15.3
   Developed by AdeptDEV · adeptdev.ro · t.me/adeptdevs */

/* Recommendation cards: credit must NOT participate in caption layout. */
.adpx-product-card .caption > .nanu-credit-card-pill,
.adpx-product-card .nanu-credit-card-pill{
  display:none!important;
}

/* Use the already-existing eligibility badge from the main credit script,
   but keep it away from discount / Popular labels at the TOP. */
.adpx-special-module .adpx-product-card .image .nanu-credit-badge{
  display:inline-flex!important;
  position:absolute!important;
  z-index:7!important;
  left:12px!important;
  right:auto!important;
  top:auto!important;
  bottom:12px!important;
  transform:none!important;
  width:auto!important;
  max-width:calc(100% - 72px)!important;
  min-height:32px!important;
  margin:0!important;
  padding:5px 11px 5px 6px!important;
  border:1px solid rgba(236,102,8,.20)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.94)!important;
  color:#373636!important;
  box-shadow:0 10px 24px rgba(55,54,54,.10)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:850!important;
  pointer-events:none!important;
}
.adpx-special-module .adpx-product-card .image .nanu-credit-badge__icon{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  flex:0 0 20px!important;
  border-radius:7px!important;
  background:#ec6608!important;
  color:#ffffff!important;
  box-shadow:none!important;
  font-size:10px!important;
}
.adpx-special-module .adpx-product-card .image .nanu-credit-badge__text{
  color:#373636!important;
  font-weight:850!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Restore reviews/rating exactly as an independent row. */
.adpx-special-module .adpx-product-card .adpx-rating{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-self:stretch!important;
  width:100%!important;
  min-height:22px!important;
  margin:10px 0 8px!important;
  padding:0!important;
  gap:5px!important;
  text-align:left!important;
  color:#373636!important;
  font-size:12px!important;
  line-height:1!important;
}
.adpx-special-module .adpx-product-card .adpx-rating__stars{
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  flex:0 0 auto!important;
}
.adpx-special-module .adpx-product-card .adpx-rating__stars svg{
  display:block!important;
  width:15px!important;
  height:15px!important;
  fill:transparent!important;
  stroke:rgba(55,54,54,.30)!important;
  stroke-width:1.45!important;
  stroke-linejoin:round!important;
}
.adpx-special-module .adpx-product-card .adpx-rating__stars svg.is-filled{
  fill:#ec6608!important;
  stroke:#ec6608!important;
}
.adpx-special-module .adpx-product-card .adpx-rating__value{
  color:#373636!important;
  font-weight:850!important;
}
.adpx-special-module .adpx-product-card .adpx-rating__reviews{
  color:rgba(55,54,54,.66)!important;
  font-weight:650!important;
  white-space:nowrap!important;
}

/* Preserve the original caption geometry. */
.adpx-special-module .adpx-product-card .caption{
  display:flex!important;
  flex-direction:column!important;
}
.adpx-special-module .adpx-product-card .price{
  margin-top:auto!important;
}

body.nx-dark .adpx-special-module .adpx-product-card .image .nanu-credit-badge{
  background:rgba(55,54,54,.88)!important;
  border-color:rgba(236,102,8,.32)!important;
  color:#ffffff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
}
body.nx-dark .adpx-special-module .adpx-product-card .image .nanu-credit-badge__text{color:#ffffff!important}
body.nx-dark .adpx-special-module .adpx-product-card .adpx-rating{color:#ffffff!important}
body.nx-dark .adpx-special-module .adpx-product-card .adpx-rating__stars svg{fill:transparent!important;stroke:rgba(255,255,255,.35)!important}
body.nx-dark .adpx-special-module .adpx-product-card .adpx-rating__stars svg.is-filled{fill:#ec6608!important;stroke:#ec6608!important}
body.nx-dark .adpx-special-module .adpx-product-card .adpx-rating__value{color:#ffffff!important}
body.nx-dark .adpx-special-module .adpx-product-card .adpx-rating__reviews{color:rgba(255,255,255,.65)!important}

@media(max-width:767px){
  .adpx-special-module .adpx-product-card .image .nanu-credit-badge{
    left:9px!important;bottom:9px!important;max-width:calc(100% - 58px)!important;
    min-height:28px!important;padding:4px 9px 4px 5px!important;border-radius:10px!important;font-size:9px!important;
  }
  .adpx-special-module .adpx-product-card .image .nanu-credit-badge__icon{
    width:18px!important;height:18px!important;min-width:18px!important;flex-basis:18px!important;font-size:9px!important;
  }
  .adpx-special-module .adpx-product-card .adpx-rating{font-size:10px!important;gap:4px!important}
  .adpx-special-module .adpx-product-card .adpx-rating__stars svg{width:13px!important;height:13px!important}
}
