/* Toasts (loja e painel). Cores vêm de tokens.css. */
.toast-region {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 10px 14px 16px;
    border-left: 3px solid var(--success);
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(10, 10, 9, 0.22);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.45;
    pointer-events: auto;
    animation: toast-in 0.22s ease-out;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.toast-error {
    border-left-color: var(--danger);
}
.toast > .material-symbols-outlined {
    margin-top: 1px;
    font-size: 20px;
    color: #7fd1a4;
}
.toast-error > .material-symbols-outlined {
    color: #f19a8e;
}
.toast-message {
    flex: 1;
    margin: 0;
}
.toast-close {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin: -3px 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}
.toast-close:hover,
.toast-close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.toast-close .material-symbols-outlined {
    font-size: 18px;
}
.toast.is-leaving {
    opacity: 0;
    transform: translateY(6px);
}

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

@media (prefers-reduced-motion: reduce) {
    .toast {
        animation: none;
        transition: none;
    }
}

@media (max-width: 620px) {
    .toast-region {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }
}
