/* ============================================
   Jenva Toast — global notifications
   ============================================ */
.jenva-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}

.jenva-toast {
  pointer-events: auto;
  background: var(--color-text, #1C1C1A);
  color: #fff;
  padding: 14px 14px 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
  max-width: 360px;
}

.jenva-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.jenva-toast.is-success {
  background: var(--color-success, #2D8659);
  color: #fff;
}

.jenva-toast.is-error {
  background: var(--color-error, #c0392b);
  color: #fff;
}

.jenva-toast__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.jenva-toast__message {
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.jenva-toast__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -4px -2px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.jenva-toast__close:hover,
.jenva-toast__close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.jenva-toast__close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .jenva-toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .jenva-toast {
    max-width: none;
  }
}
