/* Aviso chiquito abajo a la derecha que se quita solo (commons/v2/ToastV2.vue).
   Card blanca con acento de color: no estorba y no tapa el formulario. */
.v2-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 14px 14px 16px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card, #fff);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .05);
  font-family: var(--font);
  --toast-color: var(--green);
  --toast-bg: var(--green-bg);
}

.v2-toast--error {
  --toast-color: var(--red);
  --toast-bg: var(--red-bg);
}

.v2-toast-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--toast-bg);
  color: var(--toast-color);
}

.v2-toast-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v2-toast-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-toast-msg {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tx-strong);
}

.v2-toast-text {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--tx-muted);
}

.v2-toast-close {
  align-self: flex-start;
  padding: 0 2px;
  background: none;
  border: none;
  color: var(--tx-faint);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.v2-toast-close:hover { color: var(--tx-strong); }

/* Barrita que se va vaciando mientras corre el tiempo */
.v2-toast-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--toast-color);
  transform-origin: left;
  animation: v2-toast-time var(--toast-time, 4000ms) linear forwards;
}

.v2-toast-bar--paused { animation-play-state: paused; }

@keyframes v2-toast-time {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.v2-toast-fade-enter-active,
.v2-toast-fade-leave-active {
  transition: opacity .25s, transform .25s;
}

.v2-toast-fade-enter,
.v2-toast-fade-leave-to {
  opacity: 0;
  transform: translateY(12px);
}

/* En celular: a todo lo ancho, arriba de la barra de abajo */
@media (max-width: 780px) {
  .v2-toast {
    left: 16px;
    right: 16px;
    bottom: calc(108px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
  }
}
