/* Contenedor flotante arriba a la derecha */
.toast__container{
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2100;          /* por encima del header */
  pointer-events: none;   /* solo las cards reciben clicks */
}

.toast__cell{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Card base */
.toast{
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  max-width: 380px;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform .25s ease-out,
    opacity .25s ease-out;
}

/* Estado visible / oculto (se controla con JS) */
.toast--show{
  transform: translateX(0);
  opacity: 1;
}
.toast--hide{
  transform: translateX(120%);
  opacity: 0;
}

/* Icono */
.toast__icon{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.7rem;
  background: #eef2ff;
}

.toast__svg{
  width: 18px;
  height: 18px;
}

/* Contenido */
.toast__content{
  flex: 1 1 auto;
  min-width: 0;
}

.toast__type{
  margin: 0 0 0.1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #222;
}

.toast__message{
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.3;
}

/* Botón cerrar */
.toast__close{
  flex: 0 0 auto;
  margin-left: 0.35rem;
  border: none;
  background: transparent;
  color: #999;
  padding: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.toast__close svg{
  width: 13px;
  height: 13px;
}
.toast__close:hover{
  background: #f2f2f2;
  color: #555;
}

/* Colores por tipo (puedes adaptar a tu diseño actual) */
.toast--green{
  border-left: 4px solid #22c55e;
}
.toast--green .toast__icon{
  background:#dcfce7;
}
.toast--blue{
  border-left: 4px solid #0ea5e9;
}
.toast--blue .toast__icon{
  background:#e0f2fe;
}
.toast--yellow{
  border-left: 4px solid #f59e0b;
}
.toast--yellow .toast__icon{
  background:#fef3c7;
}
.toast--red{
  border-left: 4px solid #ef4444;
}
.toast--red .toast__icon{
  background:#fee2e2;
}

/* Versión móvil: que no se salga del viewport */
@media (max-width: 575.98px){
  .toast__container{
    left: 0.75rem;
    right: 0.75rem;
  }
  .toast{
    min-width: 0;
    max-width: 100%;
  }
}
