/**
 * Fiche produit — attente hydrate hideprice (zone guest) + apparition prix.
 */

@keyframes nptHydrateReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.npt-hydrate-reveal {
  animation: nptHydrateReveal 0.32s ease-out;
}

/* Zone « connectez-vous… » — fade out + spinner */
.npt-hydrate-guest-slot {
  position: relative;
  min-height: 1.75rem;
}

.npt-hydrate-guest-slot .hidePriceText {
  transition: opacity 0.22s ease-out;
}

/* Masque le CTA guest du HTML cache pendant l’attente (spinner = zone connectez-vous). */
.js-product-container.npt-hydrate-sheet-wait .js-product-add-to-cart,
#product.npt-hydrate-sheet-wait .js-product-add-to-cart {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.npt-hydrate-guest-slot.is-pending {
  margin-top: 10px;
}

.npt-hydrate-guest-slot.is-pending .hidePriceText {
  opacity: 0;
  pointer-events: none;
}

.npt-hydrate-guest-slot .npt-hydrate-spinner {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  justify-content: flex-start;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.15rem 0;
}

.npt-hydrate-guest-slot.is-pending .npt-hydrate-spinner {
  display: flex;
}

.npt-hydrate-spinner__ring {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(225, 0, 122, 0.22);
  border-top-color: #e1007a;
  border-radius: 50%;
  animation: nptHydrateSpin 0.65s linear infinite;
}

@keyframes nptHydrateSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .npt-hydrate-reveal {
    animation: none;
  }

  .npt-hydrate-guest-slot .hidePriceText {
    transition: none;
  }

  .npt-hydrate-spinner__ring {
    animation: none;
    border-top-color: #e1007a;
    opacity: 0.85;
  }
}