/* SecuriForce — listes d'envies FR/NL, ordinateur et GSM — 19/10/2026.
   Portée limitée aux composants blockwishlist ; aucune logique modifiée. */

html body :is(.wishlist-modal, .wishlist-container, .wishlist-products-container, .wishlist-footer-links) {
  --bs-primary: #202427;
  --bs-primary-rgb: 32, 36, 39;
  --bs-primary-text-emphasis: #202427;
  --bs-link-color: #202427;
  --bs-link-color-rgb: 32, 36, 39;
  --bs-link-hover-color: #202427;
  --bs-link-hover-color-rgb: 32, 36, 39;
  color: #202427;
}

/* Fenêtres : créer, renommer, partager et choisir une liste. */
html body .wishlist-modal .modal-content {
  color: #202427;
  background: #fff;
  border: 1px solid #d8dce0;
  border-top: 4px solid #ffd400;
  border-radius: 10px;
}
html body .wishlist-modal .modal-header {
  background: #f5f6f8;
  border-radius: 6px 6px 0 0;
  padding-block: 16px;
}
html body .wishlist-modal :is(.modal-title, .form-label, .modal-text) {
  color: #202427 !important;
}
html body .wishlist-modal .modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
html body .wishlist-modal .form-label {
  font-weight: 600;
  margin-bottom: 8px;
}
html body .wishlist-modal .form-control:not(.is-invalid):not([aria-invalid="true"]) {
  color: #202427;
  background: #fff;
  border-color: #aab1b7;
  border-radius: 6px;
}
html body .wishlist-modal .form-control:not(.is-invalid):not([aria-invalid="true"]):focus {
  border-color: #202427;
  box-shadow: 0 0 0 3px rgb(255 212 0 / 35%);
  outline: none;
}
html body .wishlist-modal .modal-footer {
  gap: 8px;
  padding: 16px;
}
html body .wishlist-modal .modal-footer .btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  margin: 0 !important;
}
html body .wishlist-modal .btn-primary {
  --bs-btn-color: #202427;
  --bs-btn-bg: #ffd400;
  --bs-btn-border-color: #ffd400;
  --bs-btn-hover-color: #202427;
  --bs-btn-hover-bg: #e8c100;
  --bs-btn-hover-border-color: #e8c100;
  --bs-btn-active-color: #202427;
  --bs-btn-active-bg: #e8c100;
  --bs-btn-active-border-color: #e8c100;
  --bs-btn-disabled-color: #202427;
  --bs-btn-disabled-bg: #ffd400;
  --bs-btn-disabled-border-color: #ffd400;
  --bs-btn-focus-shadow-rgb: 255, 212, 0;
}
html body .wishlist-modal .btn-secondary {
  --bs-btn-color: #202427;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #202427;
  --bs-btn-hover-color: #202427;
  --bs-btn-hover-bg: #f5f6f8;
  --bs-btn-hover-border-color: #202427;
  --bs-btn-active-color: #202427;
  --bs-btn-active-bg: #f5f6f8;
  --bs-btn-active-border-color: #202427;
  --bs-btn-disabled-color: #202427;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #202427;
  --bs-btn-focus-shadow-rgb: 255, 212, 0;
}
html body .wishlist-modal .modal-cancel:hover {
  opacity: 1;
}
html body :is(.wishlist-modal, .wishlist-container) .wishlist-add-to-new {
  --bs-primary-rgb: 32, 36, 39;
  --bs-primary-text-emphasis: #202427;
  color: #202427 !important;
  font-weight: 600;
  cursor: pointer;
}

/* Vue d'ensemble des listes. */
/* Le module garde son ordre initial « Dernier ajout ». */
html body .wishlist-products-container .wishlist-products-container-header .sort-by-row {
  display: none !important;
}
html body .wishlist-container .wishlist-container-header {
  gap: 16px;
  flex-wrap: wrap;
}
html body .wishlist-container .wishlist-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .wishlist-container .wishlist-list-item {
  color: #202427;
  background: #f5f6f8;
  border: 1px solid #d8dce0;
  border-inline-start: 4px solid #ffd400;
  border-radius: 8px;
  margin: 0;
}
html body .wishlist-container .wishlist-list-item-link {
  color: #202427;
  padding: 16px;
  gap: 12px;
}
html body .wishlist-container .wishlist-list-item-title {
  color: #202427;
  font-weight: 600;
  overflow-wrap: anywhere;
}
html body .wishlist-container .wishlist-list-item-right button {
  color: #202427;
  background: #fff;
  border: 1px solid #d8dce0;
  border-radius: 6px;
  min-width: 36px;
  min-height: 36px;
}

