.toast-layer {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: grid;
  gap: 0.9rem;
  width: min(28rem, calc(100vw - 2rem));
}

.toast {
  position: relative;
  padding: 1.15rem 1.1rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(99, 84, 65, 0.12);
  background: rgba(255, 251, 246, 0.96);
  box-shadow: 0 22px 50px rgba(70, 56, 42, 0.16);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 0.75rem;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-closing {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-success {
  border-color: rgba(132, 152, 88, 0.28);
}

.toast-error {
  border-color: rgba(187, 121, 103, 0.3);
}

.toast-warning {
  border-color: rgba(191, 145, 94, 0.28);
}

.toast-info {
  border-color: rgba(181, 163, 141, 0.28);
}

.toast-title {
  margin: 0;
  padding-right: 2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 0.95;
  color: var(--ink);
}

.toast-body {
  color: var(--ink-soft);
  line-height: 1.65;
}

.toast-body p {
  margin: 0;
}

.toast-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(103, 87, 67, 0.08);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.toast-action {
  justify-self: start;
}

@media (max-width: 760px) {
  .toast-layer {
    top: 0.9rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}
