
/* ===================================================
   STEVULA – CARD BENEFITS CSS v6.1

   Kompatibilne s JSON JS v5.0
   Desktop: zarovnanie cien
   Mobil: zachovanie kompaktneho rozlozenia
   =================================================== */


/* 1. NAZOV PRODUKTU */

.products-block.products .p .name {
  display: block;
  height: auto !important;
  min-height: 42px;
  margin-bottom: 0 !important;
}


/* 2. BENEFITY */

.products-block .stevula-card-benefits {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;

  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  height: 17px;
  min-height: 17px;

  margin: 5px 0 8px !important;
  padding: 0;

  font-size: 11px;
  font-weight: 400;
  line-height: 17px;
  color: #666;

  overflow: hidden;
}


/* 3. JEDNOTLIVE BENEFITY */

.products-block .stevula-card-benefit {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* 4. ODDELOVAC BENEFITOV */

.products-block
.stevula-card-benefit:not(:last-child)::after {
  content: "·";
  margin-left: 5px;
  color: #999;
}


/* 5. DESKTOP – ZAROVNANIE CIEN */

@media (min-width: 768px) {

  .products-block.products .p .name {
    min-height: 42px;
  }

  .products-block.products .p .p-in-in {
    position: relative;
    padding-bottom: 30px;
  }

  .products-block.products
  .p .stevula-card-benefits {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;

    margin: 0 !important;

    height: 17px;
    min-height: 17px;
  }

  .products-block.products
  .p .p-in-in::after {
    content: none !important;
  }
}


/* 6. MOBIL */

@media (max-width: 767px) {

  .products-block.products .p .name {
    height: auto !important;
    min-height: 60px;
    margin-bottom: 0 !important;
  }

  .products-block .stevula-card-benefits {
    position: static;
    gap: 3px;

    height: 16px;
    min-height: 16px;

    margin: 4px 0 0 !important;

    font-size: 11px;
    line-height: 16px;
  }

  .products-block
  .stevula-card-benefit:not(:last-child)::after {
    margin-left: 3px;
  }

  /* Produkty bez benefitov */
  .products-block
  .p-in-in:not(:has(.stevula-card-benefits))::after {
    content: "";
    display: block;
    height: 16px;
    margin-top: 4px;
  }
}
