/* PRICEHACK_RECOMMENDATIONS_UNIFIED_V23_3
  Shared PRODUCT recommendations geometry for Yandex, CPA and future sources.
  Coupon recommendation visuals are EXACTLY the existing full coupon partial,
  with the category coupon layout; no one-off redesigns.
*/
.similar-section .offer-grid.ph-offer-product-recommendations{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:none!important;
  justify-content:stretch!important;
}
.similar-section .offer-grid.ph-offer-product-recommendations > .offer-card,
.similar-section .offer-grid.ph-offer-product-recommendations > .ph-offer-recommendation-unit{
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
.similar-section .offer-grid.ph-offer-product-recommendations > .ph-offer-recommendation-unit{
  display:flex;flex-direction:column;align-items:stretch;gap:7px;
}
.similar-section .offer-grid.ph-offer-product-recommendations .offer-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.cpa-offer-detail-v23 .ph-cpa-detail-recommendations-v233 .ph-cpa-detail-recs{width:100%;max-width:none;min-width:0;}
.cpa-offer-detail-v23 .ph-cpa-detail-recommendations-v233 .ph-offer-coupon-recommendations{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
  align-items:stretch;width:100%;max-width:none;min-width:0;
}
.cpa-offer-detail-v23 .ph-cpa-detail-recommendations-v233 .ph-offer-recommendation-unit{
  min-width:0;max-width:100%;box-sizing:border-box;
}
.cpa-offer-detail-v23 .ph-cpa-detail-recommendations-v233 .ph-offer-coupon-recommendations .coupon{
  width:100%!important;max-width:100%!important;min-width:0!important;
}
.cpa-offer-detail-v23 .ph-cpa-detail-recommendations-v233 .ph-offer-rec-open{
  display:inline-block;margin:7px 2px 0;color:#1e63a3;text-decoration:none;
  font-size:11px;font-weight:700;
}
.cpa-offer-detail-v23 .ph-cpa-detail-recommendations-v233 .ph-offer-rec-open:hover{text-decoration:underline;}
@media (max-width:1050px){
  .cpa-offer-detail-v23 .ph-cpa-detail-recommendations-v233 .ph-offer-coupon-recommendations{
    grid-template-columns:minmax(0,1fr);
  }
}
/* Narrow four-across items may need a second action line: never clip the CTA. */
@media (max-width:980px){
  .similar-section .offer-grid.ph-offer-product-recommendations .offer-card .offer-actions{
    flex-wrap:wrap!important;min-width:0!important;
  }
  .similar-section .offer-grid.ph-offer-product-recommendations .offer-card .card-promo{
    flex:1 1 100%!important;max-width:100%!important;min-width:0!important;
  }
}
@media (max-width:760px){
  .similar-section .offer-grid.ph-offer-product-recommendations{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
}
@media (max-width:560px){
  .similar-section .offer-grid.ph-offer-product-recommendations{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
}
