/* p1450108174234-related-card-availability-warmth-contract-v1
   Premium Health product-card alignment + availability tone + warm-surface contract.
   Presentation only: price, shipping, provider, feed, wishlist and identity semantics remain unchanged. */

:root{
  --aw234-warm-paper:#fffdf8;
  --aw234-warm-paper-2:#fffaf1;
  --aw234-warm-line:#e8dfd1;
  --aw234-warm-line-strong:#dccdb9;
  --aw234-warm-ink:#183b56;
  --aw234-success:#1b7550;
  --aw234-success-dot:#2b8c60;
  --aw234-transit:#8a5a00;
  --aw234-transit-dot:#d39a2e;
  --aw234-negative:#963f37;
  --aw234-negative-dot:#b65349;
  --aw234-neutral:#687d8c;
}

/* Related/pack-size cards: one deterministic vertical zone contract.
   Grid items may have different title/price content, but CTA stays at the card floor. */
body.product-page .compact-card.detail-related-card{
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
  height:100%!important;
  min-width:0!important;
  border-color:var(--aw234-warm-line)!important;
  background:linear-gradient(180deg,var(--aw234-warm-paper) 0%,#fff 58%,#fffdf9 100%)!important;
  box-shadow:none!important;
}
body.product-page .compact-card.detail-related-card>.product-card-top{
  flex:0 0 auto!important;
}
body.product-page .compact-card.detail-related-card>.product-media{
  flex:0 0 176px!important;
  min-height:176px!important;
  display:grid!important;
  place-items:center!important;
  padding:18px 20px!important;
  background:linear-gradient(180deg,#fff 0%,#fffdfa 100%)!important;
}
body.product-page .compact-card.detail-related-card>.product-media img{
  width:auto!important;
  max-width:86%!important;
  max-height:144px!important;
  object-fit:contain!important;
  filter:none!important;
}
body.product-page .compact-card.detail-related-card>.product-card-body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  padding-bottom:0!important;
}
body.product-page .compact-card.detail-related-card .product-name{
  min-width:0!important;
  min-height:2.85em!important;
  color:var(--aw234-warm-ink)!important;
  line-height:1.32!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.product-page .compact-card.detail-related-card .product-card-meta{
  min-height:1.42em!important;
  color:#6b7f8d!important;
}
body.product-page .compact-card.detail-related-card .product-facts{
  border-color:var(--aw234-warm-line)!important;
}
body.product-page .compact-card.detail-related-card .product-facts>*+*{
  border-left-color:var(--aw234-warm-line)!important;
}
body.product-page .compact-card.detail-related-card .fact-provider{
  border-color:var(--aw234-warm-line)!important;
  color:#5e7483!important;
}
body.product-page .compact-card.detail-related-card .delivery-line{
  flex:0 0 auto!important;
  margin-top:12px!important;
  margin-bottom:0!important;
  padding-top:12px!important;
  border-top:1px solid var(--aw234-warm-line)!important;
  font-weight:700!important;
}
body.product-page .compact-card.detail-related-card .card-actions{
  flex:0 0 auto!important;
  margin-top:auto!important;
  padding-top:16px!important;
  padding-bottom:0!important;
}
body.product-page .compact-card.detail-related-card .card-actions .main-action{
  width:min(100%,210px)!important;
  min-width:190px!important;
  min-height:46px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:10px!important;
  box-shadow:0 7px 18px rgba(15,49,92,.08)!important;
}
body.product-page .compact-card.detail-related-card:hover{
  background:linear-gradient(180deg,var(--aw234-warm-paper-2) 0%,#fff 60%,#fffdf9 100%)!important;
}

/* Availability is no longer cold grey. The renderer adds a presentation tone only;
   the underlying delivery text/status remains unchanged. */
.aw-availability-positive{color:var(--aw234-success)!important}
.aw-availability-transit{color:var(--aw234-transit)!important}
.aw-availability-negative{color:var(--aw234-negative)!important}
.aw-availability-neutral{color:var(--aw234-neutral)!important}
.delivery-line.aw-availability-positive::before,
.aw-listing-availability.aw-availability-positive::before{background:var(--aw234-success-dot)!important}
.delivery-line.aw-availability-transit::before,
.aw-listing-availability.aw-availability-transit::before{background:var(--aw234-transit-dot)!important}
.delivery-line.aw-availability-negative::before,
.aw-listing-availability.aw-availability-negative::before{background:var(--aw234-negative-dot)!important}
.search-result-delivery.aw-availability-positive,
.provider-offer-availability.aw-availability-positive,
.product-card-provider-line .aw-availability-positive{color:var(--aw234-success)!important}
.search-result-delivery.aw-availability-transit,
.provider-offer-availability.aw-availability-transit,
.product-card-provider-line .aw-availability-transit{color:var(--aw234-transit)!important}
.search-result-delivery.aw-availability-negative,
.provider-offer-availability.aw-availability-negative,
.product-card-provider-line .aw-availability-negative{color:var(--aw234-negative)!important}

/* Warm the shared product-card surfaces without turning the site into a patchwork of colors. */
body.product-page .compact-card.detail-related-card .product-reference-price,
body.product-page .compact-card.detail-related-card .product-reference-price *{
  color:var(--aw229-amber-strong,#9a6500)!important;
}
body.product-page .compact-card.detail-related-card .product-saving-badge{
  border-color:#edc665!important;
}
body.product-page .compact-card.detail-related-card .basket-heart-button,
body.product-page .compact-card.detail-related-card .basket-heart-control{
  background:#fffdf8!important;
  border-color:var(--aw234-warm-line-strong)!important;
}

@media(max-width:760px){
  body.product-page .compact-card.detail-related-card>.product-media{
    flex-basis:154px!important;
    min-height:154px!important;
  }
  body.product-page .compact-card.detail-related-card>.product-media img{max-height:126px!important}
  body.product-page .compact-card.detail-related-card .product-name{min-height:0!important}
  body.product-page .compact-card.detail-related-card .product-card-meta{min-height:0!important}
  body.product-page .compact-card.detail-related-card .card-actions .main-action{
    width:100%!important;
    min-width:0!important;
  }
}

html[data-aw-contrast="dark"]{
  --aw234-warm-paper:#182838;
  --aw234-warm-paper-2:#1d2c3b;
  --aw234-warm-line:#354b5d;
  --aw234-warm-line-strong:#496277;
  --aw234-warm-ink:#eef6fb;
  --aw234-success:#7ad3a4;
  --aw234-success-dot:#7ad3a4;
  --aw234-transit:#f1ce72;
  --aw234-transit-dot:#e4b94f;
  --aw234-negative:#f3a39a;
  --aw234-negative-dot:#e4877d;
  --aw234-neutral:#b8c7d1;
}
html[data-aw-contrast="dark"] body.product-page .compact-card.detail-related-card,
html[data-aw-contrast="dark"] body.product-page .compact-card.detail-related-card:hover,
html[data-aw-contrast="dark"] body.product-page .compact-card.detail-related-card>.product-media{
  background:#182838!important;
}
@media(forced-colors:active){
  .aw-availability-positive,.aw-availability-transit,.aw-availability-negative,.aw-availability-neutral{color:CanvasText!important}
  body.product-page .compact-card.detail-related-card .card-actions .main-action{box-shadow:none!important}
}
