/* Livespace Furniture — commerce v1.7.1
 * Product-card action geometry correction.
 * Keeps purchase + WhatsApp controls aligned, equal-height and compact
 * without reintroducing the large dead space from older equal-height cards.
 */

html body.lsf-site.lsf-child-theme{
  --lsf171-action-height:46px;
  --lsf171-action-gap:8px;
}

/* Keep the information stack predictable so actions line up across a row. */
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__body{
  display:grid!important;
  grid-template-rows:auto 40px 24px 46px!important;
  row-gap:0!important;
  align-content:start!important;
  height:auto!important;
  min-height:0!important;
}
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__meta{
  min-height:14px!important;
  margin:0 0 6px!important;
}
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__title{
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:0!important;
  align-self:start!important;
}
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__price{
  min-height:24px!important;
  height:24px!important;
  display:flex!important;
  align-items:flex-start!important;
  flex-wrap:wrap!important;
  gap:0!important;
  margin:0!important;
}

/* Exact shared geometry: both controls occupy the same row and same height. */
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--lsf171-action-height)!important;
  gap:var(--lsf171-action-gap)!important;
  align-items:stretch!important;
  align-self:end!important;
  width:100%!important;
  height:var(--lsf171-action-height)!important;
  min-height:var(--lsf171-action-height)!important;
  max-height:var(--lsf171-action-height)!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__add,
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__whatsapp{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:stretch!important;
  width:100%!important;
  height:var(--lsf171-action-height)!important;
  min-height:var(--lsf171-action-height)!important;
  max-height:var(--lsf171-action-height)!important;
  margin:0!important;
  border-radius:5px!important;
  line-height:1!important;
  vertical-align:middle!important;
}
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__add{
  padding:0 14px!important;
}
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__whatsapp{
  min-width:var(--lsf171-action-height)!important;
  max-width:var(--lsf171-action-height)!important;
  padding:0!important;
}
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__whatsapp svg{
  display:block!important;
  width:19px!important;
  height:19px!important;
  margin:0!important;
}

/* WooCommerce can inject this after AJAX; it must never disturb the action row. */
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__actions .added_to_cart,
html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__actions .wc-forward{
  display:none!important;
}

@media(max-width:767px){
  html body.lsf-site.lsf-child-theme{
    --lsf171-action-height:40px;
    --lsf171-action-gap:6px;
  }
  html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__body{
    grid-template-rows:auto 36px 21px 40px!important;
  }
  html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__title{
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
  }
  html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__price{
    height:21px!important;
    min-height:21px!important;
  }
  html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__add{
    padding:0 8px!important;
    font-size:10px!important;
  }
  html body.lsf-site.lsf-child-theme .lsf-product-card--v12 .lsf-product-card__whatsapp svg{
    width:18px!important;
    height:18px!important;
  }
}
