/* Toastify base styles (customized for bonsaiku) */
.toastify {
  padding: 10px 14px;
  color: #F5F5F0;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(45, 62, 47, 0.18);
  border-radius: 8px;
  position: fixed;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  cursor: default;
  pointer-events: auto;
  z-index: 2147483647;
  max-width: 380px;
  background: #2D3E2F;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.toastify.on {
  opacity: 1;
}

.toastify.toastify-right {
  right: 16px;
}

.toastify.toastify-left {
  left: 16px;
}

.toastify.toastify-top {
  top: -150px;
}

.toastify.toastify-bottom {
  bottom: -150px;
}

.toastify.on.toastify-top {
  top: 88px;
}

.toastify.on.toastify-bottom {
  bottom: 16px;
}

.toast-close {
  background: transparent;
  border: 0;
  color: #F5F5F0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.5;
  padding: 2px;
  margin-left: 4px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  opacity: 1;
}

.toastify-avatar {
  width: 1.5em;
  height: 1.5em;
  margin: -7px 5px;
  border-radius: 2px;
}

/* Stack multiple toasts */
@media only screen and (max-width: 360px) {
  .toastify.toastify-right,
  .toastify.toastify-left {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: fit-content;
  }
}
