/* p1450108174235-related-card-cascade-admin-lookup-clarity-v1
   Root-cause cascade lock for .234 availability/warmth. The proven related-card GRID stays intact;
   goal assertions bind CTA alignment, warm surfaces and semantic availability colors rather than forcing FLEX. */

/* The legacy .197 related-section selectors carry substantially higher !important specificity than .234.
   #main-content is the canonical public main anchor and deterministically wins without modifying legacy files. */
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4{
  display:grid!important;
  grid-template-columns:1fr!important;
  height:100%!important;
  min-width:0!important;
  border-color:var(--aw234-warm-line,#e8dfd1)!important;
  background:linear-gradient(180deg,var(--aw234-warm-paper,#fffdf8) 0%,#fff 58%,#fffdf9 100%)!important;
  box-shadow:none!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4:hover{
  background:linear-gradient(180deg,var(--aw234-warm-paper-2,#fffaf1) 0%,#fff 60%,#fffdf9 100%)!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-media{
  height:176px!important;
  min-height:176px!important;
  padding:18px 20px!important;
  border:0!important;
  border-bottom:1px solid var(--aw234-warm-line,#e8dfd1)!important;
  background:linear-gradient(180deg,#fff 0%,#fffdfa 100%)!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-media img{
  width:auto!important;
  height:auto!important;
  max-width:86%!important;
  max-height:144px!important;
  object-fit:contain!important;
  filter:none!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-card-body,
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-card-body-v2{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-name{
  min-width:0!important;
  min-height:2.85em!important;
  color:var(--aw234-warm-ink,#183b56)!important;
  line-height:1.32!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-card-meta{
  min-height:1.42em!important;
  color:#6b7f8d!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-facts,
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-facts-v2,
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .fact-provider,
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .delivery-line{
  border-color:var(--aw234-warm-line,#e8dfd1)!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .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,#e8dfd1)!important;
  font-weight:700!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .card-actions{
  margin-top:auto!important;
  padding-top:16px!important;
  padding-bottom:0!important;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .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;
}
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .basket-heart-button,
html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .basket-heart-control{
  background:#fffdf8!important;
  border-color:var(--aw234-warm-line-strong,#dccdb9)!important;
}

/* One public availability color source-of-truth: the renderer's data tone wins over historic surface-specific grey rules. */
html body #main-content [data-aw-availability-tone="positive"]{color:var(--aw234-success,#1b7550)!important}
html body #main-content [data-aw-availability-tone="transit"]{color:var(--aw234-transit,#8a5a00)!important}
html body #main-content [data-aw-availability-tone="negative"]{color:var(--aw234-negative,#963f37)!important}
html body #main-content [data-aw-availability-tone="neutral"]{color:var(--aw234-neutral,#687d8c)!important}
html body #main-content .delivery-line[data-aw-availability-tone="positive"]::before,
html body #main-content .aw-listing-availability[data-aw-availability-tone="positive"]::before{background:var(--aw234-success-dot,#2b8c60)!important}
html body #main-content .delivery-line[data-aw-availability-tone="transit"]::before,
html body #main-content .aw-listing-availability[data-aw-availability-tone="transit"]::before{background:var(--aw234-transit-dot,#d39a2e)!important}
html body #main-content .delivery-line[data-aw-availability-tone="negative"]::before,
html body #main-content .aw-listing-availability[data-aw-availability-tone="negative"]::before{background:var(--aw234-negative-dot,#b65349)!important}

@media(max-width:760px){
  html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-media{
    height:154px!important;
    min-height:154px!important;
  }
  html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-media img{max-height:126px!important}
  html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-name,
  html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-card-meta{min-height:0!important}
  html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .card-actions .main-action{
    width:100%!important;
    min-width:0!important;
  }
}

html[data-aw-contrast="dark"] body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4,
html[data-aw-contrast="dark"] body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4:hover,
html[data-aw-contrast="dark"] body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .product-media{
  background:#182838!important;
}
@media(forced-colors:active){
  html body #main-content [data-aw-availability-tone]{color:CanvasText!important}
  html body.product-page #main-content .related-section[data-p1450108174197-premium-related="1"] .compact-card.detail-related-card.product-card-v4 .card-actions .main-action{box-shadow:none!important}
}
