/**
 * Copyright (c) 2023 Smart Unicorn SARL
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the European Union Public License version 1.2
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/license/eupl-1-2/
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to contact@smartunicorn.fr so we can send you a copy immediately.
 *
 * The module or template you have purchased can only be used on one website.
 * You have to make a new purchase for every use on a different PrestaShop website.
 *
 * @author    Smart Unicorn SARL <contact@smartunicorn.fr>
 * @copyright Copyright (c) 2023 Smart Unicorn SARL (https://www.smartunicorn.fr/). All rights reserved.
 * @license   https://opensource.org/license/eupl-1-2/ European Union Public License version 1.2 (EUPL-1.2)
 */
.pfi-product-features-images-block {
  /*Variables*/
  --pfi-list-column-count: 2;
  --pfi-list-mobile-column-count: 1;
  --pfi-text-color: #7a7a7a;
  --pfi-tooltip-text-color: #fff;
  --pfi-tooltip-background-color: black;
}

.pfi-product-features-images {
  /*display: -webkit-box;
 display: -moz-box;
 display: -ms-flexbox;
 display: -webkit-flex;
 display: flex;
 flex-flow: row wrap;
  margin: 1rem -23px;*/
  gap: .5rem 23px;
}

.pfi-product-feature {
  /*display: flex;
  align-items: center;
  padding: 5px 23px;*/
  display: inline-flex;
  margin-right: 23px;
  margin-bottom: 1rem;
  vertical-align: middle;
}

.pfi-product-feature-with-text {
  /*width: calc(100% / var(--pfi-list-column-count));*/
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

/*@media (max-width: 500px) {
  .pfi-product-feature-with-text {
    width: calc(100% / var(--pfi-list-mobile-column-count));
  }
}*/

.pfi-product-feature-label {
  display: flex;
  flex-direction: column;
}

.pfi-product-feature-name-label,
.pfi-product-feature-value-label {
  color: var(--pfi-text-color);
  padding-left: .5rem;
}

.pfi-product-feature-value-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  font-family: var(--headings-font-family);
  font-weight: 600;
  font-style: var(--headings-font-style);
  letter-spacing: var(--headings-letter-spacing);
  font-size: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);
}

.pfi-tooltip {
  position: relative;
  display: inline-block;
}

.pfi-tooltip img {
  width: 100%;
}

.pfi-tooltip .pfi-tooltip-text-top,
.pfi-tooltip .pfi-tooltip-text-right {
  visibility: hidden;
  background-color: var(--pfi-tooltip-background-color);
  color: var(--pfi-tooltip-text-color);
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.pfi-tooltip .pfi-tooltip-text-top {
  bottom: 100%;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.pfi-tooltip .pfi-tooltip-text-right {
  left: 100%;
  /*center vertically*/
  margin: 0;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.pfi-tooltip .pfi-tooltip-text-top::after,
.pfi-tooltip .pfi-tooltip-text-right::after {
  content: "";
  position: absolute;
  border-width: 5px;
  border-style: solid;
}

.pfi-tooltip .pfi-tooltip-text-top::after {
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-color: var(--pfi-tooltip-background-color) transparent transparent transparent;
}

.pfi-tooltip .pfi-tooltip-text-right::after {
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-color: transparent var(--pfi-tooltip-background-color) transparent transparent;
}

.pfi-tooltip:hover .pfi-tooltip-text-top,
.pfi-tooltip:hover .pfi-tooltip-text-right {
  visibility: visible;
  opacity: 1;
}
