/**
 * Shared toast notifications (storefront, admin, vendor).
 */
#am-toast {
    visibility: hidden;
    min-width: 260px;
    max-width: min(92vw, 420px);
    margin-left: -130px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 12px 22px;
    position: fixed;
    z-index: 10050;
    left: 50%;
    top: 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    transform: translate(-50%, -20px);
    pointer-events: none;
}

#am-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

#am-toast.success {
    background-color: #16a34a;
}

#am-toast.error {
    background-color: #dc2626;
}

#am-toast.info {
    background-color: #2563eb;
}

#am-toast i {
    margin-right: 8px;
}

@media (max-width: 575.98px) {
    #am-toast {
        margin-left: 0;
        left: 50%;
        top: max(16px, env(safe-area-inset-top, 0px));
        max-width: calc(100vw - 24px);
    }
}
