/* Module: components/toast.css — Toast */
/* --------------------------------------------------------------------------
   18. Toast / Snackbar
   -------------------------------------------------------------------------- */
.and-toast-container {
    position: fixed;
    bottom: calc(var(--and-nav-height) + var(--and-safe-bottom) + var(--and-space-md));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - (var(--and-space-md) * 2));
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--and-space-sm);
    pointer-events: none;
}

.and-toast {
    background: #fff;
    color: var(--and-text-primary);
    border-radius: var(--and-radius-lg);
    padding: 12px var(--and-space-md);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--and-shadow-lg);
    animation: and-toast-in 0.3s ease-out, and-toast-out 0.3s ease-in 2.7s forwards;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--and-space-sm);
    width: fit-content;
    max-width: min(360px, calc(100vw - 48px));
}

.and-toast--success {
    background: #10b981;
    color: #fff;
}

.and-toast--error {
    background: #ef4444;
    color: #fff;
}

.and-toast--warning {
    background: #f59e0b;
    color: #fff;
}

.and-toast--info {
    background: var(--and-accent);
    color: #fff;
}

@keyframes and-toast-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes and-toast-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-10px);
        opacity: 0;
    }
}
