.clago-toast-region {
  position: fixed;
  z-index: 999999;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.clago-toast {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid #efb4b4;
  border-radius: 12px;
  background: #fff7f7;
  box-shadow: 0 14px 38px rgba(45, 15, 15, 0.18);
  color: #681717;
  font: 600 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: auto;
  animation: clago-toast-in 180ms ease-out both;
}

.clago-toast--success {
  border-color: #b9d78a;
  background: #f6fbea;
  color: #264b0e;
}

.clago-toast__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font-weight: 800;
}

.clago-toast--success .clago-toast__icon { background: #4f7f18; }
.clago-toast__message { min-width: 0; }

.clago-toast__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  font: 400 22px/1 system-ui, sans-serif;
  cursor: pointer;
}

.clago-toast__close:hover,
.clago-toast__close:focus-visible { background: rgba(0, 0, 0, 0.08); }
.clago-toast.is-leaving { animation: clago-toast-out 220ms ease-in both; }

@keyframes clago-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes clago-toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 600px) {
  .clago-toast-region { top: 12px; right: 16px; left: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .clago-toast,
  .clago-toast.is-leaving { animation: none; }
}
