/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* 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 license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
:root {
  --cubic: 350ms cubic-bezier(0.215, 0.61, 0.355, 1);
  --ndkss-success-color: #2fb344;
  --ndkss-danger-color: #dc3545;
  --ndkss-warning-color: #f0ad4e;
  --ndkss-grey: #ccc;
  --ndkss-warm-grey: #666;
}
.ndkss_shop_item.out-of-stock {
  --ndkss-success-color: #333;
}
.nskss-popup-button {
  cursor: pointer;
  padding: 0.75rem;
  line-height: 1.5rem;
  position: relative;
  padding-right: 2rem;
  display: inline-flex;
  width: auto;
  gap: 0.5rem;
  align-items: center;
}
.nskss-popup-button::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 0.75rem;
  border: 0.4rem solid transparent;
  border-left-color: inherit;
  display: block;
  transform: rotate(90deg);
}
.flex-break-mobile {
  display: none;
}
@media (max-width: 768px) {
  .nskss-popup-button {
    text-align: center;
    width: 100%;
  }
  .ndkss_shop_item {
    width: 100% !important;
  }
  .flex-break-mobile {
    display: block;
    height: 0;
    flex-basis: 100%;
  }
  body .ndkss_shop_list.full-width .quantity-count {
    margin-left: 0;
    margin-right: 0;
  }
}

.ndkss-force main {
  pointer-events: none; /* Désactive toutes les interactions utilisateur */
  user-select: none; /* Empêche la sélection du texte */
  opacity: 0.5; /* Rend l'élément semi-transparent pour un effet grisé */
  filter: grayscale(100%); /* Ajoute un effet de désaturation */
}
.ndkss-popupContainer {
  width: 800px;
  max-width: 100%;
  padding: 1em;
  text-align: center;
  position: relative;
  background: #fff none repeat scroll 0 0;
}
.ndkss_shop_list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.ndkss_shop_item {
  -webkit-transition: all var(--cubic);
  box-shadow: 0rem 0rem 0rem 0.1rem #00000021;
  padding: 1rem;
  text-align: center;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
  position: relative;
  width: 48%;
  align-self: stretch;
  justify-content: space-evenly;
}
.shop_address {
  font-style: italic;
}
.ndkss_product_availability .shop_address {
  text-align: right;
}

.ndkss_shop_item .btn.btn-default {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ndkss_shop_item:hover {
  box-shadow: 0rem 2px 7px 0.1rem #0000005c;
}

.shop_name {
  font-weight: bold;
  font-size: 1.2rem;
}

.ndkss_shop_list.full-width .shop_name {
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.125rem 0.5rem;
  flex-wrap: wrap;
}
.ndkss_shop_list.full-width .ndkss_shop_item.out-of-stock {
  opacity: 0.5;
}

.shop_delivery_options {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}
.ndkss-popup-button .shop_delivery_options {
  flex-wrap: wrap;
}
.ndkss-popup-button .shop_delivery_option {
  position: relative;
}

.ndkss_popup .shop_delivery_options {
  justify-content: center;
}
.shop_delivery_option {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  border: 1px solid;
  line-height: 1rem;
}

.shop_delivery_option i {
  font-size: 1rem;
}

.ndkss_shop_list.full-width .quantity-count {
  font-weight: normal;
  background-color: var(--ndkss-success-color, #2fb344);
  color: #fff;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: auto;
  margin-right: 0;
}
.ndkss_shop_list.full-width .quantity-count.negative {
  background-color: var(--ndkss-danger-color, #dc3545);
}
.ndkss_shop_list.full-width .quantity-count.allow-oosp {
  background-color: var(--ndkss-warning-color, #f0ad4e);
}
.ndkss_shop_list.full-width .ndkss_shop_item {
  flex: 100%;
  text-align: left;
  padding: 0.5rem;
}
.ndkss_shop_item.current-shop {
  box-shadow: inset 0 0 0 3px var(--ndkss-success-color, #2fb344);
}
.ndkss_shop_item .current-shop-icon {
  color: var(--ndkss-success-color, #2fb344);
}

.ndkss_shop_item.out-of-stock .unchosen-shop-icon {
  color: var(--ndkss-grey, #ccc);
}
.ndkss_shop_item .unchosen-shop-icon {
  color: var(--ndkss-warm-grey, #666);
}

.thumbnail-container .ndkss_product_availability {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  background: #ffffffe0;
  padding: 1rem;
  overflow-y: scroll;
  -webkit-transition: all var(--cubic);
}
.thumbnail-container:hover .ndkss_product_availability {
  top: 0;
  margin-top: -100%;
  bottom: 0;
}
.thumbnail-container .ndkss_shop_list.full-width .shop_name {
  display: flex;
  flex-direction: column;
}
.ndkss-tooltip {
  position: relative;
}
.ndkss-tooltip:hover::after {
  content: attr(data-tooltip); /* Utilisation de l'attribut personnalisé */
  position: absolute;
  top: calc(120% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}
/* Flèche de la tooltip en haut pointe vers le haut */
.ndkss-tooltip::before {
  content: '';
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.ndkss-tooltip.top:hover::after {
  bottom: calc(120% + 10px);
  top: auto;
}
/* Flèche de la tooltip en bas pointe vers le bas */
.ndkss-tooltip.top:hover::before {
  bottom: 120%;
  top: auto;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Affichage au survol */
.ndkss-tooltip:hover::after,
.ndkss-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  z-index: 99;
}
