/* Toast component source-of-truth. Keep fixed notification geometry here. */
.toast {
  position: fixed;
  right: 18px;
  bottom: 82px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  z-index: var(--bodycare-z-toast, 7000);
  width: max-content;
  max-width: min(420px, calc(100% - 36px));
  min-height: 56px;
  padding: 12px 18px 12px 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.22);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 246, 0.96));
  color: var(--ink);
  box-shadow:
    0 18px 44px rgba(77, 17, 62, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--pink) 0, var(--pink) 5px, transparent 6px),
    var(--pink-soft);
  box-shadow: 0 10px 22px rgba(var(--theme-accent-rgb), 0.18);
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 699px) {
  .toast {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: none;
  }
}
