/* Saved fragrances — heart + toast */

.haidi-save-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink, #262019);
  box-shadow: 0 2px 10px rgba(20, 17, 12, 0.1);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.haidi-save-heart:hover {
  background: #fff;
  transform: scale(1.05);
}

.haidi-save-heart svg {
  display: none;
  width: 18px;
  height: 18px;
  overflow: visible;
}

.haidi-save-heart .haidi-save-heart-outline {
  display: block;
}

.haidi-save-heart.is-saved {
  color: var(--wine, #5d2434);
}

.haidi-save-heart.is-saved .haidi-save-heart-outline {
  display: none;
}

.haidi-save-heart.is-saved .haidi-save-heart-fill {
  display: block;
}

.haidi-save-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 12000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  max-width: min(92vw, 440px);
  padding: 16px 20px;
  border: 1px solid rgba(38, 32, 25, 0.12);
  border-radius: 2px;
  background: #faf7f1;
  color: var(--ink, #262019);
  box-shadow: 0 18px 40px rgba(20, 17, 12, 0.16);
  font-family: var(--sans, 'Outfit', system-ui, sans-serif);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.haidi-save-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.haidi-save-toast[hidden] {
  display: none !important;
}

.haidi-save-toast-text {
  margin: 0;
  flex: 1 1 180px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.haidi-save-toast-link {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.haidi-save-toast-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