/* Produits de la liste : cartes et bouton assortis au catalogue. */
html body .wishlist-products-container .wishlist-products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
html body .wishlist-products-container .wishlist-products-item {
  width: 100%;
  min-width: 0;
  margin: 0;
}
html body .wishlist-products-container .wishlist-product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 16px;
  color: #202427;
  background: #fff;
  border: 1px solid #d8dce0;
  border-top: 3px solid #ffd400;
  border-radius: 10px;
}
html body .wishlist-products-container .wishlist-product-link {
  color: #202427;
  flex: 1;
}
html body .wishlist-products-container .wishlist-product-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: none;
}
html body .wishlist-products-container .wishlist-product-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}
html body .wishlist-products-container .wishlist-product-title {
  color: #202427;
  font-weight: 600;
}
html body .wishlist-products-container .wishlist-product-price {
  color: #202427;
  font-weight: 700;
}
html body .wishlist-products-container .wishlist-product-bottom {
  margin-top: auto;
  padding-top: 12px;
}
html body .wishlist-products-container .wishlist-product-addtocart {
  --bs-btn-color: #fff;
  --bs-btn-bg: #202427;
  --bs-btn-border-color: #202427;
  --bs-btn-hover-color: #202427;
  --bs-btn-hover-bg: #ffd400;
  --bs-btn-hover-border-color: #ffd400;
  --bs-btn-active-color: #202427;
  --bs-btn-active-bg: #ffd400;
  --bs-btn-active-border-color: #ffd400;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #202427;
  --bs-btn-disabled-border-color: #202427;
  --bs-btn-focus-shadow-rgb: 255, 212, 0;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
  white-space: normal;
}
html body .wishlist-products-container .wishlist-product-combinations a,
html body .wishlist-products-container .wishlist-button-add {
  --bs-body-color: #202427;
  --bs-link-hover-color: #202427;
  color: #202427;
}
html body .wishlist-products-container .select-title {
  color: #202427;
  background: #fff;
  border: 1px solid #202427;
  border-radius: 6px;
  padding: 8px 12px;
}
html body .wishlist-products-container :is(.dropdown-menu, .select-list) {
  color: #202427;
}

/* Liens de retour et repères clavier. */
html body .wishlist-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
html body .wishlist-footer-links > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 10px 14px;
  color: #202427;
  background: #fff;
  border: 1px solid #202427;
  border-radius: 6px;
  text-decoration: none;
  margin: 0 !important;
}
html body :is(.wishlist-modal, .wishlist-container, .wishlist-products-container, .wishlist-footer-links) :is(a, button, [role="button"]):focus-visible {
  outline: 2px solid #202427;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #ffd400;
}
@media (hover: hover) and (pointer: fine) {
  html body .wishlist-footer-links > a:hover,
  html body .wishlist-container .wishlist-list-item-right button:hover {
    color: #202427;
    background: #ffd400;
    border-color: #ffd400;
  }
  html body :is(.wishlist-modal, .wishlist-container) .wishlist-add-to-new:hover {
    text-decoration: underline;
    text-decoration-color: #ffd400;
    text-underline-offset: 4px;
  }
}
@media (max-width: 575.98px) {
  html body .wishlist-modal .modal-footer .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  html body .wishlist-footer-links > a {
    width: 100%;
    justify-content: center;
  }
}

/* GSM : retrouver la présentation native, photo à gauche et texte à droite.
   Le module utilise ce même seuil de 768 px. Le rendu PC reste identique. */
@media screen and (max-width: 768px) {
  html body .wishlist-products-container .wishlist-products-list {
    grid-template-columns: minmax(0, 1fr);
  }
  html body .wishlist-products-container .wishlist-product {
    max-width: 100%;
  }
  html body .wishlist-products-container .wishlist-product-link {
    display: flex;
    align-items: flex-start;
  }
  html body .wishlist-products-container .wishlist-product-image {
    width: 100px;
    height: 100px;
    aspect-ratio: auto;
    flex: 0 0 100px;
    margin-inline-end: 20px;
  }
  html body .wishlist-products-container .wishlist-product-right {
    flex: 1 1 0%;
    min-width: 0;
  }
  html body .wishlist-products-container .wishlist-product-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
