/* "Saved to your wishlist" / "Added to compare" toasts (iqitwishlist, iqitcompare display-modal.tpl).
   The modules only toggle .ns-show for 3.5s; this replaces the theme's lime ns-box look. */
.ns-box.ift-toast {
  top: 1.25rem;
  right: 1.25rem;
  min-width: 0;
  width: 360px;
  max-width: calc(100vw - 1.5rem);
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff !important;
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.ns-box.ift-toast.ns-show {
  transform: none;
}

.ns-box.ift-toast .ns-box-inner {
  overflow: visible;
}

/* the theme slides .ns-content in; keep it still */
.ns-effect-thumbslider.ift-toast .ns-content,
.ns-effect-thumbslider.ift-toast.ns-show .ns-content,
.ns-effect-thumbslider.ift-toast.ns-hide .ns-content {
  animation: none;
  opacity: 1;
  transform: none;
}

.ift-toast .ift-toast__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
}

.ift-toast .ift-toast__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0fdfa;
  color: #0f766e;
}

.ift-toast .ift-toast__icon--heart {
  background: #fff1f2;
  color: #e11d48;
}

.ift-toast .ift-toast__icon--heart svg {
  fill: currentColor;
}

.ift-toast .ift-toast__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ift-toast .ns-title {
  display: block;
  margin: 0;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.ift-toast .ift-toast__sub {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.35;
}

.ift-toast .ift-toast__link {
  flex: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid #0f172a;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.ift-toast .ift-toast__link:hover,
.ift-toast .ift-toast__link:focus {
  background: #0f172a;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .ns-box.ift-toast {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
  }

  .ift-toast .ift-toast__row {
    padding: 0.7rem 0.75rem;
    gap: 0.6rem;
  }
}
